Completed
Push — master ( 5bd517...c7b86e )
by Tomáš
08:52
created
src/Console/Command/PushToGithubCommand.php 1 patch
Spacing   +4 added lines, -4 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
@@ -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.
src/Output/FileSystemWriter.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
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
     {
34 34
         foreach ($files as $file) {
35 35
             $relativeDestination = substr($file->getPathname(), strlen($this->configuration->getSourceDirectory()));
36
-            $absoluteDestination = $this->configuration->getOutputDirectory() . $relativeDestination;
36
+            $absoluteDestination = $this->configuration->getOutputDirectory().$relativeDestination;
37 37
 
38 38
             FileSystem::copy($file->getRealPath(), $absoluteDestination, true);
39 39
         }
Please login to merge, or discard this patch.
src/DI/Container/ContainerFactory.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
@@ -20,14 +20,14 @@  discard block
 block discarded – undo
20 20
         $configurator = new Configurator();
21 21
         $configurator->setDebugMode(true);
22 22
         $configurator->setTempDirectory($this->createAndReturnTempDir());
23
-        $configurator->addConfig(__DIR__ . '/../../config/config.neon');
23
+        $configurator->addConfig(__DIR__.'/../../config/config.neon');
24 24
 
25 25
         return $configurator->createContainer();
26 26
     }
27 27
 
28 28
     private function createAndReturnTempDir() : string
29 29
     {
30
-        $tempDir = sys_get_temp_dir() . '/php7_sculpin';
30
+        $tempDir = sys_get_temp_dir().'/php7_sculpin';
31 31
         FileSystem::delete($tempDir);
32 32
         FileSystem::createDir($tempDir);
33 33
 
Please login to merge, or discard this patch.
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/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.