Completed
Pull Request — feature-laravel-5.4 (#51)
by Kirill
06:36 queued 03:24
created
app/Models/Docs/GitHubConfigObserver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
app/Services/GitHub/DocsStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Services/GitHub/DocsCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Services/GitHub/DocsManagerInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Services/GitHub/GitHubConfigRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Services/GitHub/GitHubDocsManager.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Models/Article/ContentObserver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
app/Console/Commands/GitHubDocsImport.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
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
 
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
         $exists = $this->getDocsCurrentState(...$config->values());
50 50
 
51 51
         $files = $manager->findFiles(...$config->values())
52
-            ->reject(function (DocsStatus $status) use ($exists) {
52
+            ->reject(function(DocsStatus $status) use ($exists) {
53 53
                 return $exists->where('github_hash', $status->getHash())->first();
54 54
             })
55
-            ->each(function (DocsStatus $status) use ($config, $manager) {
55
+            ->each(function(DocsStatus $status) use ($config, $manager) {
56 56
                 $args = $config->values();
57 57
                 $args[] = $status->getPath();
58 58
 
@@ -64,11 +64,11 @@  discard block
 block discarded – undo
64 64
                 $docs->content_source = $page->getContent();
65 65
                 $docs->github_hash = $status->getHash();
66 66
 
67
-                if (! $docs->category_id) {
67
+                if (!$docs->category_id) {
68 68
                     $docs->category_id = 0; // TODO
69 69
                 }
70 70
 
71
-                if (! $docs->title) {
71
+                if (!$docs->title) {
72 72
                     $docs->title = Str::ucfirst(str_replace(
73 73
                         ['-', '_'],
74 74
                         ' ',
Please login to merge, or discard this patch.
app/Models/Docs/VersionObserver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.