Completed
Branch master (429264)
by Kamil
37:02
created
src/Sylius/Behat/Context/Ui/Shop/CurrentChannelContext.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
     /**
29 29
      * @param ChannelContextSetterInterface $channelContextSetter
30 30
      */
31
-    public function __construct(ChannelContextSetterInterface $channelContextSetter) 
31
+    public function __construct(ChannelContextSetterInterface $channelContextSetter)
32 32
     {
33 33
         $this->channelContextSetter = $channelContextSetter;
34 34
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/ShippingMethod/CreatePage.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * {@inheritdoc}
54 54
      */
55 55
     public function chooseZone($name)
56
-    {        
56
+    {
57 57
         $this->getDocument()->selectFieldOption('Zone', $name);
58 58
     }
59 59
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * {@inheritdoc}
62 62
      */
63 63
     public function chooseCalculator($name)
64
-    {        
64
+    {
65 65
         $this->getDocument()->selectFieldOption('Calculator', $name);
66 66
     }
67 67
 
Please login to merge, or discard this patch.
Sylius/Bundle/GridBundle/spec/Doctrine/PHPCRODM/ExpressionBuilderSpec.php 1 patch
Braces   +10 added lines, -20 removed lines patch added patch discarded remove patch
@@ -33,8 +33,7 @@  discard block
 block discarded – undo
33 33
     function it_builds_andx(
34 34
         Comparison $comparison,
35 35
         CollectionsExpressionBuilder $expressionBuilder
36
-    )
37
-    {
36
+    ) {
38 37
         $this->andX([$comparison]);
39 38
         $expressionBuilder->andX([$comparison])->shouldHaveBeenCalled();
40 39
     }
@@ -42,64 +41,56 @@  discard block
 block discarded – undo
42 41
     function it_builds_orx(
43 42
         Comparison $comparison,
44 43
         CollectionsExpressionBuilder $expressionBuilder
45
-    )
46
-    {
44
+    ) {
47 45
         $this->orX([$comparison]);
48 46
         $expressionBuilder->orX([$comparison])->shouldHaveBeenCalled();
49 47
     }
50 48
 
51 49
     function it_builds_equals(
52 50
         CollectionsExpressionBuilder $expressionBuilder
53
-    )
54
-    {
51
+    ) {
55 52
         $this->equals('o.foo', 'value');
56 53
         $expressionBuilder->eq('o.foo', 'value')->shouldHaveBeenCalled();
57 54
     }
58 55
 
59 56
     function it_builds_not_equals(
60 57
         CollectionsExpressionBuilder $expressionBuilder
61
-    )
62
-    {
58
+    ) {
63 59
         $this->notEquals('o.foo', 'value');
64 60
         $expressionBuilder->neq('o.foo', 'value')->shouldHaveBeenCalled();
65 61
     }
66 62
 
67 63
     function it_builds_less_than_or_equal(
68 64
         CollectionsExpressionBuilder $expressionBuilder
69
-    )
70
-    {
65
+    ) {
71 66
         $this->lessThanOrEqual('o.foo', 'value');
72 67
         $expressionBuilder->lte('o.foo', 'value')->shouldHaveBeenCalled();
73 68
     }
74 69
 
75 70
     function it_builds_greater_than(
76 71
         CollectionsExpressionBuilder $expressionBuilder
77
-    )
78
-    {
72
+    ) {
79 73
         $this->greaterThan('o.foo', 'value');
80 74
         $expressionBuilder->gt('o.foo', 'value')->shouldHaveBeenCalled();
81 75
     }
82 76
 
83 77
     function it_builds_greater_than_or_equal(
84 78
         CollectionsExpressionBuilder $expressionBuilder
85
-    )
86
-    {
79
+    ) {
87 80
         $this->greaterThanOrequal('o.foo', 'value');
88 81
         $expressionBuilder->gte('o.foo', 'value')->shouldHaveBeenCalled();
89 82
     }
90 83
 
91 84
     function it_builds_in(
92 85
         CollectionsExpressionBuilder $expressionBuilder
93
-    )
94
-    {
86
+    ) {
95 87
         $this->in('o.foo', ['value']);
96 88
         $expressionBuilder->in('o.foo', ['value'])->shouldHaveBeenCalled();
97 89
     }
98 90
 
99 91
     function it_builds_not_in(
100 92
         CollectionsExpressionBuilder $expressionBuilder
101
-    )
102
-    {
93
+    ) {
103 94
         $this->notIn('o.foo', ['value']);
104 95
         $expressionBuilder->notIn('o.foo', ['value'])->shouldHaveBeenCalled();
105 96
     }
@@ -120,8 +111,7 @@  discard block
 block discarded – undo
120 111
 
121 112
     function it_builds_like(
122 113
         CollectionsExpressionBuilder $expressionBuilder
123
-    )
124
-    {
114
+    ) {
125 115
         $this->like('o.foo', 'value');
126 116
         $expressionBuilder->contains('o.foo', 'value')->shouldHaveBeenCalled();
127 117
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/spec/Doctrine/PHPCRODM/DataSourceSpec.php 1 patch
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -54,8 +54,7 @@  discard block
 block discarded – undo
54 54
         QueryBuilder $queryBuilder,
55 55
         ConstraintOrx $constraint,
56 56
         ConstraintComparison $comparisonConstraint
57
-    )
58
-    {
57
+    ) {
59 58
         $queryBuilder->orWhere()->willReturn($constraint);
60 59
         $value->getValue()->willReturn('value');
61 60
         $comparison->getValue()->willReturn($value);
@@ -72,8 +71,7 @@  discard block
 block discarded – undo
72 71
 
73 72
     function it_should_throw_an_exception_if_an_unknown_condition_is_passed(
74 73
         Comparison $comparison
75
-    )
76
-    {
74
+    ) {
77 75
         $this->shouldThrow(
78 76
             new \RuntimeException('Unknown restrict condition "foo"')
79 77
         )->during('restrict', [ $comparison, 'foo' ]);
@@ -81,16 +79,14 @@  discard block
 block discarded – undo
81 79
 
82 80
     function it_should_return_the_expression_builder(
83 81
         ExpressionBuilder $expressionBuilder
84
-    )
85
-    {
82
+    ) {
86 83
         $this->getExpressionBuilder()->shouldReturn($expressionBuilder);
87 84
     }
88 85
 
89 86
     function it_should_get_the_data(
90 87
         ExpressionBuilder $expressionBuilder,
91 88
         Parameters $parameters
92
-    )
93
-    {
89
+    ) {
94 90
         $expressionBuilder->getOrderBys()->willReturn([]);
95 91
         $parameters->get('page', 1)->willReturn(1);
96 92
         $this->getData($parameters)->shouldHaveType(Pagerfanta::class);
@@ -102,8 +98,7 @@  discard block
 block discarded – undo
102 98
         Parameters $parameters,
103 99
         OrderBy $orderBy,
104 100
         Ordering $ordering
105
-    )
106
-    {
101
+    ) {
107 102
         $expressionBuilder->getOrderBys()->willReturn([
108 103
             'foo' => 'asc',
109 104
             'bar' => 'desc'
@@ -124,8 +119,7 @@  discard block
 block discarded – undo
124 119
         Parameters $parameters,
125 120
         OrderBy $orderBy,
126 121
         Ordering $ordering
127
-    )
128
-    {
122
+    ) {
129 123
         $expressionBuilder->getOrderBys()->willReturn([
130 124
             'foo',
131 125
             'bar',
Please login to merge, or discard this patch.
src/Sylius/Bundle/GridBundle/DependencyInjection/Configuration.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
                 ->arrayNode('drivers')
57 57
                     ->info('Enable drivers which are distributed with this bundle')
58 58
                     ->validate()
59
-                    ->ifTrue(function ($value) use ($validDrivers) { 
59
+                    ->ifTrue(function ($value) use ($validDrivers) {
60 60
                         return 0 !== count(array_diff($value, $validDrivers)); 
61 61
                     })
62 62
                         ->thenInvalid(sprintf('Invalid driver specified in %%s, valid drivers: ["%s"]', implode('", "', $validDrivers)))
Please login to merge, or discard this patch.
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/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_field');
33 33
 
34 34
         foreach ($container->findTaggedServiceIds('sylius.grid_field') as $id => $attributes) {
35
-            if (!isset($attributes[0]['type']))  {
35
+            if (!isset($attributes[0]['type'])) {
36 36
                 throw new \InvalidArgumentException('Tagged grid fields needs to have `type` 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.