Test Setup Failed
Push — master ( 568f60...80f464 )
by
unknown
03:06
created
src/Oro/Bundle/MagentoBundle/Service/MagentoUrlGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -148,7 +148,7 @@
 block discarded – undo
148 148
      */
149 149
     public function getMagentoRoute()
150 150
     {
151
-        return $this->magentoRoute ? : self::NEW_ORDER_ROUTE;
151
+        return $this->magentoRoute ?: self::NEW_ORDER_ROUTE;
152 152
     }
153 153
 
154 154
     /**
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Entity/Order.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -625,7 +625,7 @@
 block discarded – undo
625 625
     public function getBillingAddress()
626 626
     {
627 627
         $addresses = $this->getAddresses()->filter(
628
-            function (AbstractTypedAddress $address) {
628
+            function(AbstractTypedAddress $address) {
629 629
                 return $address->hasTypeWithName(AddressType::TYPE_BILLING);
630 630
             }
631 631
         );
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Entity/Customer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -722,7 +722,7 @@
 block discarded – undo
722 722
     public function getAddressByOriginId($originId)
723 723
     {
724 724
         return $this->addresses->filter(
725
-            function (Address $item) use ($originId) {
725
+            function(Address $item) use ($originId) {
726 726
                 return $item->getOriginId() === $originId;
727 727
             }
728 728
         )->first();
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Entity/Repository/OrderRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
              CASE WHEN orders.subtotalAmount IS NOT NULL THEN orders.subtotalAmount ELSE 0 END -
29 29
              CASE WHEN orders.discountAmount IS NOT NULL THEN ABS(orders.discountAmount) ELSE 0 END
30 30
              ) as val';
31
-        $qb    = $this->createQueryBuilder('orders');
31
+        $qb = $this->createQueryBuilder('orders');
32 32
         $qb->select($select)
33 33
             ->andWhere($qb->expr()->between('orders.createdAt', ':dateStart', ':dateEnd'))
34 34
             ->setParameter('dateStart', $start)
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
 
38 38
         $value = $aclHelper->apply($qb)->getOneOrNullResult();
39 39
 
40
-        return $value['val'] ? : 0;
40
+        return $value['val'] ?: 0;
41 41
     }
42 42
 
43 43
     /**
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function getOrdersNumberValueByPeriod(\DateTime $start, \DateTime $end, AclHelper $aclHelper)
51 51
     {
52
-        $qb    = $this->createQueryBuilder('o');
52
+        $qb = $this->createQueryBuilder('o');
53 53
         $qb->select('COUNT(o.id) as val')
54 54
             ->andWhere($qb->expr()->between('o.createdAt', ':dateStart', ':dateEnd'))
55 55
             ->setParameter('dateStart', $start)
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $value = $aclHelper->apply($qb)->getOneOrNullResult();
60 60
 
61
-        return $value['val'] ? : 0;
61
+        return $value['val'] ?: 0;
62 62
     }
63 63
 
64 64
     /**
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
              CASE WHEN o.discountAmount IS NOT NULL THEN ABS(o.discountAmount) ELSE 0 END
78 78
              ) as revenue,
79 79
              count(o.id) as ordersCount';
80
-        $qb    = $this->createQueryBuilder('o');
80
+        $qb = $this->createQueryBuilder('o');
81 81
         $qb->select($select)
82 82
             ->andWhere($qb->expr()->between('o.createdAt', ':dateStart', ':dateEnd'))
83 83
             ->setParameter('dateStart', $start)
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
         /**
160 160
          * @todo Remove dependency on exact magento channel type in CRM-8154
161 161
          */
162
-        $channels      = $entityManager
162
+        $channels = $entityManager
163 163
             ->getRepository('OroChannelBundle:Channel')
164 164
             ->getAvailableChannelNames($aclHelper, MagentoChannelType::TYPE);
165 165
 
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
             }
300 300
             $this->applyActiveChannelLimitation($qb);
301 301
 
