Test Setup Failed
Branch master (18cb34)
by Artem
09:21
created
Category
helpers.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-if (! function_exists('fixture')) {
4
-    function fixture(string $code, array $additional = [])
3
+if (!function_exists('fixture')) {
4
+    function fixture(string $code, array $additional = [ ])
5 5
     {
6 6
         return container()->make(\PrettyBx\Fixtures\FixtureManager::class)->fixture($code, $additional);
7 7
     }
8 8
 }
9 9
 
10
-if (! function_exists('faker')) {
10
+if (!function_exists('faker')) {
11 11
     function faker()
12 12
     {
13 13
         
Please login to merge, or discard this patch.
src/FixtureManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 
21 21
     public function __construct(string $folder)
22 22
     {
23
-        if (! FileManager::exists($folder)) {
23
+        if (!FileManager::exists($folder)) {
24 24
             throw new \InvalidArgumentException('No such folder: ' . $folder);
25 25
         }
26 26
 
@@ -35,19 +35,19 @@  discard block
 block discarded – undo
35 35
      * @param	array 	$additional	Default: []
36 36
      * @return	array
37 37
      */
38
-    public function fixture(string $code, array $additional = []): array
38
+    public function fixture(string $code, array $additional = [ ]): array
39 39
     {
40 40
         $code = str_replace('.', '/', $code);
41 41
 
42 42
         $path = $this->folder . '/' . $code . '.php';
43 43
 
44
-        if (! FileManager::exists($path)) {
44
+        if (!FileManager::exists($path)) {
45 45
             throw new \InvalidArgumentException('No such fixture: ' . $path);
46 46
         }
47 47
 
48 48
         $fixture = FileManager::include($path);
49 49
 
50
-        if (! is_array($fixture)) {
50
+        if (!is_array($fixture)) {
51 51
             throw new \InvalidArgumentException('Fixture must be a valid array');
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/FixtureServiceProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
     /**
13 13
      * @var array $singletons
14 14
      */
15
-    protected $singletons = [FixtureManager::class];
15
+    protected $singletons = [ FixtureManager::class ];
16 16
 
17 17
     /**
18 18
      * @inheritDoc
@@ -32,7 +32,7 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function extendFileManager(): void
34 34
     {
35
-        Manager::macro('include', function ($filename) {
35
+        Manager::macro('include', function($filename) {
36 36
             return include $filename;
37 37
         });
38 38
     }
Please login to merge, or discard this patch.