@@ -1,6 +1,6 @@ discard block |
||
| 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 |
@@ -72,7 +72,7 @@ discard block |
||
| 72 | 72 | |
| 73 | 73 | public function getBaseName() : string |
| 74 | 74 | { |
| 75 | - return $this->fileInfo->getBasename('.' . $this->fileInfo->getExtension()); |
|
| 75 | + return $this->fileInfo->getBasename('.'.$this->fileInfo->getExtension()); |
|
| 76 | 76 | } |
| 77 | 77 | |
| 78 | 78 | public function getPrimaryExtension() : string |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | |
| 36 | 36 | private function setConfigurationToFileIfFoundAny(string $content, AbstractFile $file) |
| 37 | 37 | { |
| 38 | - if (! preg_match('/^(\s*[-]+\s*|\s*)$/', $content)) { |
|
| 38 | + if (!preg_match('/^(\s*[-]+\s*|\s*)$/', $content)) { |
|
| 39 | 39 | $configuration = $this->yamlAndNeonParser->decode($content); |
| 40 | 40 | $file->setConfiguration($configuration); |
| 41 | 41 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
@@ -35,7 +35,7 @@ discard block |
||
| 35 | 35 | } |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | - $file->setOutputPath($file->getBaseName() . DIRECTORY_SEPARATOR . 'index.html'); |
|
| 38 | + $file->setOutputPath($file->getBaseName().DIRECTORY_SEPARATOR.'index.html'); |
|
| 39 | 39 | $file->setRelativeUrl($file->getBaseName()); |
| 40 | 40 | } |
| 41 | 41 | } |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function buildOutputPath(AbstractFile $file) : string |
| 39 | 39 | { |
| 40 | - return PathNormalizer::normalize($this->buildRelativeUrl($file) . '/index.html'); |
|
| 40 | + return PathNormalizer::normalize($this->buildRelativeUrl($file).'/index.html'); |
|
| 41 | 41 | } |
| 42 | 42 | |
| 43 | 43 | /** |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
@@ -28,7 +28,7 @@ discard block |
||
| 28 | 28 | return $file->getBaseName(); |
| 29 | 29 | } |
| 30 | 30 | |
| 31 | - return $file->getBaseName() . '.' . $file->getPrimaryExtension(); |
|
| 31 | + return $file->getBaseName().'.'.$file->getPrimaryExtension(); |
|
| 32 | 32 | } |
| 33 | 33 | |
| 34 | 34 | public function buildRelativeUrl(AbstractFile $file) : string |
@@ -1,6 +1,6 @@ |
||
| 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. |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | */ |
| 80 | 80 | public function processFiles(array $fileInfos) |
| 81 | 81 | { |
| 82 | - if (! count($fileInfos)) { |
|
| 82 | + if (!count($fileInfos)) { |
|
| 83 | 83 | return; |
| 84 | 84 | } |
| 85 | 85 | |
@@ -1,6 +1,6 @@ |
||
| 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. |
@@ -1,6 +1,6 @@ discard block |
||
| 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 |
||
| 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 | } |