@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | */ |
34 | 34 | public function getCacheId($table) |
35 | 35 | { |
36 | - return $this->getConnection()->getDatabase().'.'.$table; |
|
36 | + return $this->getConnection()->getDatabase() . '.' . $table; |
|
37 | 37 | } |
38 | 38 | |
39 | 39 | /** |
@@ -102,7 +102,7 @@ discard block |
||
102 | 102 | */ |
103 | 103 | public function cachePath() |
104 | 104 | { |
105 | - return parent::cachePath().'/db-metadata/'; |
|
105 | + return parent::cachePath() . '/db-metadata/'; |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | } |
109 | 109 | \ No newline at end of file |
@@ -41,7 +41,7 @@ discard block |
||
41 | 41 | ->withArgument(Application::class) |
42 | 42 | ->withArgument(ConnectionFactory::class); |
43 | 43 | |
44 | - $this->getContainer()->share('db.connection', function () { |
|
44 | + $this->getContainer()->share('db.connection', function() { |
|
45 | 45 | return app('db')->connection(); |
46 | 46 | }); |
47 | 47 | } |
@@ -51,6 +51,6 @@ discard block |
||
51 | 51 | */ |
52 | 52 | public function provides() |
53 | 53 | { |
54 | - return ['db','db.factory','db.connection']; |
|
54 | + return ['db', 'db.factory', 'db.connection']; |
|
55 | 55 | } |
56 | 56 | } |
57 | 57 | \ No newline at end of file |
@@ -33,7 +33,7 @@ |
||
33 | 33 | |
34 | 34 | $container->share('container', $container); |
35 | 35 | |
36 | - $container->share('kernel.http', function () use ($container) { |
|
36 | + $container->share('kernel.http', function() use ($container) { |
|
37 | 37 | return $container->get(Kernel::class); |
38 | 38 | }); |
39 | 39 | $container->alias('kernel.http', KernelInterface::class); |
@@ -42,7 +42,7 @@ |
||
42 | 42 | */ |
43 | 43 | protected function registerUrlGenerator() |
44 | 44 | { |
45 | - $this->getContainer()->share('url', function () { |
|
45 | + $this->getContainer()->share('url', function() { |
|
46 | 46 | $routes = app('router')->getRoutes(); |
47 | 47 | |
48 | 48 | // The URL generator needs the route collection that exists on the router. |
@@ -15,7 +15,7 @@ |
||
15 | 15 | */ |
16 | 16 | public function register() |
17 | 17 | { |
18 | - $this->getContainer()->share('inflector', function () { |
|
18 | + $this->getContainer()->share('inflector', function() { |
|
19 | 19 | $inflector = new Inflector(); |
20 | 20 | $path = app('path.storage') . DIRECTORY_SEPARATOR . 'cache'; |
21 | 21 | $inflector->setCachePath($path); |
@@ -19,7 +19,7 @@ |
||
19 | 19 | */ |
20 | 20 | public function register() |
21 | 21 | { |
22 | - $this->getContainer()->share('log', function () { |
|
22 | + $this->getContainer()->share('log', function() { |
|
23 | 23 | return $this->createLogger(); |
24 | 24 | }); |
25 | 25 |
@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | $this->getContainer()->alias(StandardDebugBar::class, DebugBar::class); |
32 | 32 | |
33 | - $this->getContainer()->share('debugbar', function () { |
|
33 | + $this->getContainer()->share('debugbar', function() { |
|
34 | 34 | $debugbar = $this->getContainer()->get(DebugBar::class); |
35 | 35 | return $debugbar; |
36 | 36 | }); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function prepareRequestUri() |
48 | 48 | { |
49 | - if ((int)$this->server->get('REDIRECT_STATUS', '200') >= 400 && $this->server->has('REDIRECT_URL')) { |
|
49 | + if ((int) $this->server->get('REDIRECT_STATUS', '200') >= 400 && $this->server->has('REDIRECT_URL')) { |
|
50 | 50 | $requestUri = $this->server->get('REDIRECT_URL'); |
51 | 51 | $schemeAndHttpHost = $this->getSchemeAndHttpHost(); |
52 | 52 | if (strpos($requestUri, $schemeAndHttpHost) === 0) { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function setActionKey($key) |
70 | 70 | { |
71 | - $this->actionKey = (string)$key; |
|
71 | + $this->actionKey = (string) $key; |
|
72 | 72 | |
73 | 73 | return $this; |
74 | 74 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function setModuleKey($key) |
122 | 122 | { |
123 | - $this->moduleKey = (string)$key; |
|
123 | + $this->moduleKey = (string) $key; |
|
124 | 124 | |
125 | 125 | return $this; |
126 | 126 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | public function setControllerKey($key) |
163 | 163 | { |
164 | - $this->controllerKey = (string)$key; |
|
164 | + $this->controllerKey = (string) $key; |
|
165 | 165 | |
166 | 166 | return $this; |
167 | 167 | } |