@@ -17,18 +17,18 @@ discard block  | 
                                                    ||
| 17 | 17 |  while ($dir !== $lastDir) { | 
                                                        
| 18 | 18 | $lastDir = $dir;  | 
                                                        
| 19 | 19 | |
| 20 | -    if (file_exists($dir . '/autoload.php')) { | 
                                                        |
| 21 | - require_once $dir . '/autoload.php';  | 
                                                        |
| 20 | +    if (file_exists($dir.'/autoload.php')) { | 
                                                        |
| 21 | + require_once $dir.'/autoload.php';  | 
                                                        |
| 22 | 22 | break;  | 
                                                        
| 23 | 23 | }  | 
                                                        
| 24 | 24 | |
| 25 | -    if (file_exists($dir . '/autoload.php.dist')) { | 
                                                        |
| 26 | - require_once $dir . '/autoload.php.dist';  | 
                                                        |
| 25 | +    if (file_exists($dir.'/autoload.php.dist')) { | 
                                                        |
| 26 | + require_once $dir.'/autoload.php.dist';  | 
                                                        |
| 27 | 27 | break;  | 
                                                        
| 28 | 28 | }  | 
                                                        
| 29 | 29 | |
| 30 | -    if (file_exists($dir . '/vendor/autoload.php')) { | 
                                                        |
| 31 | - require_once $dir . '/vendor/autoload.php';  | 
                                                        |
| 30 | +    if (file_exists($dir.'/vendor/autoload.php')) { | 
                                                        |
| 31 | + require_once $dir.'/vendor/autoload.php';  | 
                                                        |
| 32 | 32 | break;  | 
                                                        
| 33 | 33 | }  | 
                                                        
| 34 | 34 | |
@@ -51,13 +51,13 @@ discard block  | 
                                                    ||
| 51 | 51 | |
| 52 | 52 | public function __construct($testCase, $rootConfig, $environment, $debug)  | 
                                                        
| 53 | 53 |      { | 
                                                        
| 54 | -        if (!is_dir(__DIR__ . '/' . $testCase)) { | 
                                                        |
| 54 | +        if (!is_dir(__DIR__.'/'.$testCase)) { | 
                                                        |
| 55 | 55 |              throw new \InvalidArgumentException(sprintf('The test case "%s" does not exist.', $testCase)); | 
                                                        
| 56 | 56 | }  | 
                                                        
| 57 | 57 | $this->testCase = $testCase;  | 
                                                        
| 58 | 58 | |
| 59 | 59 | $fs = new Filesystem();  | 
                                                        
| 60 | -        if (!$fs->isAbsolutePath($rootConfig) && !file_exists($rootConfig = __DIR__ . '/' . $testCase . '/' . $rootConfig)) { | 
                                                        |
| 60 | +        if (!$fs->isAbsolutePath($rootConfig) && !file_exists($rootConfig = __DIR__.'/'.$testCase.'/'.$rootConfig)) { | 
                                                        |
| 61 | 61 |              throw new \InvalidArgumentException(sprintf('The root config "%s" does not exist.', $rootConfig)); | 
                                                        
| 62 | 62 | }  | 
                                                        
| 63 | 63 | $this->rootConfig = $rootConfig;  | 
                                                        
@@ -67,7 +67,7 @@ discard block  | 
                                                    ||
| 67 | 67 | |
| 68 | 68 | public function registerBundles()  | 
                                                        
| 69 | 69 |      { | 
                                                        
| 70 | -        if (!file_exists($filename = $this->getRootDir() . '/' . $this->testCase . '/bundles.php')) { | 
                                                        |
| 70 | +        if (!file_exists($filename = $this->getRootDir().'/'.$this->testCase.'/bundles.php')) { | 
                                                        |
| 71 | 71 |              throw new \RuntimeException(sprintf('The bundles file "%s" does not exist.', $filename)); | 
                                                        
| 72 | 72 | }  | 
                                                        
| 73 | 73 | |
@@ -81,12 +81,12 @@ discard block  | 
                                                    ||
| 81 | 81 | |
| 82 | 82 | public function getCacheDir()  | 
                                                        
| 83 | 83 |      { | 
                                                        
| 84 | - return sys_get_temp_dir() . '/' . Kernel::VERSION . '/' . $this->testCase . '/cache/' . $this->environment;  | 
                                                        |
| 84 | + return sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$this->testCase.'/cache/'.$this->environment;  | 
                                                        |
| 85 | 85 | }  | 
                                                        
| 86 | 86 | |
| 87 | 87 | public function getLogDir()  | 
                                                        
| 88 | 88 |      { | 
                                                        
| 89 | - return sys_get_temp_dir() . '/' . Kernel::VERSION . '/' . $this->testCase . '/logs';  | 
                                                        |
| 89 | + return sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$this->testCase.'/logs';  | 
                                                        |
| 90 | 90 | }  | 
                                                        
| 91 | 91 | |
| 92 | 92 | public function registerContainerConfiguration(LoaderInterface $loader)  | 
                                                        
@@ -25,7 +25,7 @@ discard block  | 
                                                    ||
| 25 | 25 | */  | 
                                                        
| 26 | 26 | public function testAssets($symlinkMask)  | 
                                                        
| 27 | 27 |      { | 
                                                        
| 28 | - $webDirectory = $this->getTmpDirPath(self::TEST_CASE) . '/web';  | 
                                                        |
| 28 | + $webDirectory = $this->getTmpDirPath(self::TEST_CASE).'/web';  | 
                                                        |
| 29 | 29 |          if (!is_dir($webDirectory)) { | 
                                                        
| 30 | 30 | mkdir($webDirectory, 0777, true);  | 
                                                        
| 31 | 31 | }  | 
                                                        
@@ -41,7 +41,7 @@ discard block  | 
                                                    ||
| 41 | 41 |          foreach ($lines as $line) { | 
                                                        
| 42 | 42 |              list($expectedText, $assetFile) = explode(": ", $line); | 
                                                        
| 43 | 43 | |
| 44 | - $contents = file_get_contents($webDirectory . $assetFile);  | 
                                                        |
| 44 | + $contents = file_get_contents($webDirectory.$assetFile);  | 
                                                        |
| 45 | 45 | |
| 46 | 46 | $this->assertEquals($expectedText, $contents);  | 
                                                        
| 47 | 47 | }  | 
                                                        
@@ -35,7 +35,7 @@  | 
                                                    ||
| 35 | 35 | |
| 36 | 36 | protected function getTmpDirPath($testCase)  | 
                                                        
| 37 | 37 |      { | 
                                                        
| 38 | - return sys_get_temp_dir() . '/' . Kernel::VERSION . '/' . $testCase;  | 
                                                        |
| 38 | + return sys_get_temp_dir().'/'.Kernel::VERSION.'/'.$testCase;  | 
                                                        |
| 39 | 39 | }  | 
                                                        
| 40 | 40 | |
| 41 | 41 | protected static function getKernelClass()  | 
                                                        
@@ -26,7 +26,7 @@ discard block  | 
                                                    ||
| 26 | 26 |      { | 
                                                        
| 27 | 27 | $client = $this->getClient();  | 
                                                        
| 28 | 28 | |
| 29 | -        $crawler = $client->request('GET', '/template/' . $templateName); | 
                                                        |
| 29 | +        $crawler = $client->request('GET', '/template/'.$templateName); | 
                                                        |
| 30 | 30 | $this->assertEquals($contents, $crawler->text());  | 
                                                        
| 31 | 31 | }  | 
                                                        
| 32 | 32 | |
@@ -54,7 +54,7 @@ discard block  | 
                                                    ||
| 54 | 54 |      { | 
                                                        
| 55 | 55 | $client = $this->getClient();  | 
                                                        
| 56 | 56 | |
| 57 | -        $crawler = $client->request('GET', '/template/' . $templateName); | 
                                                        |
| 57 | +        $crawler = $client->request('GET', '/template/'.$templateName); | 
                                                        |
| 58 | 58 | $this->assertEquals($contents, $crawler->text());  | 
                                                        
| 59 | 59 | }  | 
                                                        
| 60 | 60 | |
@@ -141,7 +141,7 @@  | 
                                                    ||
| 141 | 141 | $themes = $this->themeContext->getThemeHierarchy();  | 
                                                        
| 142 | 142 | |
| 143 | 143 |          foreach ($themes as $theme) { | 
                                                        
| 144 | - yield $id . "|" . $theme->getSlug();  | 
                                                        |
| 144 | + yield $id."|".$theme->getSlug();  | 
                                                        |
| 145 | 145 | }  | 
                                                        
| 146 | 146 | |
| 147 | 147 | yield $id;  | 
                                                        
@@ -54,7 +54,7 @@  | 
                                                    ||
| 54 | 54 | |
| 55 | 55 |              foreach ($messages as $key => $value) { | 
                                                        
| 56 | 56 | unset($messages[$key]);  | 
                                                        
| 57 | - $messages[$key . '|' . $theme->getSlug()] = $value;  | 
                                                        |
| 57 | + $messages[$key.'|'.$theme->getSlug()] = $value;  | 
                                                        |
| 58 | 58 | }  | 
                                                        
| 59 | 59 | |
| 60 | 60 | $messageCatalogue->replace($messages, $domain);  | 
                                                        
@@ -37,10 +37,10 @@  | 
                                                    ||
| 37 | 37 |          $loaders = $container->findTaggedServiceIds('translation.loader'); | 
                                                        
| 38 | 38 |          foreach (array_keys($loaders) as $id) { | 
                                                        
| 39 | 39 | $container  | 
                                                        
| 40 | -                ->register('sylius.theme.translation.loader.' . $id, ThemeAwareLoader::class) | 
                                                        |
| 40 | +                ->register('sylius.theme.translation.loader.'.$id, ThemeAwareLoader::class) | 
                                                        |
| 41 | 41 | ->setDecoratedService($id)  | 
                                                        
| 42 | 42 | ->setArguments([  | 
                                                        
| 43 | -                    new Reference('sylius.theme.translation.loader.' . $id . '.inner'), | 
                                                        |
| 43 | +                    new Reference('sylius.theme.translation.loader.'.$id.'.inner'), | 
                                                        |
| 44 | 44 |                      new Reference('sylius.theme.repository'), | 
                                                        
| 45 | 45 | ])  | 
                                                        
| 46 | 46 | ;  | 
                                                        
@@ -79,7 +79,7 @@ discard block  | 
                                                    ||
| 79 | 79 | public function installAssets($targetDir, $symlinkMask)  | 
                                                        
| 80 | 80 |      { | 
                                                        
| 81 | 81 | // Create the bundles directory otherwise symlink will fail.  | 
                                                        
| 82 | - $targetDir = rtrim($targetDir, '/') . '/bundles/';  | 
                                                        |
| 82 | + $targetDir = rtrim($targetDir, '/').'/bundles/';  | 
                                                        |
| 83 | 83 | $this->filesystem->mkdir($targetDir);  | 
                                                        
| 84 | 84 | |
| 85 | 85 | $effectiveSymlinkMask = $symlinkMask;  | 
                                                        
@@ -138,7 +138,7 @@ discard block  | 
                                                    ||
| 138 | 138 | |
| 139 | 139 | /** @var SplFileInfo[] $finder */  | 
                                                        
| 140 | 140 |          foreach ($finder as $originFile) { | 
                                                        
| 141 | - $targetFile = $targetDir . '/' . $originFile->getRelativePathname();  | 
                                                        |
| 141 | + $targetFile = $targetDir.'/'.$originFile->getRelativePathname();  | 
                                                        |
| 142 | 142 | $targetFile = $this->pathResolver->resolve($targetFile, $theme);  | 
                                                        
| 143 | 143 | |
| 144 | 144 |              if (file_exists($targetFile)) { | 
                                                        
@@ -233,13 +233,13 @@ discard block  | 
                                                    ||
| 233 | 233 | $sources = [];  | 
                                                        
| 234 | 234 | |
| 235 | 235 |          foreach ($themes as $theme) { | 
                                                        
| 236 | - $sourceDir = $theme->getPath() . '/' . $bundle->getName() . '/public';  | 
                                                        |
| 236 | + $sourceDir = $theme->getPath().'/'.$bundle->getName().'/public';  | 
                                                        |
| 237 | 237 |              if (is_dir($sourceDir)) { | 
                                                        
| 238 | 238 | $sources[] = $sourceDir;  | 
                                                        
| 239 | 239 | }  | 
                                                        
| 240 | 240 | }  | 
                                                        
| 241 | 241 | |
| 242 | - $sourceDir = $bundle->getPath() . '/Resources/public';  | 
                                                        |
| 242 | + $sourceDir = $bundle->getPath().'/Resources/public';  | 
                                                        |
| 243 | 243 |          if (is_dir($sourceDir)) { | 
                                                        
| 244 | 244 | $sources[] = $sourceDir;  | 
                                                        
| 245 | 245 | }  | 
                                                        
@@ -66,6 +66,6 @@  | 
                                                    ||
| 66 | 66 | $path = $this->pathResolver->resolve($path, $theme);  | 
                                                        
| 67 | 67 | }  | 
                                                        
| 68 | 68 | |
| 69 | - return $this->getBasePath() . ltrim($this->getVersionStrategy()->applyVersion($path), '/');  | 
                                                        |
| 69 | + return $this->getBasePath().ltrim($this->getVersionStrategy()->applyVersion($path), '/');  | 
                                                        |
| 70 | 70 | }  | 
                                                        
| 71 | 71 | }  |