@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * For the full copyright and license information, please view the LICENSE |
| 5 | 5 | * file that was distributed with this source code. |
| 6 | 6 | */ |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace App\Models\Docs; |
| 10 | 10 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | */ |
| 23 | 23 | public function saving(Docs $docs): void |
| 24 | 24 | { |
| 25 | - if (! $docs->version) { |
|
| 25 | + if (!$docs->version) { |
|
| 26 | 26 | $docs->version = $this->getLatestAvailableVersion(); |
| 27 | 27 | } |
| 28 | 28 | } |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * For the full copyright and license information, please view the LICENSE |
| 5 | 5 | * file that was distributed with this source code. |
| 6 | 6 | */ |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace App\Models; |
| 10 | 10 | |
@@ -59,7 +59,7 @@ discard block |
||
| 59 | 59 | public function getNav(...$level): Collection |
| 60 | 60 | { |
| 61 | 61 | return $this->nav->whereIn('level', $level) |
| 62 | - ->map(function (array $data) { |
|
| 62 | + ->map(function(array $data) { |
|
| 63 | 63 | return (object) $data; |
| 64 | 64 | }); |
| 65 | 65 | } |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * For the full copyright and license information, please view the LICENSE |
| 7 | 7 | * file that was distributed with this source code. |
| 8 | 8 | */ |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace App\Views\Composers; |
| 12 | 12 | |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * For the full copyright and license information, please view the LICENSE |
| 6 | 6 | * file that was distributed with this source code. |
| 7 | 7 | */ |
| 8 | -declare(strict_types=1); |
|
| 8 | +declare(strict_types = 1); |
|
| 9 | 9 | |
| 10 | 10 | namespace App\Services\ContentRenderer; |
| 11 | 11 | |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | { |
| 61 | 61 | $this->links = []; |
| 62 | 62 | |
| 63 | - $this->content = preg_replace_callback('/<(h\d+)>(.*?)<\/h\d+>/isu', function ($data) { |
|
| 63 | + $this->content = preg_replace_callback('/<(h\d+)>(.*?)<\/h\d+>/isu', function($data) { |
|
| 64 | 64 | list($data, $tag, $header) = $data; |
| 65 | 65 | $id = Str::slug($header); |
| 66 | 66 | |
@@ -4,7 +4,7 @@ discard block |
||
| 4 | 4 | * For the full copyright and license information, please view the LICENSE |
| 5 | 5 | * file that was distributed with this source code. |
| 6 | 6 | */ |
| 7 | -declare(strict_types=1); |
|
| 7 | +declare(strict_types = 1); |
|
| 8 | 8 | |
| 9 | 9 | namespace App\Services; |
| 10 | 10 | |
@@ -63,6 +63,6 @@ discard block |
||
| 63 | 63 | */ |
| 64 | 64 | private function isMatched(string $needle): bool |
| 65 | 65 | { |
| 66 | - return Str::startsWith($this->route->getName(), $needle . '.'); |
|
| 66 | + return Str::startsWith($this->route->getName(), $needle.'.'); |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | \ No newline at end of file |
@@ -6,7 +6,7 @@ discard block |
||
| 6 | 6 | * For the full copyright and license information, please view the LICENSE |
| 7 | 7 | * file that was distributed with this source code. |
| 8 | 8 | */ |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace App\Providers; |
| 12 | 12 | |
@@ -50,7 +50,7 @@ discard block |
||
| 50 | 50 | */ |
| 51 | 51 | public function boot(): void |
| 52 | 52 | { |
| 53 | - $this->app->singleton(NavMatcher::class, function (Container $app) { |
|
| 53 | + $this->app->singleton(NavMatcher::class, function(Container $app) { |
|
| 54 | 54 | $route = $app->make(Router::class)->current(); |
| 55 | 55 | |
| 56 | 56 | return new NavMatcher($route); |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | |
| 77 | 77 | private function registerGuzzleClient(): void |
| 78 | 78 | { |
| 79 | - $this->app->singleton(Guzzle::class, function () { |
|
| 79 | + $this->app->singleton(Guzzle::class, function() { |
|
| 80 | 80 | return new Guzzle(); |
| 81 | 81 | }); |
| 82 | 82 | |
@@ -6,7 +6,7 @@ |
||
| 6 | 6 | * For the full copyright and license information, please view the LICENSE |
| 7 | 7 | * file that was distributed with this source code. |
| 8 | 8 | */ |
| 9 | -declare(strict_types=1); |
|
| 9 | +declare(strict_types = 1); |
|
| 10 | 10 | |
| 11 | 11 | namespace App\Http\Controllers; |
| 12 | 12 | |