Completed
Branch theme-bundle (26965f)
by Kamil
30:47 queued 24s
created
src/Sylius/Bundle/InstallerBundle/Command/InstallCommand.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,19 +22,19 @@  discard block
 block discarded – undo
22 22
      * @var array
23 23
      */
24 24
     private $commands = array(
25
-        array (
25
+        array(
26 26
             'command' => 'check-requirements',
27 27
             'message' => 'Checking system requirements.',
28 28
         ),
29
-        array (
29
+        array(
30 30
             'command' => 'database',
31 31
             'message' => 'Setting up the database.',
32 32
         ),
33
-        array (
33
+        array(
34 34
             'command' => 'setup',
35 35
             'message' => 'Shop configuration.',
36 36
         ),
37
-        array (
37
+        array(
38 38
             'command' => 'assets',
39 39
             'message' => 'Installing assets.',
40 40
         ),
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         foreach ($this->commands as $step => $command) {
74 74
             try {
75
-                $output->writeln(sprintf('<comment>Step %d of %d.</comment> <info>%s</info>', $step+1, count($this->commands), $command['message']));
75
+                $output->writeln(sprintf('<comment>Step %d of %d.</comment> <info>%s</info>', $step + 1, count($this->commands), $command['message']));
76 76
                 $this->commandExecutor->runCommand('sylius:install:'.$command['command'], array(), $output);
77 77
                 $output->writeln('');
78 78
             } catch (RuntimeException $exception) {
Please login to merge, or discard this patch.
src/Sylius/Bundle/OrderBundle/DependencyInjection/Configuration.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
                 ->booleanNode('guest_order')
61 61
                     ->beforeNormalization()
62 62
                         ->ifString()
63
-                        ->then(function ($v) { return (bool) $v; })
63
+                        ->then(function($v) { return (bool) $v; })
64 64
                     ->end()
65 65
                     ->defaultFalse()
66 66
                 ->end()
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Form/Type/UserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@
 block discarded – undo
44 44
         $resolver
45 45
             ->setDefaults(array(
46 46
                 'data_class' => $this->dataClass,
47
-                'validation_groups' => function (FormInterface $form) {
47
+                'validation_groups' => function(FormInterface $form) {
48 48
                     $data = $form->getData();
49 49
                     if ($data && !$data->getId()) {
50 50
                         $this->validationGroups[] = 'sylius_user_create';
Please login to merge, or discard this patch.
src/Sylius/Bundle/LocaleBundle/Form/Type/LocaleChoiceType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
      */
55 55
     public function configureOptions(OptionsResolver $resolver)
56 56
     {
57
-        $choiceList = function (Options $options) {
57
+        $choiceList = function(Options $options) {
58 58
             if (null === $options['enabled']) {
59 59
                 $choices = $this->localeRepository->findAll();
60 60
             } else {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/PhpSpec/FixtureAwareObjectBehavior.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      */
26 26
     protected function getFixturePath($fixturePath)
27 27
     {
28
-        $path = __DIR__ . '/../spec/fixtures/' . $fixturePath;
28
+        $path = __DIR__.'/../spec/fixtures/'.$fixturePath;
29 29
 
30 30
         if (false === $realpath = realpath($path)) {
31 31
             throw new \RuntimeException(sprintf('Fixture "%s" does not exist!', $path));
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/app/AppKernel.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -17,18 +17,18 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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)
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/AssetTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/WebTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
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()
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/Tests/Functional/TemplatingTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.