Completed
Push — snake-case-tests ( 55729f )
by Kamil
87:29 queued 51:35
created
src/Sylius/Behat/Page/Admin/Order/ShowPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
             (stripos($elementText, $customerName) !== false) &&
386 386
             (stripos($elementText, $street) !== false) &&
387 387
             (stripos($elementText, $city) !== false) &&
388
-            (stripos($elementText, $countryName.' '.$postcode) !== false)
388
+            (stripos($elementText, $countryName . ' ' . $postcode) !== false)
389 389
         ;
390 390
     }
391 391
 
@@ -402,7 +402,7 @@  discard block
 block discarded – undo
402 402
             ['item' => $itemName]
403 403
         );
404 404
 
405
-        return $rows[0]->find('css', '.'.$property)->getText();
405
+        return $rows[0]->find('css', '.' . $property)->getText();
406 406
     }
407 407
 
408 408
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/SymfonyPage.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,8 @@
 block discarded – undo
75 75
      */
76 76
     final protected function makePathAbsolute($path)
77 77
     {
78
-        $baseUrl = rtrim($this->getParameter('base_url'), '/').'/';
78
+        $baseUrl = rtrim($this->getParameter('base_url'), '/') . '/';
79 79
 
80
-        return 0 !== strpos($path, 'http') ? $baseUrl.ltrim($path, '/') : $path;
80
+        return 0 !== strpos($path, 'http') ? $baseUrl . ltrim($path, '/') : $path;
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/Doctrine/DBAL/ExpressionBuilder.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     {
77 77
         $this->queryBuilder->setParameter($field, $value);
78 78
 
79
-        return $this->queryBuilder->expr()->eq($field, ':'.$field);
79
+        return $this->queryBuilder->expr()->eq($field, ':' . $field);
80 80
     }
81 81
 
82 82
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     {
87 87
         $this->queryBuilder->setParameter($field, $value);
88 88
 
89
-        return $this->queryBuilder->expr()->neq($field, ':'.$field);
89
+        return $this->queryBuilder->expr()->neq($field, ':' . $field);
90 90
     }
91 91
 
92 92
     /**
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      */
95 95
     public function lessThan($field, $value)
96 96
     {
97
-        $this->queryBuilder->andWhere($field.' < :'.$field)->setParameter($field, $value);
97
+        $this->queryBuilder->andWhere($field . ' < :' . $field)->setParameter($field, $value);
98 98
     }
99 99
 
100 100
     /**
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
      */
103 103
     public function lessThanOrEqual($field, $value)
104 104
     {
105
-        $this->queryBuilder->andWhere($field.' =< :'.$field)->setParameter($field, $value);
105
+        $this->queryBuilder->andWhere($field . ' =< :' . $field)->setParameter($field, $value);
106 106
     }
107 107
 
108 108
     /**
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
      */
111 111
     public function greaterThan($field, $value)
112 112
     {
113
-        $this->queryBuilder->andWhere($field.' > :'.$field)->setParameter($field, $value);
113
+        $this->queryBuilder->andWhere($field . ' > :' . $field)->setParameter($field, $value);
114 114
     }
115 115
 
116 116
     /**
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     public function greaterThanOrEqual($field, $value)
120 120
     {
121
-        $this->queryBuilder->andWhere($field.' => :%s'.$field)->setParameter($field, $value);
121
+        $this->queryBuilder->andWhere($field . ' => :%s' . $field)->setParameter($field, $value);
122 122
     }
123 123
 
124 124
     /**
Please login to merge, or discard this patch.
Bundle/CoreBundle/Validator/Constraints/HasEnabledEntityValidator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@
 block discarded – undo
55 55
     public function validate($entity, Constraint $constraint)
56 56
     {
57 57
         if (!$constraint instanceof HasEnabledEntity) {
58
-            throw new UnexpectedTypeException($constraint, __NAMESPACE__.'\HasEnabledEntity');
58
+            throw new UnexpectedTypeException($constraint, __NAMESPACE__ . '\HasEnabledEntity');
59 59
         }
60 60
 
61 61
         $enabled = $this->accessor->getValue($entity, $constraint->enabledPath);
Please login to merge, or discard this patch.
src/Sylius/Bundle/ShippingBundle/Form/Type/ShippingMethodType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
         $view->vars['prototypes'] = [];
118 118
         foreach ($form->getConfig()->getAttribute('prototypes') as $group => $prototypes) {
119 119
             foreach ($prototypes as $type => $prototype) {
120
-                $view->vars['prototypes'][$group.'_'.$type] = $prototype->createView($view);
120
+                $view->vars['prototypes'][$group . '_' . $type] = $prototype->createView($view);
121 121
             }
122 122
         }
123 123
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Controller/RedirectHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@
 block discarded – undo
85 85
     {
86 86
         if ($configuration->isHeaderRedirection()) {
87 87
             return new Response('', 200, [
88
-                'X-SYLIUS-LOCATION' => $url.$configuration->getRedirectHash(),
88
+                'X-SYLIUS-LOCATION' => $url . $configuration->getRedirectHash(),
89 89
             ]);
90 90
         }
91 91
 
92
-        return new RedirectResponse($url.$configuration->getRedirectHash(), $status);
92
+        return new RedirectResponse($url . $configuration->getRedirectHash(), $status);
93 93
     }
94 94
 
95 95
     /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Doctrine/ORM/EntityRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
             } elseif ('' !== $value) {
94 94
                 $parameter = str_replace('.', '_', $property);
95 95
                 $queryBuilder
96
-                    ->andWhere($queryBuilder->expr()->eq($name, ':'.$parameter))
96
+                    ->andWhere($queryBuilder->expr()->eq($name, ':' . $parameter))
97 97
                     ->setParameter($parameter, $value)
98 98
                 ;
99 99
             }
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
     protected function getPropertyName($name)
122 122
     {
123 123
         if (false === strpos($name, '.')) {
124
-            return 'o'.'.'.$name;
124
+            return 'o' . '.' . $name;
125 125
         }
126 126
 
127 127
         return $name;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/Doctrine/ODM/PHPCR/DocumentRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
     {
112 112
         foreach ($sorting as $property => $order) {
113 113
             if (!empty($order)) {
114
-                $queryBuilder->orderBy()->{$order}()->field('o.'.$property);
114
+                $queryBuilder->orderBy()->{$order}()->field('o.' . $property);
115 115
             }
116 116
         }
117 117
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
     protected function getPropertyName($name)
127 127
     {
128 128
         if (false === strpos($name, '.')) {
129
-            return $this->getAlias().'.'.$name;
129
+            return $this->getAlias() . '.' . $name;
130 130
         }
131 131
 
132 132
         return $name;
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/test/app/AppKernel.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
      */
45 45
     public function registerContainerConfiguration(LoaderInterface $loader)
46 46
     {
47
-        $loader->load(__DIR__.'/config/config.yml');
47
+        $loader->load(__DIR__ . '/config/config.yml');
48 48
     }
49 49
 
50 50
     /**
Please login to merge, or discard this patch.