@@ -4,7 +4,7 @@ |
||
| 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\GitHub; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 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\GitHub; |
| 10 | 10 | |
@@ -4,7 +4,7 @@ |
||
| 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\GitHub; |
| 10 | 10 | |
@@ -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\GitHub; |
| 10 | 10 | |
@@ -22,7 +22,7 @@ discard block |
||
| 22 | 22 | public function __construct(Repository $original) |
| 23 | 23 | { |
| 24 | 24 | $connection = $original->get('docs.default'); |
| 25 | - $config = $original->get('docs.connections.' . $connection); |
|
| 25 | + $config = $original->get('docs.connections.'.$connection); |
|
| 26 | 26 | |
| 27 | 27 | parent::__construct(array_merge($config, [ |
| 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\Services\GitHub; |
| 10 | 10 | |
@@ -46,7 +46,7 @@ discard block |
||
| 46 | 46 | $info = $this->getRepoFilesInfo($org, $repo, $branch); |
| 47 | 47 | |
| 48 | 48 | foreach ($info as $page) { |
| 49 | - if (! isset($page['path'], $page['download_url'])) { |
|
| 49 | + if (!isset($page['path'], $page['download_url'])) { |
|
| 50 | 50 | throw new \RuntimeException('Import failed: "path" or "download_url" arguments required.'); |
| 51 | 51 | } |
| 52 | 52 | |
@@ -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\Models\Article; |
| 12 | 12 | |
@@ -39,7 +39,7 @@ discard block |
||
| 39 | 39 | */ |
| 40 | 40 | public function saving(Article $article): void |
| 41 | 41 | { |
| 42 | - if ($article->content_rendered && ! $article->content_source) { |
|
| 42 | + if ($article->content_rendered && !$article->content_source) { |
|
| 43 | 43 | return; |
| 44 | 44 | } |
| 45 | 45 | |
@@ -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 | |