@@ -9,7 +9,6 @@ |
||
9 | 9 | |
10 | 10 | namespace App\Console\Commands; |
11 | 11 | |
12 | -use App\Models\Article; |
|
13 | 12 | use App\Models\Docs; |
14 | 13 | use App\Services\GitHub\DocsStatus; |
15 | 14 | use App\Services\GitHub\ExternalDocsPage; |
@@ -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\Console\Commands; |
11 | 11 | |
@@ -50,10 +50,10 @@ discard block |
||
50 | 50 | $exists = $this->getDocsCurrentState(...$config->values()); |
51 | 51 | |
52 | 52 | $files = $manager->findFiles(...$config->values()) |
53 | - ->reject(function (DocsStatus $status) use ($exists) { |
|
53 | + ->reject(function(DocsStatus $status) use ($exists) { |
|
54 | 54 | return $exists->where('github_hash', $status->getHash())->first(); |
55 | 55 | }) |
56 | - ->each(function (DocsStatus $status) use ($config, $manager) { |
|
56 | + ->each(function(DocsStatus $status) use ($config, $manager) { |
|
57 | 57 | $args = $config->values(); |
58 | 58 | $args[] = $status->getPath(); |
59 | 59 |
@@ -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 | |
@@ -43,11 +43,11 @@ discard block |
||
43 | 43 | return; |
44 | 44 | } |
45 | 45 | |
46 | - $rendered = $this->renderer->renderBody((string)$article->content_source); |
|
46 | + $rendered = $this->renderer->renderBody((string) $article->content_source); |
|
47 | 47 | |
48 | 48 | $rendered = $this->parseHeaders($rendered); |
49 | 49 | |
50 | - $article->content_rendered = (string)$rendered->getContent(); |
|
50 | + $article->content_rendered = (string) $rendered->getContent(); |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | /** |
@@ -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\Docs; |
12 | 12 | |
@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | */ |
39 | 39 | public function saving(Docs $docs): void |
40 | 40 | { |
41 | - $rendered = $this->renderer->renderBody((string)$docs->content_source); |
|
41 | + $rendered = $this->renderer->renderBody((string) $docs->content_source); |
|
42 | 42 | |
43 | - $docs->content_rendered = (string)$rendered; |
|
43 | + $docs->content_rendered = (string) $rendered; |
|
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,10 +22,10 @@ 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 = self::DEFAULT_LATEST_VERSION; |
27 | 27 | } |
28 | 28 | |
29 | - $docs->url = $docs->version . '/' . $docs->slug; |
|
29 | + $docs->url = $docs->version.'/'.$docs->slug; |
|
30 | 30 | } |
31 | 31 | } |
@@ -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 | |
@@ -35,15 +35,15 @@ discard block |
||
35 | 35 | */ |
36 | 36 | public function creating(Docs $docs): void |
37 | 37 | { |
38 | - if (! $docs->github_org) { |
|
38 | + if (!$docs->github_org) { |
|
39 | 39 | $docs->github_org = $this->config->getOrg(); |
40 | 40 | } |
41 | 41 | |
42 | - if (! $docs->github_repo) { |
|
42 | + if (!$docs->github_repo) { |
|
43 | 43 | $docs->github_repo = $this->config->getRepo(); |
44 | 44 | } |
45 | 45 | |
46 | - if (! $docs->github_branch) { |
|
46 | + if (!$docs->github_branch) { |
|
47 | 47 | $docs->github_branch = $this->config->getBranch(); |
48 | 48 | } |
49 | 49 | } |
@@ -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 |