Completed
Push — fixtures/parameter-fix ( 1f3fd9...164a01 )
by Kamil
32:45
created
src/Sylius/Bundle/UserBundle/DependencyInjection/Configuration.php 1 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 Sylius\Bundle\ResourceBundle\Controller\ResourceController;
15 15
 use Sylius\Bundle\ResourceBundle\Form\Type\ResourceChoiceType;
16
+use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType;
16 17
 use Sylius\Bundle\ResourceBundle\SyliusResourceBundle;
17 18
 use Sylius\Bundle\UserBundle\Controller\CustomerController;
18 19
 use Sylius\Bundle\UserBundle\Controller\UserController;
19 20
 use Sylius\Bundle\UserBundle\Form\Type\CustomerGuestType;
20
-use Sylius\Bundle\ResourceBundle\Form\Type\ResourceFromIdentifierType;
21 21
 use Sylius\Bundle\UserBundle\Form\Type\CustomerProfileType;
22 22
 use Sylius\Bundle\UserBundle\Form\Type\CustomerRegistrationType;
23 23
 use Sylius\Bundle\UserBundle\Form\Type\CustomerSimpleRegistrationType;
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/Form/Model/ChangePassword.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
     /**
29 29
      * Gets the value of currentPassword.
30 30
      *
31
-     * @return mixed
31
+     * @return string
32 32
      */
33 33
     public function getCurrentPassword()