302
-            return (int) $aclHelper->apply($qb)->getSingleScalarResult();
302
+            return (int)$aclHelper->apply($qb)->getSingleScalarResult();
303 303
         } catch (NoResultException $ex) {
304 304
             return 0;
305 305
         }
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
              CASE WHEN orders.subtotalAmount IS NOT NULL THEN orders.subtotalAmount ELSE 0 END -
335 335
              CASE WHEN orders.discountAmount IS NOT NULL THEN ABS(orders.discountAmount) ELSE 0 END
336 336
              ) as val';
337
-        $qb     = $this->createQueryBuilder('orders');
337
+        $qb = $this->createQueryBuilder('orders');
338 338
         $qb->select($select);
339 339
 
340 340
         $this->applyActiveChannelLimitation($qb);
@@ -365,7 +365,7 @@  discard block
 block discarded – undo
365 365
              CASE WHEN o.discountAmount IS NOT NULL THEN ABS(o.discountAmount) ELSE 0 END
366 366
              ) as revenue,
367 367
              count(o.id) as ordersCount';
368
-        $qb     = $this->createQueryBuilder('o');
368
+        $qb = $this->createQueryBuilder('o');
369 369
         $qb->select($select);
370 370
         $this->applyActiveChannelLimitation($qb);
371 371
 
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Entity/Repository/CustomerRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
         $value = $aclHelper->apply($qb)->getOneOrNullResult();
65 65
 
66
-        return $value['val'] ? : 0;
66
+        return $value['val'] ?: 0;
67 67
     }
68 68
 
69 69
     /**
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         $value = $aclHelper->apply($qb)->getOneOrNullResult();
90 90
 
91
-        return $value['val'] ?  : 0;
91
+        return $value['val'] ?: 0;
92 92
     }
93 93
 
94 94
     /**
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/EventListener/OrderListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
 
105 105
         return array_filter(
106 106
             $entities,
107
-            function ($entity) {
107
+            function($entity) {
108 108
                 return $entity instanceof Order && $this->isOrderSupported($entity);
109 109
             }
110 110
         );
Please login to merge, or discard this patch.
Bundle/MagentoBundle/EventListener/UpdateIntegrationConnectorsListener.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
         /** @var MagentoTransportInterface $transport */
76 76
         $transport = $this->typeRegistry
77
-                          ->getTransportTypeBySettingEntity($this->transportEntity, $this->channelType);
77
+                            ->getTransportTypeBySettingEntity($this->transportEntity, $this->channelType);
78 78
 
79 79
         $transport->init($this->transportEntity);
80 80
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     {
68 68
         $dictionaryConnectors = $this->typeRegistry->getRegisteredConnectorsTypes(
69 69
             $this->channelType,
70
-            function (ConnectorInterface $connector) {
70
+            function(ConnectorInterface $connector) {
71 71
                 return $connector instanceof DictionaryConnectorInterface;
72 72
             }
73 73
         )->toArray();
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/EventListener/IntegrationWriteErrorListener.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
             case 'mage_region_import':
21 21
                 $entity = 'regions';
22 22
                 $ids    = array_map(
23
-                    function (Region $item) {
23
+                    function(Region $item) {
24 24
                         return $item->getCombinedCode();
25 25
                     },
26 26
                     $items
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
             case 'mage_order_import':
31 31
                 $entity = 'orders';
32 32
                 $ids    = array_map(
33
-                    function (Order $item) {
33
+                    function(Order $item) {
34 34
                         return $item->getIncrementId();
35 35
                     },
36 36
                     $items
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
                 $entity = $event->getJobName() === 'mage_customer_import' ? 'customers' : 'carts';
43 43
 
44 44
                 $ids = array_map(
45
-                    function ($item) {
45
+                    function($item) {
46 46
                         return $item->getOriginId();
47 47
                     },
48 48
                     $items
Please login to merge, or discard this patch.
Bundle/MagentoBundle/EventListener/IntegrationSyncAfterEventListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
         $jobResult  = $event->getJobResult();
22 22
         $exceptions = array_map(
23
-            function ($exception) {
23
+            function($exception) {
24 24
                 $exception = ValidationUtils::sanitizeSecureInfo($exception);
25 25
                 return $exception;
26 26
             },
Please login to merge, or discard this patch.