Completed
Push — travis-trusty ( dc96d8...990048 )
by Kamil
18:15
created
src/Sylius/Component/Attribute/AttributeType/PercentAttributeType.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 namespace Sylius\Component\Attribute\AttributeType;
13 13
 
14 14
 use Sylius\Component\Attribute\Model\AttributeValueInterface;
15
-use Symfony\Component\Validator\Constraints\NotBlank;
16 15
 use Symfony\Component\Validator\ConstraintViolationListInterface;
16
+use Symfony\Component\Validator\Constraints\NotBlank;
17 17
 use Symfony\Component\Validator\Context\ExecutionContextInterface;
18 18
 
19 19
 /**
Please login to merge, or discard this patch.
src/Sylius/Component/Attribute/AttributeType/TextareaAttributeType.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,8 +12,8 @@
 block discarded – undo
12 12
 namespace Sylius\Component\Attribute\AttributeType;
13 13
 
14 14
 use Sylius\Component\Attribute\Model\AttributeValueInterface;
15
-use Symfony\Component\Validator\Constraints\NotBlank;
16 15
 use Symfony\Component\Validator\ConstraintViolationListInterface;
16
+use Symfony\Component\Validator\Constraints\NotBlank;
17 17
 use Symfony\Component\Validator\Context\ExecutionContextInterface;
18 18
 
19 19
 /**
Please login to merge, or discard this patch.
src/Sylius/Bundle/PayumBundle/spec/Action/CapturePaymentActionSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 use Payum\Core\GatewayInterface;
8 8
 use Payum\Core\Request\Capture;
9 9
 use PhpSpec\ObjectBehavior;
10
-use Prophecy\Argument;
11 10
 use Sylius\Bundle\PayumBundle\Action\CapturePaymentAction;
12 11
 use Sylius\Bundle\PayumBundle\Provider\PaymentDescriptionProviderInterface;
13 12
 use Sylius\Component\Core\Model\OrderInterface;
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ProductImagesAwareInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -44,11 +44,13 @@
 block discarded – undo
44 44
 
45 45
     /**
46 46
      * @param ImageInterface $image
47
+     * @return void
47 48
      */
48 49
     public function addImage(ProductImageInterface $image);
49 50
 
50 51
     /**
51 52
      * @param ImageInterface $image
53
+     * @return void
52 54
      */
53 55
     public function removeImage(ProductImageInterface $image);
54 56
 }
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Filter/DateFilter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
 
35 35
         $from = isset($data['from']) ? $this->getDateTime($data['from']) : null;
36 36
         if (null !== $from) {
37
-            $inclusive = (bool)$this->getOption($options, 'inclusive_from', self::DEFAULT_INCLUSIVE_FROM);
37
+            $inclusive = (bool) $this->getOption($options, 'inclusive_from', self::DEFAULT_INCLUSIVE_FROM);
38 38
             if (true === $inclusive) {
39 39
                 $expressionBuilder->greaterThanOrEqual($field, $from);
40 40
             } else {
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
 
45 45
         $to = isset($data['to']) ? $this->getDateTime($data['to']) : null;
46 46
         if (null !== $to) {
47
-            $inclusive = (bool)$this->getOption($options, 'inclusive_to', self::DEFAULT_INCLUSIVE_TO);
47
+            $inclusive = (bool) $this->getOption($options, 'inclusive_to', self::DEFAULT_INCLUSIVE_TO);
48 48
             if (true === $inclusive) {
49 49
                 $expressionBuilder->lessThanOrEqual($field, $to);
50 50
             } else {
@@ -81,6 +81,6 @@  discard block
 block discarded – undo
81 81
             return $data['date'];
82 82
         }
83 83
 
84
-        return $data['date'].' '.$data['time'];
84
+        return $data['date'] . ' ' . $data['time'];
85 85
     }
86 86
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutStateUrlGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
             throw new RouteNotFoundException();
71 71
         }
72 72
 
73
-        return $this->router->generate($this->routeCollection['empty_order']['route'], $parameters, $referenceType);    }
73
+        return $this->router->generate($this->routeCollection['empty_order']['route'], $parameters, $referenceType); }
74 74
 
75 75
     /**
76 76
      * {@inheritdoc}
Please login to merge, or discard this patch.
tests/Controller/CheckoutApiTestCase.php 1 patch
Upper-Lower-Casing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             "channel": "CHANNEL",
48 48
             "localeCode": "en_US"
49 49
         }
50
-EOT;
50
+eot;
51 51
 
52 52
         $this->client->request('POST', '/api/v1/carts/', [], [], static::$authorizedHeaderWithContentType, $data);
53 53
 
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
             "variant": "MUG_SW",
72 72
             "quantity": 1
73 73
         }
74
-EOT;
74
+eot;
75 75
 
76 76
         $this->client->request('POST', $url, [], [], static::$authorizedHeaderWithContentType, $data);
77 77
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_CREATED);
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
             },
106 106
             "differentBillingAddress": true
107 107
         }
108
-EOT;
108
+eot;
109 109
 
110 110
         $url = sprintf('/api/v1/checkouts/addressing/%d', $cartId);
111 111
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
                 }
134 134
             ]
135 135
         }
136
-EOT;
136
+eot;
137 137
 
138 138
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
139 139
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT);
@@ -160,7 +160,7 @@  discard block
 block discarded – undo
160 160
                 }
161 161
             ]
162 162
         }
163
-EOT;
163
+eot;
164 164
 
165 165
         $this->client->request('PUT', $url, [], [], static::$authorizedHeaderWithContentType, $data);
166 166
         $this->assertResponseCode($this->client->getResponse(), Response::HTTP_NO_CONTENT);
Please login to merge, or discard this patch.
DependencyInjection/Compiler/RegisterPromotionActionsPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $promotionActionTypeToLabelMap = [];
36 36
         foreach ($container->findTaggedServiceIds('sylius.promotion_action') as $id => $attributes) {
37 37
             if (!isset($attributes[0]['type'], $attributes[0]['label'], $attributes[0]['form_type'])) {
38
-                throw new \InvalidArgumentException('Tagged promotion action `'.$id.'` needs to have `type`, `form_type` and `label` attributes.');
38
+                throw new \InvalidArgumentException('Tagged promotion action `' . $id . '` needs to have `type`, `form_type` and `label` attributes.');
39 39
             }
40 40
 
41 41
             $promotionActionTypeToLabelMap[$attributes[0]['type']] = $attributes[0]['label'];
Please login to merge, or discard this patch.
PromotionBundle/DependencyInjection/Compiler/RegisterRuleCheckersPass.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $promotionRuleCheckerTypeToLabelMap = [];
36 36
         foreach ($container->findTaggedServiceIds('sylius.promotion_rule_checker') as $id => $attributes) {
37 37
             if (!isset($attributes[0]['type'], $attributes[0]['label'], $attributes[0]['form_type'])) {
38
-                throw new \InvalidArgumentException('Tagged rule checker `'.$id.'` needs to have `type`, `form_type` and `label` attributes.');
38
+                throw new \InvalidArgumentException('Tagged rule checker `' . $id . '` needs to have `type`, `form_type` and `label` attributes.');
39 39
             }
40 40
 
41 41
             $promotionRuleCheckerTypeToLabelMap[$attributes[0]['type']] = $attributes[0]['label'];
Please login to merge, or discard this patch.