34 34
     {
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     /**
53 53
      * Gets the value of newPassword.
54 54
      *
55
-     * @return mixed
55
+     * @return string
56 56
      */
57 57
     public function getNewPassword()
58 58
     {
Please login to merge, or discard this patch.
src/Sylius/Bundle/WebBundle/Behat/WebContext.php 2 patches
Doc Comments   +9 added lines patch added patch discarded remove patch
@@ -287,6 +287,8 @@  discard block
 block discarded – undo
287 287
 
288 288
     /**
289 289
      * @Given /^I fill in the (billing|shipping) address to (.+)$/
290
+     * @param string $type
291
+     * @param string $country
290 292
      */
291 293
     public function iFillInCheckoutAddress($type, $country)
292 294
     {
@@ -312,6 +314,9 @@  discard block
 block discarded – undo
312 314
         $this->iFillInAddressFields('sylius_address', $country);
313 315
     }
314 316
 
317
+    /**
318
+     * @param string $base
319
+     */
315 320
     protected function iFillInAddressFields($base, $country)
316 321
     {
317 322
         $this->fillField($base.'[firstName]', 'John');
@@ -324,6 +329,7 @@  discard block
 block discarded – undo
324 329
 
325 330
     /**
326 331
      * @Given /^I select the "(?P<field>([^""]|\\")*)" radio button$/
332
+     * @param string $field
327 333
      */
328 334
     public function iSelectTheRadioButton($field)
329 335
     {
@@ -740,6 +746,9 @@  discard block
 block discarded – undo
740 746
         $this->assertSession()->elementContains('css', '#enabled', 'yes');
741 747
     }
742 748
 
749
+    /**
750
+     * @param string $route
751
+     */
743 752
     private function assertRoute($route)
744 753
     {
745 754
         $this->assertSession()->addressEquals($this->generatePageUrl($route));
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -314,12 +314,12 @@  discard block
 block discarded – undo
314 314
 
315 315
     protected function iFillInAddressFields($base, $country)
316 316
     {
317
-        $this->fillField($base.'[firstName]', 'John');
318
-        $this->fillField($base.'[lastName]', 'Doe');
319
-        $this->fillField($base.'[street]', 'Pvt. Street 15');
320
-        $this->fillField($base.'[city]', 'Lodz');
321
-        $this->fillField($base.'[postcode]', '95-253');
322
-        $this->selectOption($base.'[countryCode]', $country);
317
+        $this->fillField($base . '[firstName]', 'John');
318
+        $this->fillField($base . '[lastName]', 'Doe');
319
+        $this->fillField($base . '[street]', 'Pvt. Street 15');
320
+        $this->fillField($base . '[city]', 'Lodz');
321
+        $this->fillField($base . '[postcode]', '95-253');
322
+        $this->selectOption($base . '[countryCode]', $country);
323 323
     }
324 324
 
325 325
     /**
@@ -360,7 +360,7 @@  discard block
 block discarded – undo
360 360
      */
361 361
     public function iShouldNotSeeButton($button)
362 362
     {
363
-        $this->assertSession()->elementNotExists('css', '.delete-action-form input[value="'.strtoupper($button).'"]');
363
+        $this->assertSession()->elementNotExists('css', '.delete-action-form input[value="' . strtoupper($button) . '"]');
364 364
     }
365 365
 
366 366
     /**
@@ -368,8 +368,8 @@  discard block
 block discarded – undo
368 368
      */
369 369
     public function iShouldNotSeeButtonInColumnInTable($button, $customer, $table)
370 370
     {
371
-        $this->assertSession()->elementExists('css', '#'.$table." tr[data-customer='$customer']");
372
-        $this->assertSession()->elementNotExists('css', '#'.$table." tr[data-customer='$customer'] form input[value=".strtoupper($button).']');
371
+        $this->assertSession()->elementExists('css', '#' . $table . " tr[data-customer='$customer']");
372
+        $this->assertSession()->elementNotExists('css', '#' . $table . " tr[data-customer='$customer'] form input[value=" . strtoupper($button) . ']');
373 373
     }
374 374
 
375 375
     /**
@@ -475,7 +475,7 @@  discard block
 block discarded – undo
475 475
     {
476 476
         $order = $this->findOneBy('order', ['number' => $number]);
477 477
 
478
-        $this->getSession()->visit($this->generatePageUrl('sylius_account_order_'.$action, ['number' => $order->getNumber()]));
478
+        $this->getSession()->visit($this->generatePageUrl('sylius_account_order_' . $action, ['number' => $order->getNumber()]));
479 479
     }
480 480
 
481 481
     /**
@@ -484,7 +484,7 @@  discard block
 block discarded – undo
484 484
      */
485 485
     public function iShouldBeOnTheOrderPage($action, $number)
486 486
     {
487
-        $this->assertSession()->addressEquals($this->generatePageUrl('sylius_account_order_'.$action, ['number' => $number]));
487
+        $this->assertSession()->addressEquals($this->generatePageUrl('sylius_account_order_' . $action, ['number' => $number]));
488 488
     }
489 489
 
490 490
     /**
@@ -758,7 +758,7 @@  discard block
 block discarded – undo
758 758
      */
759 759
     protected function getFormCollectionDiv(DocumentElement $page, $collectionName)
760 760
     {
761
-        return $page->find('css', 'div[data-form-type="collection"][id*="'.$collectionName.'"]');
761
+        return $page->find('css', 'div[data-form-type="collection"][id*="' . $collectionName . '"]');
762 762
     }
763 763
 
764 764
     /**
Please login to merge, or discard this patch.
Sylius/Bundle/WebBundle/Controller/Frontend/Account/AddressController.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -166,6 +166,10 @@
 block discarded – undo
166 166
         return $this->redirectToIndex();
167 167
     }
168 168
 
169
+    /**
170
+     * @param string $type
171
+     * @param string $message
172
+     */
169 173
     protected function addFlash($type, $message)
170 174
     {
171 175
         $translator = $this->get('translator');
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/Zone.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -126,7 +126,7 @@
 block discarded – undo
126 126
     /**
127 127
      * Returns all zone types available.
128 128
      *
129
-     * @return array of self::TYPE_*
129
+     * @return string[] of self::TYPE_*
130 130
      */
131 131
     public static function getTypes()
132 132
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Addressing/Model/ZoneInterface.php 1 patch
Doc Comments   +7 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,6 +32,7 @@  discard block
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * @param string $name
35
+     * @return void
35 36
      */
36 37
     public function setName($name);
37 38
 
@@ -42,6 +43,7 @@  discard block
 block discarded – undo
42 43
 
43 44
     /**
44 45
      * @param string $type
46
+     * @return void
45 47
      */
46 48
     public function setType($type);
47 49
 
@@ -52,6 +54,7 @@  discard block
 block discarded – undo
52 54
 
53 55
     /**
54 56
      * @param string $scope
57
+     * @return void
55 58
      */
56 59
     public function setScope($scope);
57 60
 
@@ -61,7 +64,8 @@  discard block
 block discarded – undo
61 64
     public function getMembers();
62 65
 
63 66
     /**
64
-     * @param Collection|ZoneMemberInterface[] $members
67
+     * @param Collection $members
68
+     * @return void
65 69
      */
66 70
     public function setMembers(Collection $members);
67 71
 
@@ -72,11 +76,13 @@  discard block
 block discarded – undo
72 76
 
73 77
     /**
74 78
      * @param ZoneMemberInterface $member
79
+     * @return void
75 80
      */
76 81
     public function addMember(ZoneMemberInterface $member);
77 82
 
78 83
     /**
79 84
      * @param ZoneMemberInterface $member
85
+     * @return void
80 86
      */
81 87
     public function removeMember(ZoneMemberInterface $member);
82 88
 
Please login to merge, or discard this patch.
src/Sylius/Component/Archetype/Model/ArchetypeInterface.php 1 patch
Doc Comments   +9 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,12 +42,14 @@  discard block
 block discarded – undo
42 42
     /**
43 43
      * Sets all prototype attributes.
44 44
      *
45
-     * @param Collection|AttributeInterface[] $attributes
45
+     * @param Collection $attributes
46
+     * @return void
46 47
      */
47 48
     public function setAttributes(Collection $attributes);
48 49
 
49 50
     /**
50 51
      * @param AttributeInterface $attribute
52
+     * @return void
51 53
      */
52 54
     public function addAttribute(AttributeInterface $attribute);
53 55
 
@@ -55,6 +57,7 @@  discard block
 block discarded – undo
55 57
      * Removes attribute from prototype.
56 58
      *
57 59
      * @param AttributeInterface $attribute
60
+     * @return void
58 61
      */
59 62
     public function removeAttribute(AttributeInterface $attribute);
60 63
 
@@ -77,12 +80,14 @@  discard block
 block discarded – undo
77 80
     /**
78 81
      * Sets all prototype options.
79 82
      *
80
-     * @param Collection|OptionInterface[] $options
83
+     * @param Collection $options
84
+     * @return void
81 85
      */
82 86
     public function setOptions(Collection $options);
83 87
 
84 88
     /**
85 89
      * @param OptionInterface $option
90
+     * @return void
86 91
      */
87 92
     public function addOption(OptionInterface $option);
88 93
 
@@ -90,6 +95,7 @@  discard block
 block discarded – undo
90 95
      * Removes option from prototype.
91 96
      *
92 97
      * @param OptionInterface $option
98
+     * @return void
93 99
      */
94 100
     public function removeOption(OptionInterface $option);
95 101
 
@@ -109,6 +115,7 @@  discard block
 block discarded – undo
109 115
 
110 116
     /**
111 117
      * @param null|ArchetypeInterface $parent
118
+     * @return void
112 119
      */
113 120
     public function setParent(ArchetypeInterface $parent = null);
114 121
 
Please login to merge, or discard this patch.
src/Sylius/Component/Association/Model/AssociationType.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,6 @@
 block discarded – undo
37 37
     protected $name;
38 38
 
39 39
     /**
40
-     * @param string $name
41 40
      */
42 41
     public function __construct()
43 42
     {
Please login to merge, or discard this patch.
src/Sylius/Component/Core/Model/ChannelInterface.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,6 @@
 block discarded – undo
11 11
 
12 12
 namespace Sylius\Component\Core\Model;
13 13
 
14
-use Sylius\Bundle\ThemeBundle\Model\ThemeInterface;
15 14
 use Sylius\Component\Channel\Model\ChannelInterface as BaseChannelInterface;
16 15
 use Sylius\Component\Currency\Model\CurrenciesAwareInterface;
17 16
 use Sylius\Component\Currency\Model\CurrencyInterface;
Please login to merge, or discard this patch.
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -39,6 +39,7 @@  discard block
 block discarded – undo
39 39
      * Sets all option values.
40 40
      *
41 41
      * @param Collection $optionValues
42
+     * @return void
42 43
      */
43 44
     public function setValues(Collection $optionValues);
44 45
 
@@ -46,6 +47,7 @@  discard block
 block discarded – undo
46 47
      * Adds option value.
47 48
      *
48 49
      * @param OptionValueInterface $optionValue
50
+     * @return void
49 51
      */
50 52
     public function addValue(OptionValueInterface $optionValue);
51 53
 
@@ -53,6 +55,7 @@  discard block
 block discarded – undo
53 55
      * Removes option value.
54 56
      *
55 57
      * @param OptionValueInterface $optionValue
58
+     * @return void
56 59
      */
57 60
     public function removeValue(OptionValueInterface $optionValue);
58 61
 
Please login to merge, or discard this patch.