@@ -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\Providers; |
11 | 11 | |
@@ -33,21 +33,21 @@ discard block |
||
33 | 33 | $this->app->bind(Parser::class, GithubMarkdown::class); |
34 | 34 | |
35 | 35 | // Repository with all renderers |
36 | - $this->app->singleton(RenderersRepository::class, function (Container $app) { |
|
36 | + $this->app->singleton(RenderersRepository::class, function(Container $app) { |
|
37 | 37 | $config = $app->make(Repository::class)->get('renderers'); |
38 | 38 | |
39 | 39 | return new RenderersRepository($app, $config); |
40 | 40 | }); |
41 | 41 | |
42 | 42 | // Register default |
43 | - $this->app->singleton(ContentRenderInterface::class, function (Container $app) { |
|
43 | + $this->app->singleton(ContentRenderInterface::class, function(Container $app) { |
|
44 | 44 | return $app->make(RenderersRepository::class)->getDefaultRenderer(); |
45 | 45 | }); |
46 | 46 | |
47 | 47 | // Tips content renderer |
48 | 48 | $this->app->when(RawTextRenderer::class) |
49 | 49 | ->needs(ContentRenderInterface::class) |
50 | - ->give(function () { |
|
50 | + ->give(function() { |
|
51 | 51 | return $this->app->make(RenderersRepository::class) |
52 | 52 | ->getRenderer('raw'); |
53 | 53 | }); |
@@ -5,7 +5,7 @@ |
||
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\Models\DocsPage; |
11 | 11 |
@@ -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 | |
@@ -55,7 +55,7 @@ discard block |
||
55 | 55 | $config = $importer->config($repo->importer_config); |
56 | 56 | |
57 | 57 | foreach ($importer->files($config) as $file) { |
58 | - $prefix = '[' . $repo->title . ']::' . $file->getRoute(); |
|
58 | + $prefix = '['.$repo->title.']::'.$file->getRoute(); |
|
59 | 59 | |
60 | 60 | /* |
61 | 61 | |-------------------------------------------------------------------------- |
@@ -64,8 +64,8 @@ discard block |
||
64 | 64 | */ |
65 | 65 | $updateRequired = $repo->pages->where('hash', $file->getHash())->isEmpty(); |
66 | 66 | |
67 | - if (! $updateRequired) { |
|
68 | - $this->comment($prefix . ' has no available updates.'); |
|
67 | + if (!$updateRequired) { |
|
68 | + $this->comment($prefix.' has no available updates.'); |
|
69 | 69 | continue; |
70 | 70 | } |
71 | 71 | |
@@ -76,10 +76,10 @@ discard block |
||
76 | 76 | */ |
77 | 77 | $page = $repo->pages->where('identify', $file->getId())->first(); |
78 | 78 | |
79 | - $message = $prefix . ' found. Updating sources...'; |
|
79 | + $message = $prefix.' found. Updating sources...'; |
|
80 | 80 | |
81 | 81 | if ($page === null) { |
82 | - $message = $prefix . ' not exists. Uploading new...'; |
|
82 | + $message = $prefix.' not exists. Uploading new...'; |
|
83 | 83 | $page = new DocsPage(['identify' => $file->getId()]); |
84 | 84 | } |
85 | 85 |