@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | |
22 | 22 | public function __construct(string $folder) |
23 | 23 | { |
24 | - if (! FileManager::exists($folder)) { |
|
24 | + if (!FileManager::exists($folder)) { |
|
25 | 25 | throw new \InvalidArgumentException('No such folder: ' . $folder); |
26 | 26 | } |
27 | 27 | |
@@ -36,19 +36,19 @@ discard block |
||
36 | 36 | * @param array $additional Default: [] |
37 | 37 | * @return array |
38 | 38 | */ |
39 | - public function make(string $code, array $additional = []): array |
|
39 | + public function make(string $code, array $additional = [ ]): array |
|
40 | 40 | { |
41 | 41 | $code = str_replace('.', '/', $code); |
42 | 42 | |
43 | 43 | $path = $this->folder . '/' . $code . '.php'; |
44 | 44 | |
45 | - if (! FileManager::exists($path)) { |
|
45 | + if (!FileManager::exists($path)) { |
|
46 | 46 | throw new \InvalidArgumentException('No such fixture: ' . $path); |
47 | 47 | } |
48 | 48 | |
49 | 49 | $fixture = FileManager::include($path); |
50 | 50 | |
51 | - if (! is_array($fixture)) { |
|
51 | + if (!is_array($fixture)) { |
|
52 | 52 | throw new \InvalidArgumentException('Fixture must be a valid array'); |
53 | 53 | } |
54 | 54 | |
@@ -64,12 +64,12 @@ discard block |
||
64 | 64 | * @param array $additional Default: [] |
65 | 65 | * @return array |
66 | 66 | */ |
67 | - public function makeMany(string $code, int $quantity, array $additional = []): array |
|
67 | + public function makeMany(string $code, int $quantity, array $additional = [ ]): array |
|
68 | 68 | { |
69 | - $data = []; |
|
69 | + $data = [ ]; |
|
70 | 70 | |
71 | 71 | while ($quantity > 0) { |
72 | - $data[] = $this->make($code, $additional); |
|
72 | + $data[ ] = $this->make($code, $additional); |
|
73 | 73 | |
74 | 74 | --$quantity; |
75 | 75 | } |
@@ -44,7 +44,7 @@ |
||
44 | 44 | */ |
45 | 45 | protected function extendFileManager(): void |
46 | 46 | { |
47 | - Manager::macro('include', function ($filename) { |
|
47 | + Manager::macro('include', function($filename) { |
|
48 | 48 | return include $filename; |
49 | 49 | }); |
50 | 50 | } |
@@ -1,13 +1,13 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('fixture')) { |
|
3 | +if (!function_exists('fixture')) { |
|
4 | 4 | function fixture() |
5 | 5 | { |
6 | 6 | return container()->make(\PrettyBx\Fixtures\FixtureManager::class); |
7 | 7 | } |
8 | 8 | } |
9 | 9 | |
10 | -if (! function_exists('faker')) { |
|
10 | +if (!function_exists('faker')) { |
|
11 | 11 | function faker() |
12 | 12 | { |
13 | 13 | return \PrettyBx\Fixtures\FixtureManager::getFaker(); |