Completed
Push — master ( 95ebcc...c49337 )
by Elf
03:51
created
src/SupportServiceProvider.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
         $this->setupConfigurations();
31 31
 
32
-        array_map([$this->app, 'register'], $this->getServiceProviders());
32
+        array_map([ $this->app, 'register' ], $this->getServiceProviders());
33 33
 
34 34
         if ($this->app->runningInConsole()) {
35 35
             $this->registerForConsole();
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      */
44 44
     protected function setupConfigurations()
45 45
     {
46
-        if (! $this->app->configurationIsCached()) {
46
+        if (!$this->app->configurationIsCached()) {
47 47
             $this->configureDefaults();
48 48
         }
49 49
 
@@ -57,16 +57,16 @@  discard block
 block discarded – undo
57 57
      */
58 58
     protected function configureDefaults()
59 59
     {
60
-        $config = $this->app['config'];
60
+        $config = $this->app[ 'config' ];
61 61
 
62 62
         // Append "app.domains"
63
-        $config['app.domains'] = array_map(function ($value) {
63
+        $config[ 'app.domains' ] = array_map(function($value) {
64 64
             if (is_string($domain = parse_url($value, PHP_URL_HOST))) {
65 65
                 if (str_contains($domain, '.')) {
66 66
                     return $domain;
67 67
                 }
68 68
             }
69
-        }, $config['support.url']);
69
+        }, $config[ 'support.url' ]);
70 70
     }
71 71
 
72 72
     /**
@@ -76,17 +76,17 @@  discard block
 block discarded – undo
76 76
      */
77 77
     protected function configureForCurrentRequest()
78 78
     {
79
-        $config = $this->app['config'];
80
-        $request = $this->app['request'];
79
+        $config = $this->app[ 'config' ];
80
+        $request = $this->app[ 'request' ];
81 81
 
82
-        $identifier = array_search($request->getHost(), $config['app.domains']);
82
+        $identifier = array_search($request->getHost(), $config[ 'app.domains' ]);
83 83
 
84 84
         if ($identifier && $config->has('support.cookie_domain.'.$identifier)) {
85
-            $config['session.domain'] = $config['support.cookie_domain.'.$identifier];
85
+            $config[ 'session.domain' ] = $config[ 'support.cookie_domain.'.$identifier ];
86 86
         }
87 87
 
88
-        if ($identifier && is_array($auth = $config['support.auth.'.$identifier])) {
89
-            $config['auth.defaults'] = $auth;
88
+        if ($identifier && is_array($auth = $config[ 'support.auth.'.$identifier ])) {
89
+            $config[ 'auth.defaults' ] = $auth;
90 90
         }
91 91
     }
92 92
 
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      */
98 98
     protected function getServiceProviders()
99 99
     {
100
-        $providers = [];
100
+        $providers = [ ];
101 101
 
102 102
         if ($this->app->isLocal()) {
103 103
             array_push(
Please login to merge, or discard this patch.
src/Services/Optimus/OptimusServiceProvider.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -36,8 +36,8 @@  discard block
 block discarded – undo
36 36
         $router = $this->app->make('router');
37 37
 
38 38
         $router->macro('modelWithOptimusHashid',
39
-            function ($key, $class, Closure $callback = null) use ($router) {
40
-                $router->bind($key, function ($value) use ($router, $class, $callback) {
39
+            function($key, $class, Closure $callback = null) use ($router) {
40
+                $router->bind($key, function($value) use ($router, $class, $callback) {
41 41
                     if (is_null($value)) {
42 42
                         return;
43 43
                     }
@@ -65,10 +65,10 @@  discard block
 block discarded – undo
65 65
      */
66 66
     public function register()
67 67
     {
68
-        $this->app->singleton('optimus', function ($app) {
69
-            $config = $app['config']->get('support.optimus');
68
+        $this->app->singleton('optimus', function($app) {
69
+            $config = $app[ 'config' ]->get('support.optimus');
70 70
 
71
-            return new Optimus($config['prime'], $config['inverse'], $config['random']);
71
+            return new Optimus($config[ 'prime' ], $config[ 'inverse' ], $config[ 'random' ]);
72 72
         });
73 73
 
74 74
         $this->app->alias('optimus', Optimus::class);
@@ -85,6 +85,6 @@  discard block
 block discarded – undo
85 85
      */
86 86
     public function provides()
87 87
     {
88
-        return ['optimus', Optimus::class];
88
+        return [ 'optimus', Optimus::class ];
89 89
     }
90 90
 }
Please login to merge, or discard this patch.