Test Setup Failed
Push — master ( 0eb46c...5f1ff1 )
by Php Easy Api
03:03
created
src/resta/Console/Source/Project/Project.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
     /**
15 15
      * @var $type
16 16
      */
17
-    public $type='project';
17
+    public $type = 'project';
18 18
 
19 19
     /**
20 20
      * @var array
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
     /**
32 32
      * @var $commandRule
33 33
      */
34
-    public $commandRule=[];
34
+    public $commandRule = [];
35 35
 
36 36
     /**
37 37
      * @method create
@@ -45,15 +45,15 @@  discard block
 block discarded – undo
45 45
         $this->directory['projectDir']          = $this->projectPath();
46 46
         $this->argument['exceptionNamespace']   = app()->namespace()->exception();
47 47
 
48
-        $recursiveDefaultDirectory = explode("\\",$this->argument['project']);
48
+        $recursiveDefaultDirectory = explode("\\", $this->argument['project']);
49 49
         $this->argument['applicationName'] = pos($recursiveDefaultDirectory);
50 50
         $recursiveDefaultDirectory[] = 'V1';
51 51
         $recursiveDefaultDirectoryList = [];
52 52
 
53
-        foreach (array_slice($recursiveDefaultDirectory,1) as $defaultDirectory){
53
+        foreach (array_slice($recursiveDefaultDirectory, 1) as $defaultDirectory) {
54 54
 
55
-            $recursiveDefaultDirectoryList[]=$defaultDirectory;
56
-            $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/",$recursiveDefaultDirectoryList);
55
+            $recursiveDefaultDirectoryList[] = $defaultDirectory;
56
+            $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/", $recursiveDefaultDirectoryList);
57 57
         }
58 58
 
59 59
         //$this->directory['optionalDir'] = $this->optional();
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
         //$this->directory['sourceDir']               = $this->sourceDir();
80 80
         //$this->directory['sourceSupportDir']        = $this->sourceSupportDir();
81 81
         //$this->directory['sourceSupportTraitDir']   = $this->sourceSupportDir().'/Traits';
82
-        $this->directory['exceptionDir']            = app()->path()->exception();
82
+        $this->directory['exceptionDir'] = app()->path()->exception();
83 83
 
84 84
         //set project directory
85 85
         $this->file->makeDirectory($this);
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
         $this->touch['app/gitignore']               = $this->projectPath().'/.gitignore';
131 131
         $this->touch['app/composer']                = $this->projectPath().'/composer.json';
132 132
         $this->touch['test/index']                  = $this->storage().'/index.html';
133
-        $this->touch['exception/authenticate']      = $this->directory['exceptionDir'] .'/AuthenticateException.php';
133
+        $this->touch['exception/authenticate']      = $this->directory['exceptionDir'].'/AuthenticateException.php';
134 134
 
135 135
         //set project touch
136 136
         $this->file->touch($this);
Please login to merge, or discard this patch.