Completed
Push — snake-case-tests ( 55729f )
by Kamil
87:29 queued 51:35
created
src/Sylius/Bundle/OrderBundle/spec/Context/SessionBasedCartContextSpec.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
         SessionInterface $session,
46 46
         OrderRepositoryInterface $orderRepository,
47 47
         OrderInterface $cart
48
-    )  {
48
+    ) {
49 49
         $session->has('session_key_name')->willReturn(true);
50 50
         $session->get('session_key_name')->willReturn(12345);
51 51
         $orderRepository->findCartById(12345)->willReturn($cart);
Please login to merge, or discard this patch.
ProductBundle/spec/Validator/UniqueSimpleProductCodeValidatorSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,8 @@
 block discarded – undo
24 24
 
25 25
 final class UniqueSimpleProductCodeValidatorSpec extends ObjectBehavior
26 26
 {
27
-    function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository) {
27
+    function let(ExecutionContextInterface $context, ProductVariantRepositoryInterface $productVariantRepository)
28
+    {
28 29
         $this->beConstructedWith($productVariantRepository);
29 30
         $this->initialize($context);
30 31
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Form/Extension/CartTypeExtension.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,8 @@
 block discarded – undo
47 47
     {
48 48
         $resolver->setNormalizer('validation_groups', function (Options $options, array $validationGroups) {
49 49
             return function (FormInterface $form) use ($validationGroups) {
50
-                if ((bool) $form->get('promotionCoupon')->getNormData()) { // Validate the coupon if it was sent
50
+                if ((bool) $form->get('promotionCoupon')->getNormData()) {
51
+// Validate the coupon if it was sent
51 52
                     $validationGroups[] = 'sylius_promotion_coupon';
52 53
                 }
53 54
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/FixturesBundle/spec/Suite/SuiteFactorySpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,8 @@
 block discarded – undo
222 222
      *
223 223
      * @return \Generator
224 224
      */
225
-    private function createGenerator(Collaborator ...$collaborators) {
225
+    private function createGenerator(Collaborator ...$collaborators)
226
+    {
226 227
         foreach ($collaborators as $collaborator) {
227 228
             yield $collaborator->getWrappedObject() => [];
228 229
         }
Please login to merge, or discard this patch.
Sylius/Component/Core/spec/Customer/Statistics/CustomerStatisticsSpec.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,8 @@  discard block
 block discarded – undo
46 46
         $this->getAllOrdersCount()->shouldReturn(0);
47 47
     }
48 48
 
49
-    function it_has_number_of_all_orders(ChannelInterface $channel) {
49
+    function it_has_number_of_all_orders(ChannelInterface $channel)
50
+    {
50 51
         $firstStatistics = new PerChannelCustomerStatistics(110, 120, $channel->getWrappedObject());
51 52
         $secondStatistics = new PerChannelCustomerStatistics(13, 120, $channel->getWrappedObject());
52 53
 
@@ -55,7 +56,8 @@  discard block
 block discarded – undo
55 56
         $this->getAllOrdersCount()->shouldReturn(123);
56 57
     }
57 58
 
58
-    function it_has_an_array_of_statistics_per_channel(ChannelInterface $channel) {
59
+    function it_has_an_array_of_statistics_per_channel(ChannelInterface $channel)
60
+    {
59 61
         $firstStatistics = new PerChannelCustomerStatistics(110, 120, $channel->getWrappedObject());
60 62
         $secondStatistics = new PerChannelCustomerStatistics(13, 120, $channel->getWrappedObject());
61 63
 
Please login to merge, or discard this patch.
src/Sylius/Bundle/CoreBundle/Fixture/Factory/AddressExampleFactory.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@
 block discarded – undo
223 223
             return;
224 224
         }
225 225
 
226
-        if (null !== $options['province_name']){
226
+        if (null !== $options['province_name']) {
227 227
             $this->provideProvince($options, $address);
228 228
         }
229 229
     }
Please login to merge, or discard this patch.
src/Sylius/Behat/Context/Setup/OrderContext.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -271,7 +271,8 @@
 block discarded – undo
271 271
     /**
272 272
      * @Given /^the customer chose ("[^"]+" shipping method)$/
273 273
      */
274
-    public function theCustomerChoseShippingMethod(ShippingMethodInterface $shippingMethod) {
274
+    public function theCustomerChoseShippingMethod(ShippingMethodInterface $shippingMethod)
275
+    {
275 276
         /** @var OrderInterface $order */
276 277
         $order = $this->sharedStorage->get('order');
277 278
 
Please login to merge, or discard this patch.
src/Sylius/Behat/Page/Shop/Order/ThankYouPage.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
     /**
51 51
      * {@inheritdoc}
52 52
      */
53
-    public function hasInstructions() 
53
+    public function hasInstructions()
54 54
     {
55 55
         return null !== $this->getDocument()->find('css', '#sylius-payment-method-instructions');
56 56
     }
Please login to merge, or discard this patch.
src/Sylius/Bundle/FixturesBundle/spec/Suite/SuiteSpec.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -222,7 +222,8 @@
 block discarded – undo
222 222
      *
223 223
      * @return \Generator
224 224
      */
225
-    private function createGenerator(Collaborator ...$collaborators) {
225
+    private function createGenerator(Collaborator ...$collaborators)
226
+    {
226 227
         foreach ($collaborators as $collaborator) {
227 228
             yield $collaborator->getWrappedObject() => [];
228 229
         }
Please login to merge, or discard this patch.