Completed
Push — fixtures/delete-old-ones ( 589298...6437b8 )
by Kamil
71:11 queued 37:23
created
Bundle/UserBundle/spec/Authentication/AuthenticationFailureHandlerSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,6 @@
 block discarded – undo
14 14
 use PhpSpec\ObjectBehavior;
15 15
 use Sylius\Bundle\UserBundle\Authentication\AuthenticationFailureHandler;
16 16
 use Symfony\Component\HttpFoundation\JsonResponse;
17
-use Symfony\Component\HttpFoundation\RedirectResponse;
18 17
 use Symfony\Component\HttpFoundation\Request;
19 18
 use Symfony\Component\HttpKernel\HttpKernelInterface;
20 19
 use Symfony\Component\Security\Core\Exception\AuthenticationException;
Please login to merge, or discard this patch.
src/Sylius/Bundle/UserBundle/spec/Doctrine/ORM/UserRepositorySpec.php 1 patch
Unused Use Statements   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,9 +15,8 @@
 block discarded – undo
15 15
 use Doctrine\ORM\EntityManager;
16 16
 use Doctrine\ORM\Mapping\ClassMetadata;
17 17
 use Doctrine\ORM\Query;
18
-use Doctrine\ORM\Query\Expr;
19
-use Doctrine\ORM\Query\FilterCollection;
20 18
 use Doctrine\ORM\QueryBuilder;
19
+use Doctrine\ORM\Query\Expr;
21 20
 use Pagerfanta\Pagerfanta;
22 21
 use PhpSpec\ObjectBehavior;
23 22
 use Prophecy\Argument;
Please login to merge, or discard this patch.
src/Sylius/Bundle/VariationBundle/spec/Form/Type/VariantTypeSpec.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,6 @@
 block discarded – undo
13 13
 
14 14
 use PhpSpec\ObjectBehavior;
15 15
 use Symfony\Component\Form\FormTypeInterface;
16
-use Symfony\Component\OptionsResolver\OptionsResolver;
17 16
 
18 17
 /**
19 18
  * @author Paweł Jędrzejewski <[email protected]>
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.