Passed
Push — master ( 86e9e2...7a0a40 )
by Php Easy Api
03:56
created
src/resta/Console/Source/Project/Project.php 1 patch
Spacing   +11 added lines, -11 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
@@ -46,17 +46,17 @@  discard block
 block discarded – undo
46 46
         $this->directory['projectDir']          = $this->projectPath();
47 47
         $this->argument['exceptionNamespace']   = app()->namespace()->exception();
48 48
         $this->argument['resourcePath']         = app()->path()->appResourche();
49
-        $this->argument['testNamespace']             = app()->namespace()->tests();
49
+        $this->argument['testNamespace'] = app()->namespace()->tests();
50 50
 
51
-        $recursiveDefaultDirectory = explode("\\",$this->argument['project']);
51
+        $recursiveDefaultDirectory = explode("\\", $this->argument['project']);
52 52
         $this->argument['applicationName'] = pos($recursiveDefaultDirectory);
53 53
         $recursiveDefaultDirectory[] = 'V1';
54 54
         $recursiveDefaultDirectoryList = [];
55 55
 
56
-        foreach (array_slice($recursiveDefaultDirectory,1) as $defaultDirectory){
56
+        foreach (array_slice($recursiveDefaultDirectory, 1) as $defaultDirectory) {
57 57
 
58
-            $recursiveDefaultDirectoryList[]=$defaultDirectory;
59
-            $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/",$recursiveDefaultDirectoryList);
58
+            $recursiveDefaultDirectoryList[] = $defaultDirectory;
59
+            $this->directory[$defaultDirectory.'Path'] = $this->projectPath().''.implode("/", $recursiveDefaultDirectoryList);
60 60
         }
61 61
 
62 62
         //$this->directory['optionalDir'] = $this->optional();
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         //$this->directory['sourceDir']               = $this->sourceDir();
83 83
         //$this->directory['sourceSupportDir']        = $this->sourceSupportDir();
84 84
         //$this->directory['sourceSupportTraitDir']   = $this->sourceSupportDir().'/Traits';
85
-        $this->directory['exceptionDir']            = app()->path()->exception();
85
+        $this->directory['exceptionDir'] = app()->path()->exception();
86 86
 
87 87
         //set project directory
88 88
         $this->file->makeDirectory($this);
@@ -98,11 +98,11 @@  discard block
 block discarded – undo
98 98
         $this->touch['kernel/worker']               = $this->provider().'/WorkerServiceProvider.php';
99 99
         $this->touch['kernel/exception']            = $this->provider().'/ExceptionServiceProvider.php';
100 100
         $this->touch['kernel/entity']               = $this->provider().'/EntityServiceProvider.php';
101
-        $this->touch['kernel/cache']               = $this->provider().'/CacheServiceProvider.php';
101
+        $this->touch['kernel/cache'] = $this->provider().'/CacheServiceProvider.php';
102 102
         $this->touch['kernel/authenticate']         = $this->provider().'/AuthenticateServiceProvider.php';
103 103
         $this->touch['kernel/role']                 = $this->provider().'/RoleServiceProvider.php';
104 104
         $this->touch['kernel/track']                = $this->provider().'/TrackServiceProvider.php';
105
-        $this->touch['test/testcase']              = $this->test().'/TestCase.php';
105
+        $this->touch['test/testcase'] = $this->test().'/TestCase.php';
106 106
         $this->touch['kernel/consoleevent']         = $this->provider().'/ConsoleEventServiceProvider.php';
107 107
         $this->touch['middleware/authenticate']     = $this->middleware().'/Authenticate.php';
108 108
         $this->touch['middleware/ratelimit']        = $this->middleware().'/RateLimit.php';
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         $this->touch['app/gitignore']               = $this->projectPath().'/.gitignore';
144 144
         $this->touch['app/composer']                = $this->projectPath().'/composer.json';
145 145
         $this->touch['test/index']                  = $this->storage().'/index.html';
146
-        $this->touch['exception/authenticate']      = $this->directory['exceptionDir'] .'/AuthenticateException.php';
146
+        $this->touch['exception/authenticate']      = $this->directory['exceptionDir'].'/AuthenticateException.php';
147 147
 
148 148
         //set project touch
149 149
         $this->file->touch($this);
Please login to merge, or discard this patch.