Test Setup Failed
Push — master ( 568f60...80f464 )
by
unknown
03:06
created
Tests/Unit/ImportExport/Strategy/GuestCustomerStrategyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@
 block discarded – undo
161 161
         $entityManager = $this->getMockBuilder('Doctrine\ORM\EntityManager')
162 162
             ->disableOriginalConstructor()->getMock();
163 163
 
164
-        $repository     = $this->getMockBuilder('Doctrine\ORM\EntityRepository')
164
+        $repository = $this->getMockBuilder('Doctrine\ORM\EntityRepository')
165 165
             ->disableOriginalConstructor()->getMock();
166 166
         $repository->expects(self::once())->method('findOneBy')->willReturn(new CustomerGroup());
167 167
 
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Tests/Behat/Context/FeatureContext.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -106,24 +106,24 @@
 block discarded – undo
106 106
                 $doctrine->getEntityRepositoryForClass(Account::class)->findBy(['owner' => $owner]),
107 107
                 $doctrine->getEntityRepositoryForClass(B2bCustomer::class)->findBy(['owner' => $owner])
108 108
             );
109
-            $accountsInGrid = array_map(function (GridRow $row) {
109
+            $accountsInGrid = array_map(function(GridRow $row) {
110 110
                 return $row->getCellValue('Account name');
111 111
             }, $grid->getRows());
112
-            array_walk($ownAccounts, function (NameInterface &$element) {
112
+            array_walk($ownAccounts, function(NameInterface &$element) {
113 113
                 $element = $element->getName();
114 114
             });
115 115
         } elseif ('Magento Customers' == $accountType) {
116 116
             $ownAccounts = $doctrine->getEntityRepositoryForClass(Customer::class)->findBy(['owner' => $owner]);
117
-            $accountsInGrid = array_map(function (GridRow $row) {
117
+            $accountsInGrid = array_map(function(GridRow $row) {
118 118
                 $firstName = $row->getCellValue('First Name');
119 119
                 $lastName = $row->getCellValue('Last Name');
120
-                $firstName =  $firstName instanceof \DateTime ? $firstName->format('Y-m-d H:i:s') : $firstName;
121
-                $lastName =  $lastName instanceof \DateTime ? $lastName->format('Y-m-d H:i:s') : $lastName;
120
+                $firstName = $firstName instanceof \DateTime ? $firstName->format('Y-m-d H:i:s') : $firstName;
121
+                $lastName = $lastName instanceof \DateTime ? $lastName->format('Y-m-d H:i:s') : $lastName;
122 122
 
123
-                return $firstName.' '.$lastName;
123
+                return $firstName . ' ' . $lastName;
124 124
             }, $grid->getRows());
125
-            array_walk($ownAccounts, function (Customer &$element) {
126
-                $element = $element->getFirstName().' '.$element->getLastName();
125
+            array_walk($ownAccounts, function(Customer &$element) {
126
+                $element = $element->getFirstName() . ' ' . $element->getLastName();
127 127
             });
128 128
         } else {
129 129
             throw new RuntimeException(sprintf('Unsupported "%s" account type', $accountType));
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Migrations/Schema/v1_35/ItemsOrganizationOwner.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
         );
26 26
 
27 27
         $queries->addPostQuery(
28
-            'UPDATE orocrm_magento_order_items itm '.
28
+            'UPDATE orocrm_magento_order_items itm ' .
29 29
             'SET owner_id = (SELECT organization_id FROM orocrm_magento_order WHERE itm.order_id = id)'
30 30
         );
31 31
 
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         );
41 41
 
42 42
         $queries->addPostQuery(
43
-            'UPDATE orocrm_magento_cart_item itm '.
43
+            'UPDATE orocrm_magento_cart_item itm ' .
44 44
             'SET owner_id = (SELECT organization_id FROM orocrm_magento_cart WHERE itm.cart_id = id)'
45 45
         );
46 46
     }
Please login to merge, or discard this patch.
Bundle/MagentoBundle/Migrations/Schema/v1_50_4/CreatedCreditMemoTables.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     /** @var ActivityListExtension */
27 27
     protected $activityListExtension;
28 28
 
29
-     /** @var ExtendExtension */
29
+        /** @var ExtendExtension */
30 30
     protected $extendExtension;
31 31
 
32 32
     /**
Please login to merge, or discard this patch.
Oro/Bundle/MagentoBundle/Migrations/Schema/v1_50_4/AddOriginIdToOrder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@
 block discarded – undo
13 13
      */
14 14
     public function up(Schema $schema, QueryBag $queries)
15 15
     {
16
-        $table  = $schema->getTable('orocrm_magento_order');
16
+        $table = $schema->getTable('orocrm_magento_order');
17 17
 
18 18
         if (!$table->hasColumn('origin_id')) {
19 19
             $table->addColumn('origin_id', 'integer', ['notnull' => false, 'unsigned' => true]);
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Migrations/Schema/v1_49/AddOriginIdToOrder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function up(Schema $schema, QueryBag $queries)
16 16
     {
17
-        $table  = $schema->getTable('orocrm_magento_order');
17
+        $table = $schema->getTable('orocrm_magento_order');
18 18
         $table->addColumn('origin_id', 'integer', ['notnull' => false, 'unsigned' => true]);
19 19
         $table->addUniqueIndex(['origin_id', 'channel_id'], 'unq_origin_id_channel_id');
20 20
     }
Please login to merge, or discard this patch.
Bundle/MagentoBundle/Migrations/Data/ORM/UpdateBigNumbersWidgetOptions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             return;
30 30
         }
31 31
 
32
-        $items = array_map(function ($subWidget) {
32
+        $items = array_map(function($subWidget) {
33 33
             return [
34 34
                 'id'    => $subWidget,
35 35
                 'show'  => true,
Please login to merge, or discard this patch.
MagentoBundle/Migrations/Data/ORM/AddMissingSalesCustomerRelation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
         }
72 72
 
73 73
         $connection = $manager->getConnection();
74
-        $connection->transactional(function () use ($connection, $updateQuery) {
74
+        $connection->transactional(function() use ($connection, $updateQuery) {
75 75
             $connection->executeUpdate($updateQuery);
76 76
         });
77 77
 
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         $iterator = new BufferedIdentityQueryResultIterator($qb->getQuery());
90 90
         $iterator->setBufferSize(self::BUFFER_SIZE);
91
-        $connection->transactional(function () use ($manager, $iterator, $associationName) {
91
+        $connection->transactional(function() use ($manager, $iterator, $associationName) {
92 92
             $connection = $manager->getConnection();
93 93
             $insertQB = $connection->createQueryBuilder();
94 94
             $tableName = $manager->getClassMetadata(SalesCustomer::class)->getTableName();
Please login to merge, or discard this patch.
src/Oro/Bundle/MagentoBundle/Migrations/Data/Demo/ORM/LoadMagentoData.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 {
40 40
     use ContainerAwareTrait;
41 41
 
42
-    const TAX              = 0.0838;
42
+    const TAX = 0.0838;
43 43
 
44 44
     /** @var array */
45 45
     protected $users;
@@ -522,10 +522,10 @@  discard block
 block discarded – undo
522 522
         $totalTaxAmount = 0.0;
523 523
         $shipping = rand(0, 1);
524 524
         for ($i = 0; $i <= $cartItemsCount; $i++) {
525
-            $product = $products[rand(0, count($products)-1)];
526
-            $origin = $i+1;
525
+            $product = $products[rand(0, count($products) - 1)];
526
+            $origin = $i + 1;
527 527
             $price = rand(10, 200);
528
-            $price = $price + rand(0, 99)/100.0;
528
+            $price = $price + rand(0, 99) / 100.0;
529 529
             $taxAmount = $price * self::TAX;
530 530
             $totalTaxAmount = $totalTaxAmount + $taxAmount;
531 531
             $total = $total + $price + $taxAmount;
@@ -549,8 +549,8 @@  discard block
 block discarded – undo
549 549
             $cartItem->setCart($cart);
550 550
             $cartItem->setOwner($cart->getOrganization());
551 551
             $cart->getCartItems()->add($cartItem);
552
-            $cart->setItemsQty($i+1);
553
-            $cart->setItemsCount($i+1);
552
+            $cart->setItemsQty($i + 1);
553
+            $cart->setItemsCount($i + 1);
554 554
             $om->persist($cartItem);
555 555
             $cartItems[] = $cartItem;
556 556
         }
@@ -671,7 +671,7 @@  discard block
 block discarded – undo
671 671
 
672 672
         $buffer = range(0, count($accounts) - 1);
673 673
         for ($i = 0; $i < 25; ++$i) {
674
-            $birthday  = $this->generateBirthday();
674
+            $birthday = $this->generateBirthday();
675 675
 
676 676
             /** @var Contact $contact */
677 677
             $contact = $contacts[$buffer[$i]];
@@ -727,7 +727,7 @@  discard block
 block discarded – undo
727 727
      */
728 728
     protected function getRandomOwner()
729 729
     {
730
-        $randomUser = count($this->users)-1;
730
+        $randomUser = count($this->users) - 1;
731 731
         $user = $this->users[rand(0, $randomUser)];
732 732
 
733 733
         return $user;
Please login to merge, or discard this patch.