Passed
Branch master (a121d7)
by Php Easy Api
08:04 queued 05:13
created
src/resta/Foundation/Bootstrapper/KernelManifestManager.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         // if there is manifest propery in the resta
36 36
         // in this case,manifest property is manifest class
37
-        if($app['isAvailableStore']){
37
+        if ($app['isAvailableStore']) {
38 38
             $this->manifest = $this->manifest->resolve("Src\Manifest");
39 39
         }
40 40
 
@@ -61,11 +61,11 @@  discard block
 block discarded – undo
61 61
     {
62 62
         $app = clone $this;
63 63
 
64
-        return $this->manifest->call(function() use ($maker,$app){
64
+        return $this->manifest->call(function() use ($maker, $app){
65 65
 
66 66
             // As a parameter, the maker variable comes as
67 67
             // the name of the list to be booted.
68
-            if(isset($this->{$maker})){
68
+            if (isset($this->{$maker})) {
69 69
 
70 70
                 //get default maker list
71 71
                 $app->setMakerList($this->{$maker});
@@ -73,13 +73,13 @@  discard block
 block discarded – undo
73 73
                 // we set this condition for users to boot the classes they want in the kernel groups.
74 74
                 // in the manifesto, if the kernel groups method returns an class of arrays
75 75
                 // then these classes will automatically join the kernel groups installation.
76
-                if(isset($this->run) && isset($this->run[$maker]) && is_array($this->run[$maker])){
76
+                if (isset($this->run) && isset($this->run[$maker]) && is_array($this->run[$maker])) {
77 77
 
78 78
                     $appMaker = $this->run[$maker];
79 79
 
80 80
                     // if the makerExtend value in the manifest is a method,
81 81
                     // in this case, the method is executed instead of the object
82
-                    if(method_exists($this,$maker)){
82
+                    if (method_exists($this, $maker)) {
83 83
                         $this->{$maker}(app());
84 84
                     }
85 85
 
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
                     // if the maker is present on a method basis, then the maker list values ​​must be true or false.
91 91
                     // if one of the maker classes is false will not load this maker class.
92 92
                     foreach ($kernelMakers as $kernelMakerAbstract=>$kernelMaker) {
93
-                        if($kernelMaker){
93
+                        if ($kernelMaker) {
94 94
                             $kernelMakers[$kernelMakerAbstract] = $appMaker[$kernelMakerAbstract];
95 95
                         }
96 96
                     }
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
 
103 103
             // revision maker
104 104
             // group name to boot
105
-            if(isset($this->revision)){
105
+            if (isset($this->revision)) {
106 106
                 $app->revisionMaker($this->revision);
107 107
             }
108 108
 
@@ -118,19 +118,19 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function revisionMaker($revision)
120 120
     {
121
-        if(is_array($revision) && count($this->makerList)){
121
+        if (is_array($revision) && count($this->makerList)) {
122 122
 
123 123
             //We return to the boot list and perform a revision check.
124
-            foreach ($this->makerList as $makerKey=>$makerValue){
124
+            foreach ($this->makerList as $makerKey=>$makerValue) {
125 125
 
126 126
                 // the revision list is presented as a helper method to prevent
127 127
                 // the listener application being booted from taking the entire listener individually.
128
-                if(count($revision) && isset($revision[$makerKey]) && Utils::isNamespaceExists($revision[$makerKey])){
128
+                if (count($revision) && isset($revision[$makerKey]) && Utils::isNamespaceExists($revision[$makerKey])) {
129 129
                     $this->makerList[$makerKey] = $revision[$makerKey];
130 130
 
131 131
                     // if a kernel group key that is changed to revision is an actual class,
132 132
                     // we will save this class to the container object.
133
-                    $this->app->register('revision',$makerValue,$revision[$makerKey]);
133
+                    $this->app->register('revision', $makerValue, $revision[$makerKey]);
134 134
                 }
135 135
             }
136 136
         }
Please login to merge, or discard this patch.