Test Setup Failed
Push — master ( 6d5f74...30c942 )
by
unknown
03:41
created
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.
src/Oro/Bundle/FedexShippingBundle/ShippingMethod/FedexShippingMethod.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -242,7 +242,7 @@
 block discarded – undo
242 242
     {
243 243
         foreach ($this->getTrackingRegexList() as $regex) {
244 244
             if (preg_match($regex, $number)) {
245
-                return self::TRACKING_URL.$number;
245
+                return self::TRACKING_URL . $number;
246 246
             }
247 247
         }
248 248
 
Please login to merge, or discard this patch.
FedexShippingBundle/DependencyInjection/OroFedexShippingExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
      */
23 23
     public function load(array $configs, ContainerBuilder $container)
24 24
     {
25
-        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
25
+        $loader = new Loader\YamlFileLoader($container, new FileLocator(__DIR__ . '/../Resources/config'));
26 26
 
27 27
         $loader->load('services.yml');
28 28
         $loader->load('form_types.yml');
Please login to merge, or discard this patch.
src/Oro/Bundle/PricingBundle/Entity/Repository/ProductPriceRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $types = [\PDO::PARAM_INT];
50 50
         if ($products) {
51 51
             $parameters[] = array_map(
52
-                function ($product) {
52
+                function($product) {
53 53
                     return $product instanceof Product ? $product->getId() : $product;
54 54
                 },
55 55
                 $products
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
         $qb = $this->createQueryBuilder('price');
170 170
 
171 171
         // ensure all skus are strings to avoid postgres's "No operator matches the given name and argument type(s)."
172
-        array_walk($productSkus, function (& $sku) {
172
+        array_walk($productSkus, function(& $sku) {
173 173
             $sku = (string)$sku;
174 174
         });
175 175
 
@@ -259,7 +259,7 @@  discard block
 block discarded – undo
259 259
             $price->setId($id);
260 260
         }
261 261
         $qb
262
-            ->setParameter('price_rule_id', $price->getPriceRule() ? $price->getPriceRule()->getId(): null)
262
+            ->setParameter('price_rule_id', $price->getPriceRule() ? $price->getPriceRule()->getId() : null)
263 263
             ->setParameter('unit_code', $price->getProductUnitCode())
264 264
             ->setParameter('product_id', $price->getProduct()->getId())
265 265
             ->setParameter('price_list_id', $price->getPriceList()->getId())
Please login to merge, or discard this patch.
src/Oro/Bundle/UPSBundle/Tests/Behat/Context/FeatureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@
 block discarded – undo
99 99
         $repository = $entityManager->getRepository(ShippingService::class);
100 100
 
101 101
         /** @var ShippingService $shippingService */
102
-        $shippingService =  $repository->findOneBy(['description' => $description]);
102
+        $shippingService = $repository->findOneBy(['description' => $description]);
103 103
 
104 104
         if (!$shippingService) {
105 105
             throw new \InvalidArgumentException(sprintf('No shipping service "%s" found', $description));
Please login to merge, or discard this patch.