Completed
Push — symfony3 ( 9e4aea...666329 )
by Kamil
18:10
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/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/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.
CoreBundle/spec/Form/EventSubscriber/UserRegistrationFormSubscriberSpec.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
     function it_throws_unexpected_type_excepotion_if_data_is_not_customer_type(
46 46
         FormEvent $event,
47 47
         ShopUserInterface $user
48
-    ){
48
+    ) {
49 49
         $event->getData()->willReturn($user);
50 50
 
51 51
         $this->shouldThrow(UnexpectedTypeException::class)->during('submit', [$event]);
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Type/Order/OrderType.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,8 @@
 block discarded – undo
50 50
         $resolver->setDefault('validation_groups', function (FormInterface $form) {
51 51
             $validationGroups = $this->validationGroups;
52 52
 
53
-            if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent
53
+            if ((bool) $form->get('promotionCoupon')->getNormData()) {
54
+// Validate the coupon if it was sent
54 55
                 $validationGroups[] = 'sylius_promotion_coupon';
55 56
             }
56 57
 
Please login to merge, or discard this patch.