Completed
Push — master ( bd44d0...9017a1 )
by Tomáš
04:50
created
src/DI/Helper/TypeAndCollectorTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of Symplify
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         $collectedDefinitions = $this->getContainerBuilder()
25 25
             ->findByType($collectedType);
26 26
         foreach ($collectedDefinitions as $name => $definition) {
27
-            $collectorDefinition->addSetup($setterMethod, ['@' . $name]);
27
+            $collectorDefinition->addSetup($setterMethod, ['@'.$name]);
28 28
         }
29 29
     }
30 30
 
Please login to merge, or discard this patch.
src/DI/SculpinCompilerExtension.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of Symplify
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         Compiler::loadDefinitions(
41 41
             $this->getContainerBuilder(),
42
-            $this->loadFromFile(__DIR__ . '/../config/services.neon')['services']
42
+            $this->loadFromFile(__DIR__.'/../config/services.neon')['services']
43 43
         );
44 44
     }
45 45
 }
Please login to merge, or discard this patch.
src/Application/SculpinApplication.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of Symplify
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
         if ($runCommand->isRunServer()) {
82 82
             $this->httpServer->init();
83 83
 
84
-            $this->httpServer->addPeriodicTimer(1, function () use ($runCommand) {
84
+            $this->httpServer->addPeriodicTimer(1, function() use ($runCommand) {
85 85
                 clearstatcache();
86 86
                 $this->processCommand($runCommand);
87 87
             });
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
     private function loadLayoutsToLatteLoader(array $layoutFiles)
144 144
     {
145 145
         foreach ($layoutFiles as $layoutFile) {
146
-            $name = $layoutFile->getBasename('.' . $layoutFile->getExtension());
146
+            $name = $layoutFile->getBasename('.'.$layoutFile->getExtension());
147 147
             $content = file_get_contents($layoutFile->getRealPath());
148 148
             $this->dynamicStringLoader->addTemplate($name, $content);
149 149
         }
Please login to merge, or discard this patch.
src/Contract/Renderable/Routing/Route/RouteInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is a part of Sculpin.
Please login to merge, or discard this patch.
src/Utils/PathAnalyzer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is a part of Sculpin.
Please login to merge, or discard this patch.
src/Utils/FilesystemChecker.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of Symplify
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 {
16 16
     public static function ensureDirectoryExists(string $directory)
17 17
     {
18
-        if (! is_dir($directory)) {
18
+        if (!is_dir($directory)) {
19 19
             throw new MissingDirectoryException(
20 20
                 sprintf('Directory "%s" was not found.', $directory)
21 21
             );
Please login to merge, or discard this patch.
src/Source/SourceFileFilter/RenderableSourceFilter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of Symplify
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
 
24 24
     public function matchesFileSource(SplFileInfo $fileInfo) : bool
25 25
     {
26
-        if (Strings::contains($fileInfo->getPath(), DIRECTORY_SEPARATOR . '_')) {
26
+        if (Strings::contains($fileInfo->getPath(), DIRECTORY_SEPARATOR.'_')) {
27 27
             return false;
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/Console/Command/GenerateCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of Symplify
@@ -42,14 +42,14 @@  discard block
 block discarded – undo
42 42
             null,
43 43
             InputOption::VALUE_REQUIRED,
44 44
             'Directory to load page FROM.',
45
-            getcwd() . DIRECTORY_SEPARATOR . 'source'
45
+            getcwd().DIRECTORY_SEPARATOR.'source'
46 46
         );
47 47
         $this->addOption(
48 48
             'output',
49 49
             null,
50 50
             InputOption::VALUE_REQUIRED,
51 51
             'Directory to generate page TO.',
52
-            getcwd() . DIRECTORY_SEPARATOR . 'output'
52
+            getcwd().DIRECTORY_SEPARATOR.'output'
53 53
         );
54 54
     }
55 55
 
Please login to merge, or discard this patch.
src/Console/Command/PushToGithubCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 
3
-declare(strict_types=1);
3
+declare(strict_types = 1);
4 4
 
5 5
 /*
6 6
  * This file is part of Symplify
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             null,
48 48
             InputOption::VALUE_REQUIRED,
49 49
             'Directory where was output saved TO.',
50
-            getcwd() . DIRECTORY_SEPARATOR . 'output'
50
+            getcwd().DIRECTORY_SEPARATOR.'output'
51 51
         );
52 52
     }
53 53
 
@@ -95,8 +95,8 @@  discard block
 block discarded – undo
95 95
 
96 96
     private function ensureGithubRepositorySlugIsValid(string $repositorySlug)
97 97
     {
98
-        $repositoryUrl = 'https://github.com/' . $repositorySlug;
99
-        if (! $this->doesUrlExist($repositoryUrl)) {
98
+        $repositoryUrl = 'https://github.com/'.$repositorySlug;
99
+        if (!$this->doesUrlExist($repositoryUrl)) {
100 100
             throw new Exception(sprintf(
101 101
                 'Repository "%s" is not accessible. Try fixing the "%s" slug.',
102 102
                 $repositoryUrl,
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     private function doesUrlExist(string $url) : bool
109 109
     {
110 110
         $fileHeaders = @get_headers($url);
111
-        if (! $fileHeaders || $fileHeaders[0] === 'HTTP/1.1 404 Not Found') {
111
+        if (!$fileHeaders || $fileHeaders[0] === 'HTTP/1.1 404 Not Found') {
112 112
             return false;
113 113
         }
114 114
 
Please login to merge, or discard this patch.