Completed
Push — patch-1 ( e14e62...182256 )
by Kamil
22:19
created
src/Sylius/Component/Product/Model/Product.php 2 patches
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -505,6 +505,7 @@
 block discarded – undo
505 505
 
506 506
     /**
507 507
      * {@inheritdoc}
508
+     * @param string $localeCode
508 509
      */
509 510
     private function getAttributeInDifferentLocale(ProductAttributeValueInterface $attributeValue, $localeCode)
510 511
     {
Please login to merge, or discard this patch.
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,11 +13,11 @@
 block discarded – undo
13 13
 
14 14
 use Doctrine\Common\Collections\ArrayCollection;
15 15
 use Doctrine\Common\Collections\Collection;
16
-use Webmozart\Assert\Assert;
17 16
 use Sylius\Component\Attribute\Model\AttributeValueInterface;
18 17
 use Sylius\Component\Resource\Model\TimestampableTrait;
19 18
 use Sylius\Component\Resource\Model\ToggleableTrait;
20 19
 use Sylius\Component\Resource\Model\TranslatableTrait;
20
+use Webmozart\Assert\Assert;
21 21
 
22 22
 /**
23 23
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
app/migrations/Version20170109143010.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
         $defaultLocale = $this->container->getParameter('locale');
36 36
 
37 37
         $this->addSql('ALTER TABLE sylius_product_attribute_value ADD locale_code VARCHAR(255) NOT NULL');
38
-        $this->addSql('UPDATE sylius_product_attribute_value SET locale_code = "'.$defaultLocale.'"');
38
+        $this->addSql('UPDATE sylius_product_attribute_value SET locale_code = "' . $defaultLocale . '"');
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
Form/DataTransformer/ProductVariantToProductOptionsTransformer.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@
 block discarded – undo
15 15
 use Sylius\Component\Product\Model\ProductOptionValueInterface;
16 16
 use Sylius\Component\Product\Model\ProductVariantInterface;
17 17
 use Symfony\Component\Form\DataTransformerInterface;
18
-use Symfony\Component\Form\Exception\UnexpectedTypeException;
19 18
 use Symfony\Component\Form\Exception\TransformationFailedException;
19
+use Symfony\Component\Form\Exception\UnexpectedTypeException;
20 20
 
21 21
 /**
22 22
  * @author Paweł Jędrzejewski <[email protected]>
Please login to merge, or discard this patch.
src/Sylius/Component/Grid/Definition/Grid.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -225,7 +225,7 @@
 block discarded – undo
225 225
     }
226 226
 
227 227
     /**
228
-     * @return array
228
+     * @return Filter[]
229 229
      */
230 230
     public function getFilters()
231 231
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Mailer/Event/EmailSendEvent.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     protected $data;
41 41
 
42 42
     /**
43
-     * @param mixed $message
43
+     * @param \Swift_Message $message
44 44
      * @param array $recipients
45 45
      * @param EmailInterface $email
46 46
      * @param array $data
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     }
55 55
 
56 56
     /**
57
-     * @return array
57
+     * @return string[]
58 58
      */
59 59
     public function getRecipients()
60 60
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Payment/Model/PaymentInterface.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -38,6 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     /**
40 40
      * @param null|PaymentMethodInterface $method
41
+     * @return void
41 42
      */
42 43
     public function setMethod(PaymentMethodInterface $method = null);
43 44
 
@@ -48,6 +49,7 @@  discard block
 block discarded – undo
48 49
 
49 50
     /**
50 51
      * @param string $state
52
+     * @return void
51 53
      */
52 54
     public function setState($state);
53 55
 
@@ -58,6 +60,8 @@  discard block
 block discarded – undo
58 60
 
59 61
     /**
60 62
      * @param string
63
+     * @param string $currencyCode
64
+     * @return void
61 65
      */
62 66
     public function setCurrencyCode($currencyCode);
63 67
 
@@ -68,6 +72,7 @@  discard block
 block discarded – undo
68 72
 
69 73
     /**
70 74
      * @param int $amount
75
+     * @return void
71 76
      */
72 77
     public function setAmount($amount);
73 78
 
@@ -78,6 +83,7 @@  discard block
 block discarded – undo
78 83
 
79 84
     /**
80 85
      * @param array|\Traversable $details
86
+     * @return void
81 87
      */
82 88
     public function setDetails($details);
83 89
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/ProductAttributeContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
     public function thisProductHasPercentAttributeWithValue(ProductInterface $product, $productAttributeName, $value)
129 129
     {
130 130
         $attribute = $this->provideProductAttribute('percent', $productAttributeName);
131
-        $attributeValue = $this->createProductAttributeValue($value/100, $attribute);
131
+        $attributeValue = $this->createProductAttributeValue($value / 100, $attribute);
132 132
         $product->addAttribute($attributeValue);
133 133
 
134 134
         $this->objectManager->flush();
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
     {
155 155
         $attribute = $this->provideProductAttribute('percent', $productAttributeName);
156 156
         $attribute->setPosition($position);
157
-        $attributeValue = $this->createProductAttributeValue(rand(1, 100)/100, $attribute);
157
+        $attributeValue = $this->createProductAttributeValue(rand(1, 100) / 100, $attribute);
158 158
 
159 159
         $product->addAttribute($attributeValue);
160 160
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Product/ShowPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -289,7 +289,7 @@
 block discarded – undo
289 289
                 $isOpen = false;
290 290
                 sleep(1);
291 291
             }
292
-        } while(!$isOpen && microtime(true) < $end);
292
+        } while (!$isOpen && microtime(true) < $end);
293 293
 
294 294
         if (!$isOpen) {
295 295
             throw new UnexpectedPageException();
Please login to merge, or discard this patch.
tests/Controller/ChannelApiTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
         $this->loadFixturesFromFile('authentication/api_administrator.yml');
47 47
         $channelData = $this->loadFixturesFromFile('resources/channels.yml');
48 48
 
49
-        $this->client->request('GET', '/api/v1/channels/'.$channelData['channel_web']->getId(), [], [], static::$authorizedHeaderWithContentType);
49
+        $this->client->request('GET', '/api/v1/channels/' . $channelData['channel_web']->getId(), [], [], static::$authorizedHeaderWithContentType);
50 50
 
51 51
         $response = $this->client->getResponse();
52 52
         $this->assertResponse($response, 'channel/show_response', Response::HTTP_OK);
Please login to merge, or discard this patch.