Skip to content

Commit b3727f8

Browse files
committed
Final tweaks
1 parent 6a68403 commit b3727f8

File tree

2 files changed

+7
-12
lines changed

2 files changed

+7
-12
lines changed

resources/views/factory.blade.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44

55
$factory->define({{ $reflection->getName() }}::class, function (Faker $faker) {
66
return [
7-
@foreach($properties as $name => $property)
7+
@foreach($properties as $name => $property)
88
'{{$name}}' => {!! $property !!},
9-
@endforeach
9+
@endforeach
1010
];
1111
});

src/Console/GenerateCommand.php

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ class GenerateCommand extends Command
3737
*
3838
* @var string
3939
*/
40-
protected $description = 'Generate test factories for models';
40+
protected $description = 'Generate database test factories for models';
4141

4242
/**
4343
* @var string
@@ -49,11 +49,6 @@ class GenerateCommand extends Command
4949
*/
5050
protected $properties = array();
5151

52-
/**
53-
* @var array
54-
*/
55-
protected $dirs = array();
56-
5752
/**
5853
* @var
5954
*/
@@ -125,10 +120,10 @@ protected function getArguments()
125120
*/
126121
protected function getOptions()
127122
{
128-
return array(
129-
array('dir', 'D', InputOption::VALUE_OPTIONAL, 'The model directory', array($this->dir)),
130-
array('force', 'F', InputOption::VALUE_NONE, 'Overwrite any existing model factory'),
131-
);
123+
return [
124+
['dir', 'D', InputOption::VALUE_OPTIONAL, 'The model directory', $this->dir],
125+
['force', 'F', InputOption::VALUE_NONE, 'Overwrite any existing model factory'],
126+
];
132127
}
133128

134129
protected function generateFactory($model)

0 commit comments

Comments
 (0)