Test Setup Failed
Push — master ( c44b4b...5b27e5 )
by
unknown
04:09
created
src/Oro/Bundle/ShoppingListBundle/Tests/Behat/Context/FeatureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -128,7 +128,7 @@
 block discarded – undo
128 128
      */
129 129
     private function getShoppingListLineItemsTableDirectRows(Table $table)
130 130
     {
131
-        return array_map(function (NodeElement $element) {
131
+        return array_map(function(NodeElement $element) {
132 132
             return $this->elementFactory->wrapElement(Table::TABLE_ROW_ELEMENT, $element);
133 133
         }, $table->findAll('css', '.shopping-list-line-items .shopping-list-line-items__item-wrapper'));
134 134
     }
Please login to merge, or discard this patch.
src/Oro/Bundle/ShoppingListBundle/Manager/ShoppingListManager.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
      */
178 178
     public function addLineItem(LineItem $lineItem, ShoppingList $shoppingList, $flush = true, $concatNotes = false)
179 179
     {
180
-        $func = function (LineItem $duplicate) use ($lineItem, $concatNotes) {
180
+        $func = function(LineItem $duplicate) use ($lineItem, $concatNotes) {
181 181
             $this->mergeLineItems($lineItem, $duplicate, $concatNotes);
182 182
         };
183 183
 
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
      */
198 198
     public function updateLineItem(LineItem $lineItem, ShoppingList $shoppingList)
199 199
     {
200
-        $func = function (LineItem $duplicate) use ($lineItem) {
200
+        $func = function(LineItem $duplicate) use ($lineItem) {
201 201
             if ($lineItem->getQuantity() > 0) {
202 202
                 $this->updateLineItemQuantity($lineItem, $duplicate);
203 203
             } else {
@@ -404,7 +404,7 @@  discard block
 block discarded – undo
404 404
             $shoppingList = $repository->findByUserAndId($this->aclHelper, $currentListId, $this->getWebsiteId());
405 405
         }
406 406
         if (!$shoppingList) {
407
-            $shoppingList  = $repository->findAvailableForCustomerUser($this->aclHelper, false, $this->getWebsiteId());
407
+            $shoppingList = $repository->findAvailableForCustomerUser($this->aclHelper, false, $this->getWebsiteId());
408 408
         }
409 409
         if ($create && !$shoppingList instanceof ShoppingList) {
410 410
             $label = $this->translator->trans($label ?: 'oro.shoppinglist.default.label');
Please login to merge, or discard this patch.
Tests/Unit/Layout/DataProvider/ConfigurableProductProviderTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 
124 124
         $boolHandler->expects($this->once())
125 125
             ->method('getHumanReadableValue')
126
-            ->willReturnCallback(function ($value) {
126
+            ->willReturnCallback(function($value) {
127 127
                 return $value ? 'Yes' : 'No';
128 128
             });
129 129
 
Please login to merge, or discard this patch.
src/Oro/Bundle/ProductBundle/Provider/ProductMatrixAvailabilityProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     private function isProductSupportsUnit(Product $product, ProductUnit $unit)
83 83
     {
84 84
         $productUnits = $product->getUnitPrecisions()->map(
85
-            function (ProductUnitPrecision $unitPrecision) {
85
+            function(ProductUnitPrecision $unitPrecision) {
86 86
                 return $unitPrecision->getUnit();
87 87
             }
88 88
         );
Please login to merge, or discard this patch.
FedexShippingBundle/Tests/Functional/Controller/FedexShippingRuleTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
         static::assertSame($configData['methodConfigs'][0]['method'], $config->getMethod());
145 145
         static::assertSame($configData['rule']['name'], $config->getMethodConfigsRule()->getRule()->getName());
146 146
         static::assertSame(
147
-            (int) $configData['rule']['sortOrder'],
147
+            (int)$configData['rule']['sortOrder'],
148 148
             $config->getMethodConfigsRule()->getRule()->getSortOrder()
149 149
         );
150 150
         static::assertSame(
Please login to merge, or discard this patch.
src/Oro/Bundle/FedexShippingBundle/Tests/Functional/Stub/SoapClientStub.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -39,9 +39,9 @@  discard block
 block discarded – undo
39 39
      */
40 40
     private function createErrorResponse(int $code): \StdClass
41 41
     {
42
-        return (object) [
42
+        return (object)[
43 43
             'HighestSeverity' => FedexRateServiceResponse::SEVERITY_ERROR,
44
-            'Notifications' => (object) [
44
+            'Notifications' => (object)[
45 45
                 'Code' => $code,
46 46
             ]
47 47
         ];
@@ -52,16 +52,16 @@  discard block
 block discarded – undo
52 52
      */
53 53
     private function createOkResponse(): \StdClass
54 54
     {
55
-        return (object) [
55
+        return (object)[
56 56
             'HighestSeverity' => FedexRateServiceResponse::SEVERITY_SUCCESS,
57
-            'Notifications' => (object) [
57
+            'Notifications' => (object)[
58 58
                 'Code' => 0,
59 59
             ],
60
-            'RateReplyDetails' => (object) [
60
+            'RateReplyDetails' => (object)[
61 61
                 'ServiceType' => 'service',
62
-                'RatedShipmentDetails' => (object) [
63
-                    'ShipmentRateDetail' => (object) [
64
-                        'TotalNetCharge' => (object) [
62
+                'RatedShipmentDetails' => (object)[
63
+                    'ShipmentRateDetail' => (object)[
64
+                        'TotalNetCharge' => (object)[
65 65
                             'Amount' => '25',
66 66
                             'Currency' => 'USD',
67 67
                         ]
Please login to merge, or discard this patch.
Bundle/FedexShippingBundle/Tests/Unit/Cache/FedexResponseCacheKeyTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
         static::assertSame($request, $key->getRequest());
20 20
         static::assertSame($settings, $key->getSettings());
21 21
         static::assertSame(
22
-            (string) crc32(serialize($request->getRequestData())),
22
+            (string)crc32(serialize($request->getRequestData())),
23 23
             $key->getCacheKey()
24 24
         );
25 25
     }
Please login to merge, or discard this patch.
FedexShippingBundle/Tests/Unit/ShippingMethod/FedexShippingMethodTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
         foreach ($matchingNumbers as $number) {
93 93
             static::assertEquals(
94
-                FedexShippingMethod::TRACKING_URL.$number,
94
+                FedexShippingMethod::TRACKING_URL . $number,
95 95
                 $method->getTrackingLink($number)
96 96
             );
97 97
         }
Please login to merge, or discard this patch.
src/Oro/Bundle/FedexShippingBundle/Cache/FedexResponseCacheKey.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,6 +48,6 @@
 block discarded – undo
48 48
      */
49 49
     public function getCacheKey(): string
50 50
     {
51
-        return (string) crc32(serialize($this->request->getRequestData()));
51
+        return (string)crc32(serialize($this->request->getRequestData()));
52 52
     }
53 53
 }
Please login to merge, or discard this patch.