Completed
Push — product/missing-methods ( 0cfbf7 )
by Kamil
25:41
created
Bundle/GridBundle/DependencyInjection/Compiler/RegisterDriversPass.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->findDefinition('sylius.registry.grid_driver');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_driver') as $id => $attributes) {
35
-            if (!isset($attributes[0]['alias']))  {
35
+            if (!isset($attributes[0]['alias'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid drivers needs to have `alias` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
Bundle/GridBundle/DependencyInjection/Compiler/RegisterFiltersPass.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->getDefinition('sylius.registry.grid_filter');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/PaymentBundle/Form/Type/PaymentMethodChoiceType.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,8 +102,7 @@
 block discarded – undo
102 102
      */
103 103
     private function createChoiceList()
104 104
     {
105
-        return function (Options $options) 
106
-        {
105
+        return function (Options $options) {
107 106
             if (isset($options['subject'])) {
108 107
                 $resolvedMethods = $this->paymentMethodsResolver->getSupportedMethods($options['subject']);
109 108
             } else {
Please login to merge, or discard this patch.
src/Sylius/Bundle/ResourceBundle/GedmoHandler/TranslationSlugHandler.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,8 @@
 block discarded – undo
124 124
             if (isset($options['suffix'])) {
125 125
                 $suffix = $options['suffix'];
126 126
 
127
-                if (substr($this->parentSlug, -strlen($suffix)) === $suffix) { //endsWith
127
+                if (substr($this->parentSlug, -strlen($suffix)) === $suffix) {
128
+//endsWith
128 129
                     $this->parentSlug = substr_replace($this->parentSlug, '', -1 * strlen($suffix));
129 130
                 }
130 131
             }
Please login to merge, or discard this patch.
src/Sylius/Bundle/ThemeBundle/spec/Translation/ThemeAwareTranslatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,8 @@
 block discarded – undo
28 28
  */
29 29
 class ThemeAwareTranslatorSpec extends ObjectBehavior
30 30
 {
31
-    function let(TranslatorInterface $translator, ThemeContextInterface $themeContext) {
31
+    function let(TranslatorInterface $translator, ThemeContextInterface $themeContext)
32
+    {
32 33
         $translator->implement(TranslatorBagInterface::class);
33 34
 
34 35
         $this->beConstructedWith($translator, $themeContext);
Please login to merge, or discard this patch.
Bundle/GridBundle/DependencyInjection/Compiler/RegisterFieldTypesPass.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
         $registry = $container->getDefinition('sylius.registry.grid_filter');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_filter') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid filters needs to have `type` attribute.');
37 37
             }
38 38
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingProductOptionsContext.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,8 +65,7 @@
 block discarded – undo
65 65
 
66 66
     function is_configures_options(
67 67
         OptionsResolver $resolver
68
-    )
69
-    {
68
+    ) {
70 69
         $resolver->setDefaults([
71 70
             'format' => 'Y:m:d H:i:s'
72 71
         ])->shouldBeCalled();
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Checkout/AddressPage.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@
 block discarded – undo
318 318
      */
319 319
     private function waitForElement($timeout, $elementName)
320 320
     {
321
-        return $this->getDocument()->waitFor($timeout, function () use ($elementName){
321
+        return $this->getDocument()->waitFor($timeout, function () use ($elementName) {
322 322
             return $this->hasElement($elementName);
323 323
         });
324 324
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Taxon/UpdatePage.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,8 @@
 block discarded – undo
144 144
     /**
145 145
      * {@inheritdoc}
146 146
      */
147
-    public function getValidationMessageForImageAtPlace($place) {
147
+    public function getValidationMessageForImageAtPlace($place)
148
+    {
148 149
         
149 150
         $images = $this->getImageElements();
150 151
         
Please login to merge, or discard this patch.