Skip to content

Commit

Permalink
Moved faker to main require block. Updated packages
Browse files Browse the repository at this point in the history
  • Loading branch information
James Wigger committed Jul 18, 2017
1 parent 7f6f55e commit 54ef375
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@
"require": {
"php": ">=5.4.0",
"nesbot/carbon": "^1.22",
"danielstjules/stringy": "^2.3"
"danielstjules/stringy": "^2.3",
"fzaninotto/faker": "^1.6"
},
"autoload": {
"psr-4": {
Expand All @@ -21,8 +22,5 @@
"files": [
"helpers.php"
]
},
"require-dev": {
"fzaninotto/faker": "^1.6"
}
}
2 changes: 1 addition & 1 deletion helpers.php
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ function base_layout_has($key)
if(!function_exists('base_faker_factory')) {
function base_faker_factory() {
if(!class_exists('Faker\Factory')) {
throw new Exception('Faker library is not installed - are you running in production?');
throw new Exception('Faker library is not available.');
}

return Faker\Factory::create();
Expand Down

0 comments on commit 54ef375

Please sign in to comment.