Completed
Push — upgrade-boilerplate ( 903b21 )
by Kamil
17:46
created
src/Sylius/Bundle/PaymentBundle/Form/Type/CreditCardType.php 1 patch
Indentation   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -30,26 +30,26 @@
 block discarded – undo
30 30
             ->add('type', ChoiceType::class, [
31 31
                 'label' => 'sylius.form.credit_card.type',
32 32
                 'expanded' => true,
33
-              ])
34
-              ->add('cardholderName', TextType::class, [
33
+                ])
34
+                ->add('cardholderName', TextType::class, [
35 35
                 'label' => 'sylius.form.credit_card.cardholder_name',
36
-              ])
37
-              ->add('number', TextType::class, [
38
-                  'label' => 'sylius.form.credit_card.number',
39
-              ])
40
-              ->add('securityCode', TextType::class, [
41
-                  'label' => 'sylius.form.credit_card.security_code',
42
-              ])
43
-              ->add('expiryMonth', ChoiceType::class, [
44
-                  'choices' => $this->getMonthChoices(),
45
-                  'choice_translation_domain' => false,
46
-                  'label' => 'sylius.form.credit_card.expiry_month',
47
-              ])
48
-              ->add('expiryYear', ChoiceType::class, [
49
-                  'choices' => $this->getViableYears(),
50
-                  'choice_translation_domain' => false,
51
-                  'label' => 'sylius.form.credit_card.expiry_year',
52
-              ])
36
+                ])
37
+                ->add('number', TextType::class, [
38
+                    'label' => 'sylius.form.credit_card.number',
39
+                ])
40
+                ->add('securityCode', TextType::class, [
41
+                    'label' => 'sylius.form.credit_card.security_code',
42
+                ])
43
+                ->add('expiryMonth', ChoiceType::class, [
44
+                    'choices' => $this->getMonthChoices(),
45
+                    'choice_translation_domain' => false,
46
+                    'label' => 'sylius.form.credit_card.expiry_month',
47
+                ])
48
+                ->add('expiryYear', ChoiceType::class, [
49
+                    'choices' => $this->getViableYears(),
50
+                    'choice_translation_domain' => false,
51
+                    'label' => 'sylius.form.credit_card.expiry_year',
52
+                ])
53 53
         ;
54 54
     }
55 55
 
