@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function setDisk(string $disk) |
| 88 | 88 | { |
| 89 | - $this->disk = $this->app['filesystem']->disk($disk); |
|
| 89 | + $this->disk = $this->app[ 'filesystem' ]->disk($disk); |
|
| 90 | 90 | return $this; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -109,7 +109,7 @@ discard block |
||
| 109 | 109 | * @param mixed $formatters |
| 110 | 110 | * @return this |
| 111 | 111 | */ |
| 112 | - public function addParser($parser, $formatters = []) |
|
| 112 | + public function addParser($parser, $formatters = [ ]) |
|
| 113 | 113 | { |
| 114 | 114 | if (is_string($parser)) { |
| 115 | 115 | |
@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | $parser = $this->app->make($parser); |
| 118 | 118 | } |
| 119 | 119 | |
| 120 | - if (! $parser instanceof Parser) { |
|
| 120 | + if (!$parser instanceof Parser) { |
|
| 121 | 121 | $type = gettype($parser); |
| 122 | 122 | |
| 123 | 123 | // Force the parser to be a Parser class. |
@@ -149,8 +149,8 @@ discard block |
||
| 149 | 149 | |
| 150 | 150 | // Create the default parsers from config. |
| 151 | 151 | $parsers = array_merge( |
| 152 | - $this->getConfig('default_parsers', []), |
|
| 153 | - $this->getConfig('parsers', []) |
|
| 152 | + $this->getConfig('default_parsers', [ ]), |
|
| 153 | + $this->getConfig('parsers', [ ]) |
|
| 154 | 154 | ); |
| 155 | 155 | |
| 156 | 156 | foreach ($parsers as $parser => $formatters) { |
@@ -158,7 +158,7 @@ discard block |
||
| 158 | 158 | } |
| 159 | 159 | |
| 160 | 160 | // Create a new disk filesystem. |
| 161 | - $this->disk = $this->app['filesystem']->disk($this->getConfig('disk')); |
|
| 161 | + $this->disk = $this->app[ 'filesystem' ]->disk($this->getConfig('disk')); |
|
| 162 | 162 | } |
| 163 | 163 | |
| 164 | 164 | /** |
@@ -170,7 +170,7 @@ discard block |
||
| 170 | 170 | */ |
| 171 | 171 | protected function getConfig(string $key, $default = null) |
| 172 | 172 | { |
| 173 | - return $this->app["config"]["lincable.{$key}"] ?: $default; |
|
| 173 | + return $this->app[ "config" ][ "lincable.{$key}" ] ?: $default; |
|
| 174 | 174 | } |
| 175 | 175 | |
| 176 | 176 | /** |
@@ -194,7 +194,7 @@ discard block |
||
| 194 | 194 | } |
| 195 | 195 | |
| 196 | 196 | // Add the url configuration. |
| 197 | - foreach ($this->getConfig('urls', []) as $model => $url) { |
|
| 197 | + foreach ($this->getConfig('urls', [ ]) as $model => $url) { |
|
| 198 | 198 | $url = str_start($url, '/'); |
| 199 | 199 | |
| 200 | 200 | // Push the new mode url configuration. |
@@ -67,7 +67,7 @@ |
||
| 67 | 67 | // Get the global container instance. |
| 68 | 68 | $app = Container::getInstance(); |
| 69 | 69 | |
| 70 | - if (! $file->isBooted()) { |
|
| 70 | + if (!$file->isBooted()) { |
|
| 71 | 71 | |
| 72 | 72 | // Boot the file request with the current request. |
| 73 | 73 | $file->boot($app->make(Request::class)); |