Completed
Push — master ( f9a038...cc9983 )
by Kamil
22:34
created
Sylius/Bundle/GridBundle/Tests/DependencyInjection/ConfigurationTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
                         'actions' => [],
49 49
                     ]
50 50
                 ],
51
-                'drivers' => [ 'doctrine/orm' ]
51
+                'drivers' => ['doctrine/orm']
52 52
             ]
53 53
         );
54 54
     }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
         $this->assertConfigurationIsInvalid(
100 100
             [
101 101
                 [
102
-                    'drivers' => [ 'doctrine/orm', 'foo/invalid' ],
102
+                    'drivers' => ['doctrine/orm', 'foo/invalid'],
103 103
                 ],
104 104
             ],
105 105
             'Invalid driver specified in ["doctrine\/orm","foo\/invalid"], valid drivers:'
Please login to merge, or discard this patch.
Sylius/Bundle/GridBundle/Tests/Doctrine/PHPCRODM/ExpressionVisitorTest.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 use Doctrine\Common\Collections\Expr\CompositeExpression;
23 23
 use Sylius\Bundle\GridBundle\Doctrine\PHPCRODM\ExtraComparison;
24 24
 
25
-require(__DIR__ . '/QueryBuilderWalker.php');
25
+require(__DIR__.'/QueryBuilderWalker.php');
26 26
 
27 27
 class ExpressionVisitorTest extends \PHPUnit_Framework_TestCase
28 28
 {
@@ -108,17 +108,17 @@  discard block
 block discarded – undo
108 108
         return [
109 109
             [
110 110
                 Comparison::IN,
111
-                [ 'one' ],
111
+                ['one'],
112 112
                 'ConstraintOrx ( jcr.operator.equal.to ( OperandDynamicField(o.hello) OperandStaticLiteral("one") ) )'
113 113
             ],
114 114
             [
115 115
                 Comparison::IN,
116
-                [ 'one', 'two', 'three' ],
116
+                ['one', 'two', 'three'],
117 117
                 'ConstraintOrx ( jcr.operator.equal.to ( OperandDynamicField(o.hello) OperandStaticLiteral("one") ) jcr.operator.equal.to ( OperandDynamicField(o.hello) OperandStaticLiteral("two") ) jcr.operator.equal.to ( OperandDynamicField(o.hello) OperandStaticLiteral("three") ) )',
118 118
             ],
119 119
             [
120 120
                 Comparison::NIN,
121
-                [ 'one' ],
121
+                ['one'],
122 122
                 'ConstraintNot ( ConstraintOrx ( jcr.operator.equal.to ( OperandDynamicField(o.hello) OperandStaticLiteral("one") ) ) )'
123 123
             ],
124 124
         ];
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
         $expr2 = new Comparison('number', Comparison::GT, 8);
134 134
         $expr = new CompositeExpression(
135 135
             $type,
136
-            [ $expr1, $expr2 ]
136
+            [$expr1, $expr2]
137 137
         );
138 138
 
139 139
         $this->visitor->dispatch($expr);
@@ -153,8 +153,8 @@  discard block
 block discarded – undo
153 153
     public function provideComposite()
154 154
     {
155 155
         return [
156
-            [ CompositeExpression::TYPE_AND, 'ConstraintAndx' ],
157
-            [ CompositeExpression::TYPE_OR, 'ConstraintOrx' ]
156
+            [CompositeExpression::TYPE_AND, 'ConstraintAndx'],
157
+            [CompositeExpression::TYPE_OR, 'ConstraintOrx']
158 158
         ];
159 159
     }
160 160
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         $expr3 = new Comparison('date', Comparison::GT, '2015-12-10');
167 167
         $expr = new CompositeExpression(
168 168
             $type,
169
-            [ $expr1, $expr2, $expr3 ]
169
+            [$expr1, $expr2, $expr3]
170 170
         );
171 171
 
172 172
         $this->visitor->dispatch($expr);
@@ -197,12 +197,12 @@  discard block
 block discarded – undo
197 197
         $expr4 = new Comparison('date', Comparison::LT, '2016-12-10');
198 198
         $expr5 = new Comparison('date', Comparison::NEQ, '2016-12-10');
199 199
 
200
-        $comp2 = new CompositeExpression(CompositeExpression::TYPE_AND, [ $expr2, $expr5 ]);
201
-        $comp1 = new CompositeExpression(CompositeExpression::TYPE_OR, [ $expr1, $comp2 ]);
200
+        $comp2 = new CompositeExpression(CompositeExpression::TYPE_AND, [$expr2, $expr5]);
201
+        $comp1 = new CompositeExpression(CompositeExpression::TYPE_OR, [$expr1, $comp2]);
202 202
 
203 203
         $expr = new CompositeExpression(
204 204
             $type,
205
-            [ $comp1, $expr3, $expr4 ]
205
+            [$comp1, $expr3, $expr4]
206 206
         );
207 207
 
208 208
         $this->visitor->dispatch($expr);
Please login to merge, or discard this patch.
Bundle/ThemeBundle/Configuration/Test/TestThemeConfigurationManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
     {
43 43
         $this->configurationProcessor = $configurationProcessor;
44 44
         $this->filesystem = new Filesystem();
45
-        $this->configurationsFile = rtrim($cacheDir, '/') . '/_test_themes/data.serialized';
45
+        $this->configurationsFile = rtrim($cacheDir, '/').'/_test_themes/data.serialized';
46 46
     }
47 47
 
48 48
     /**
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
         $this->clearTheme($themeName);
83 83
 
84 84
         $configurations = $this->load();
85
-        $configurations = array_filter($configurations, function ($configuration) use ($themeName) {
85
+        $configurations = array_filter($configurations, function($configuration) use ($themeName) {
86 86
             return isset($configuration['name']) && $configuration['name'] !== $themeName;
87 87
         });
88 88
         $this->save($configurations);
@@ -165,6 +165,6 @@  discard block
 block discarded – undo
165 165
      */
166 166
     private function getThemeDirectory($themeName)
167 167
     {
168
-        return rtrim(dirname($this->configurationsFile), '/') . '/' . $themeName;
168
+        return rtrim(dirname($this->configurationsFile), '/').'/'.$themeName;
169 169
     }
170 170
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ThemeContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
      */
124 124
     public function themeChangesHomepageTemplateContents(ThemeInterface $theme, $contents)
125 125
     {
126
-        $file = rtrim($theme->getPath(), '/') . '/SyliusWebBundle/views/Frontend/Homepage/main.html.twig';
126
+        $file = rtrim($theme->getPath(), '/').'/SyliusWebBundle/views/Frontend/Homepage/main.html.twig';
127 127
         $dir = dirname($file);
128 128
 
129 129
         if (!file_exists($dir)) {
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Domain/PromotionCouponContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
             $this->couponRepository->remove($coupon);
64 64
 
65 65
             throw new \Exception(sprintf('Coupon "%s" has been removed, but it should not.', $coupon->getCode()));
66
-        } catch(ForeignKeyConstraintViolationException $exception) {
66
+        } catch (ForeignKeyConstraintViolationException $exception) {
67 67
             $this->sharedStorage->set('last_exception', $exception);
68 68
         }
69 69
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductAttributesContext.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -151,7 +151,7 @@
 block discarded – undo
151 151
      */
152 152
     public function theTypeFieldShouldBeDisabled()
153 153
     {
154
-       $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]);
154
+        $currentPage = $this->currentPageResolver->getCurrentPageWithForm([$this->createPage, $this->updatePage]);
155 155
 
156 156
         Assert::true(
157 157
             $currentPage->isTypeDisabled(),
Please login to merge, or discard this patch.