Please login to merge, or discard this patch.
ResourceBundle/test/src/AppBundle/DependencyInjection/AppExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public function load(array $config, ContainerBuilder $container)
30 30
     {
31
-        $loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
31
+        $loader = new XmlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
32 32
         $loader->load('services.xml');
33 33
         $loader->load('twig.xml');
34 34
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Cli/InstallerContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
     {
167 167
         $this->questionHelper = $this->command->getHelper('question');
168 168
         $inputString = implode(PHP_EOL, $this->inputChoices);
169
-        $this->questionHelper->setInputStream($this->getInputStream($inputString.PHP_EOL));
169
+        $this->questionHelper->setInputStream($this->getInputStream($inputString . PHP_EOL));
170 170
 
171 171
         $this->tester->execute(['command' => $name]);
172 172
     }
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
     private function iExecuteCommandAndConfirm($name)
178 178
     {
179 179
         $this->questionHelper = $this->command->getHelper('question');
180
-        $inputString = 'y'.PHP_EOL;
180
+        $inputString = 'y' . PHP_EOL;
181 181
         $this->questionHelper->setInputStream($this->getInputStream($inputString));
182 182
 
183 183
         $this->tester->execute(['command' => $name]);
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Order/UpdatePageInterface.php 1 patch
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@  discard block
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param OptionInterface $option
30
+     * @return void
30 31
      */
31 32
     public function setOption(OptionInterface $option = null);
32 33
 
@@ -41,6 +42,7 @@  discard block
 block discarded – undo
41 42
      * Set internal value.
42 43
      *
43 44
      * @param string $value
45
+     * @return void
44 46
      */
45 47
     public function setValue($value);
46 48
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/HomePageInterface.php 1 patch
Doc Comments   +5 added lines patch added patch discarded remove patch
@@ -25,15 +25,20 @@
 block discarded – undo
25 25
      */
26 26
     public function hasValidationErrorWith($message);
27 27
 
28
+    /**
29
+     * @return void
30
+     */
28 31
     public function logIn();
29 32
 
30 33
     /**
31 34
      * @param string $password
35
+     * @return void
32 36
      */
33 37
     public function specifyPassword($password);
34 38
 
35 39
     /**
36 40
      * @param string $userName
41
+     * @return void
37 42
      */
38 43
     public function specifyUserName($userName);
39 44
 }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Checkout/CheckoutResolver.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     /**
39 39
      * Get flash message.
40 40
      *
41
-     * @return null|string
41
+     * @return string
42 42
      */
43 43
     public function getMessage()
44 44
     {
Please login to merge, or discard this 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 SM\Factory\FactoryInterface;
15 15
 use Sylius\Component\Core\Model\OrderInterface;
16
-use Sylius\Component\Core\OrderCheckoutTransitions;
17 16
 use Sylius\Component\Order\Context\CartContextInterface;
18 17
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
19 18
 use Symfony\Component\HttpFoundation\RedirectResponse;
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -123,10 +123,10 @@
 block discarded – undo
123 123
     }
124 124
 
125 125
         /**
126
-     * @param Request $request
127
-     *
128
-     * @return string
129
-     */
126
+         * @param Request $request
127
+         *
128
+         * @return string
129
+         */
130 130
     private function getRequestedTransition(Request $request)
131 131
     {
132 132
         return $request->attributes->get('_sylius')['state_machine']['transition'];
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Security/UserImpersonatorInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -27,6 +27,7 @@
 block discarded – undo
27 27
 
28 28
     /**
29 29
      * @param string $value
30
+     * @return void
30 31
      */
31 32
     public function setValue($value);
32 33
 }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Ui/Admin/ManagingOrdersContext.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
         $itemsCount = $this->showPage->countItems();
243 243
 
244 244
         Assert::same(
245
-            (int)$amount,
245
+            (int) $amount,
246 246
             $itemsCount,
247 247
             sprintf('There should be %d items, but get %d.', $amount, $itemsCount)
248 248
         );
@@ -721,7 +721,7 @@  discard block
 block discarded – undo
721 721
     {
722 722
         $actualNumberOfPayments = $this->showPage->getPaymentsCount();
723 723
 
724
-        Assert::same((int)$number, $actualNumberOfPayments);
724
+        Assert::same((int) $number, $actualNumberOfPayments);
725 725
     }
726 726
 
727 727
     /**
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Admin/Order/UpdatePage.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,11 +45,11 @@  discard block
 block discarded – undo
45 45
      */
46 46
     private function specifyAddress(AddressInterface $address, $addressType)
47 47
     {
48
-        $this->specifyElementValue($addressType.'_first_name', $address->getFirstName());
49
-        $this->specifyElementValue($addressType.'_last_name', $address->getLastName());
50
-        $this->specifyElementValue($addressType.'_street', $address->getStreet());
51
-        $this->specifyElementValue($addressType.'_city', $address->getCity());
52
-        $this->specifyElementValue($addressType.'_postcode', $address->getPostcode());
48
+        $this->specifyElementValue($addressType . '_first_name', $address->getFirstName());
49
+        $this->specifyElementValue($addressType . '_last_name', $address->getLastName());
50
+        $this->specifyElementValue($addressType . '_street', $address->getStreet());
51
+        $this->specifyElementValue($addressType . '_city', $address->getCity());
52
+        $this->specifyElementValue($addressType . '_postcode', $address->getPostcode());
53 53
 
54 54
         $this->chooseCountry($address->getCountryCode(), $addressType);
55 55
     }
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
      */
115 115
     private function chooseCountry($country, $addressType)
116 116
     {
117
-        $this->getElement($addressType.'_country')->selectOption((null !== $country) ? $country : 'Select');
117
+        $this->getElement($addressType . '_country')->selectOption((null !== $country) ? $country : 'Select');
118 118
     }
119 119
 
120 120
     /**
Please login to merge, or discard this patch.