Passed
Push — master ( ab8f2a...fae764 )
by Php Easy Api
10:30
created
src/resta/Foundation/Bootstrapper/BootLoader.php 1 patch
Spacing   +28 added lines, -28 removed lines patch added patch discarded remove patch
@@ -33,12 +33,12 @@  discard block
 block discarded – undo
33 33
     {
34 34
         //if the console is true
35 35
         //console app runner
36
-        if($this->app->runningInConsole()
37
-            && $this->app['isAvailableStore'] && $this->app->checkBindings('appConsole')===false){
36
+        if ($this->app->runningInConsole()
37
+            && $this->app['isAvailableStore'] && $this->app->checkBindings('appConsole')===false) {
38 38
 
39 39
             //If the second parameter is sent true to the application builder,
40 40
             //all operations are performed by the console and the custom booting are executed
41
-            $this->app->share('appConsole',ConsoleProvider::class);
41
+            $this->app->share('appConsole', ConsoleProvider::class);
42 42
         }
43 43
     }
44 44
 
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
     {
62 62
         // this is your application's config installer.
63 63
         // you can easily access the config variables with the config installer.
64
-        if($this->app->checkBindings('config')===false){
65
-            $this->app->share('config',function($app){
64
+        if ($this->app->checkBindings('config')===false) {
65
+            $this->app->share('config', function($app) {
66 66
                 return $app['revision']['config'] ?? ConfigProvider::class;
67 67
             });
68 68
         }
@@ -78,8 +78,8 @@  discard block
 block discarded – undo
78 78
         // it is often helpful to have different configuration values based onUrlParseApplication
79 79
         // the environment where the application is running.for example,
80 80
         // you may wish to use a different cache driver locally than you do on your production server.
81
-        if($this->app->checkBindings('environment')===false){
82
-            $this->app->share('environment',function($app){
81
+        if ($this->app->checkBindings('environment')===false) {
82
+            $this->app->share('environment', function($app) {
83 83
                 return $app['revision']['environment'] ?? EnvironmentProvider::class;
84 84
             });
85 85
         }
@@ -95,9 +95,9 @@  discard block
 block discarded – undo
95 95
         // the eventDispatcher component provides tools
96 96
         // that allow your application components to communicate
97 97
         // with each other by dispatching events and listening to them.
98
-        if($this->app->checkBindings('eventDispatcher')===false){
99
-            $this->app->share('eventDispatcher',function($app){
100
-                if(Utils::isNamespaceExists(app()->namespace()->serviceEventDispatcher())){
98
+        if ($this->app->checkBindings('eventDispatcher')===false) {
99
+            $this->app->share('eventDispatcher', function($app) {
100
+                if (Utils::isNamespaceExists(app()->namespace()->serviceEventDispatcher())) {
101 101
                     return $app['revision']['eventDispatcher'] ?? app()->namespace()->serviceEventDispatcher();
102 102
                 }
103 103
             });
@@ -115,8 +115,8 @@  discard block
 block discarded – undo
115 115
         // to help you learn more about what's happening within your application,
116 116
         // rest system provides robust logging services that allow you to log messages to files,
117 117
         // the system error log, and even to Slack to notify your entire team.
118
-        if($this->app->checkBindings('logger')===false){
119
-            $this->app->share('logger',function($app){
118
+        if ($this->app->checkBindings('logger')===false) {
119
+            $this->app->share('logger', function($app) {
120 120
                 return $app['revision']['logger'] ?? LoggerProvider::class;
121 121
             });
122 122
         }
@@ -133,8 +133,8 @@  discard block
 block discarded – undo
133 133
         // when your application is requested, the middleware classes are running before all bootstrapper executables.
134 134
         // thus, if you make http request your application, you can verify with an intermediate middleware layer
135 135
         // and throw an exception.
136
-        if($this->app->checkBindings('middleware')===false){
137
-            $this->app->make('middleware',function($app){
136
+        if ($this->app->checkBindings('middleware')===false) {
137
+            $this->app->make('middleware', function($app) {
138 138
                 return $app['revision']['middleware'] ?? MiddlewareProvider::class;
139 139
             });
140 140
         }
@@ -149,8 +149,8 @@  discard block
 block discarded – undo
149 149
     {
150 150
         // we determine kind of output with the response manager
151 151
         // json as default or [xml,wsdl]
152
-        if($this->app->checkBindings('response')===false){
153
-            $this->app->make('response',function($app){
152
+        if ($this->app->checkBindings('response')===false) {
153
+            $this->app->make('response', function($app) {
154 154
                 return $app['revision']['response'] ?? ResponseProvider::class;
155 155
             });
156 156
         }
@@ -166,8 +166,8 @@  discard block
 block discarded – undo
166 166
         // route operations are the last part of the system run. In this section,
167 167
         // a route operation is passed through the url process and output is sent to the screen according to
168 168
         // the method file to be called by the application
169
-        if(core()->isAvailableStore && $this->app->checkBindings('route')===false){
170
-            $this->app->share('route',function($app){
169
+        if (core()->isAvailableStore && $this->app->checkBindings('route')===false) {
170
+            $this->app->share('route', function($app) {
171 171
                 return $app['revision']['route'] ?? Route::class;
172 172
             });
173 173
         }
@@ -183,8 +183,8 @@  discard block
 block discarded – undo
183 183
         // route operations are the last part of the system run. In this section,
184 184
         // a route operation is passed through the url process and output is sent to the screen according to
185 185
         // the method file to be called by the application
186
-        if(core()->isAvailableStore && $this->app->checkBindings('router')===false){
187
-            $this->app->make('router',function($app){
186
+        if (core()->isAvailableStore && $this->app->checkBindings('router')===false) {
187
+            $this->app->make('router', function($app) {
188 188
                 return $app['revision']['router'] ?? RouteProvider::class;
189 189
             });
190 190
         }
@@ -197,8 +197,8 @@  discard block
 block discarded – undo
197 197
      */
198 198
     private function serviceProvider()
199 199
     {
200
-        if($this->app->checkBindings('serviceProvider')===false){
201
-            $this->app->share('serviceProvider',function($app){
200
+        if ($this->app->checkBindings('serviceProvider')===false) {
201
+            $this->app->share('serviceProvider', function($app) {
202 202
                 return $app['revision']['serviceProvider'] ?? ServiceProvider::class;
203 203
             });
204 204
         }
@@ -223,9 +223,9 @@  discard block
 block discarded – undo
223 223
     {
224 224
         // with url parsing,the application route for
225 225
         // the rest project is determined after the route variables from the URL are assigned to the kernel url object.
226
-        if(count(array_filter(Utils::getRequestPathInfo(),'strlen'))
227
-            && $this->app->checkBindings('url')===false){
228
-            $this->app->make('url',function($app){
226
+        if (count(array_filter(Utils::getRequestPathInfo(), 'strlen'))
227
+            && $this->app->checkBindings('url')===false) {
228
+            $this->app->make('url', function($app) {
229 229
                 return $app['revision']['url'] ?? UrlProvider::class;
230 230
             });
231 231
         }
@@ -238,12 +238,12 @@  discard block
 block discarded – undo
238 238
      * @param $arguments
239 239
      * @return mixed
240 240
      */
241
-    public function __call($name,$arguments)
241
+    public function __call($name, $arguments)
242 242
     {
243 243
         // we use the methodological context
244 244
         // for kernel group values that are replaced with revision.
245
-        $revisionBoot = array_search($name,app()->get('revision'));
246
-        if(is_string($revisionBoot) && method_exists($this,$revisionBoot)){
245
+        $revisionBoot = array_search($name, app()->get('revision'));
246
+        if (is_string($revisionBoot) && method_exists($this, $revisionBoot)) {
247 247
             return $this->{$revisionBoot}();
248 248
         }
249 249
 
Please login to merge, or discard this patch.