Test Setup Failed
Push — master ( fe3d4c...e44f29 )
by
unknown
03:25
created
CatalogBundle/Tests/Unit/EventListener/ProductDuplicateListenerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
 
71 71
         $this->categoryRepository->expects($this->once())
72 72
             ->method('findOneByProduct')
73
-            ->will($this->returnCallback(function () {
73
+            ->will($this->returnCallback(function() {
74 74
                 $args = func_get_args();
75 75
                 $product = $args[0];
76 76
 
Please login to merge, or discard this patch.
Tests/Unit/EventListener/AbstractProductImportEventListenerTest.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
             ->expects($this->any())
73 73
             ->method('findOneByProductSku')
74 74
             ->willReturnCallback(
75
-                function ($sku) {
75
+                function($sku) {
76 76
                     if (!isset($this->categoriesByProduct[$sku])) {
77 77
                         return null;
78 78
                     }
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
             ->expects($this->any())
88 88
             ->method('findOneByDefaultTitle')
89 89
             ->willReturnCallback(
90
-                function ($title) {
90
+                function($title) {
91 91
                     if (!isset($this->categoriesByTitle[$title])) {
92 92
                         return null;
93 93
                     }
Please login to merge, or discard this patch.
Tests/Unit/EventListener/WebsiteSearchCategoryIndexerListenerTest.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -171,10 +171,10 @@
 block discarded – undo
171 171
         $expected[$product->getId()] = [
172 172
             'category_id' => [
173 173
                 ['value' => 555, 'all_text' => false],
174
-             ],
174
+                ],
175 175
             'category_path' => [
176 176
                 ['value' => '1_555', 'all_text' => false],
177
-             ],
177
+                ],
178 178
             'category_path_' . CategoryPathPlaceholder::NAME => [
179 179
                 [
180 180
                     'value' => new PlaceholderValue(1, [CategoryPathPlaceholder::NAME => '1']),
Please login to merge, or discard this patch.
CatalogBundle/Tests/Unit/Datagrid/Extension/CategoryCountsExtensionTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -381,7 +381,7 @@
 block discarded – undo
381 381
             ],
382 382
             'sorting' => [
383 383
                 [
384
-                    '_sort_by' => [ 'field' => 'ASC' ]
384
+                    '_sort_by' => ['field' => 'ASC']
385 385
                 ]
386 386
             ],
387 387
             'mixed' => [
Please login to merge, or discard this patch.
Tests/Functional/Controller/Frontend/ProductControllerTest.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
         $url = $this->getUrl(
125 125
             'oro_product_frontend_product_index',
126 126
             $requestParams
127
-        ).'&grid[frontend-product-search-grid]='.$gridUrlPart;
127
+        ) . '&grid[frontend-product-search-grid]=' . $gridUrlPart;
128 128
 
129 129
         $crawler = $this->client->request('GET', $url);
130 130
 
Please login to merge, or discard this patch.
Oro/Bundle/CatalogBundle/Tests/Functional/Form/Type/CategoryTypeTest.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -83,9 +83,9 @@  discard block
 block discarded – undo
83 83
 
84 84
         // prepare input array
85 85
         $submitData = [
86
-            'titles' => [ 'values' => ['default' => $defaultTitle]],
86
+            'titles' => ['values' => ['default' => $defaultTitle]],
87 87
             'shortDescriptions' => ['values' => ['default' => $defaultShortDescription]],
88
-            'longDescriptions' => ['values' => [ 'default' => $defaultLongDescription]],
88
+            'longDescriptions' => ['values' => ['default' => $defaultLongDescription]],
89 89
             'smallImage' => ['file' => $smallImage],
90 90
             'largeImage' => ['file' => $largeImage],
91 91
             'appendProducts' => implode(',', $this->getProductIds($appendedProducts)),
@@ -145,9 +145,9 @@  discard block
 block discarded – undo
145 145
         $defaultLongDescription = 'Default Long Description';
146 146
         // prepare input array
147 147
         $submitData = [
148
-            'titles' => [ 'values' => ['default' => $defaultTitle]],
148
+            'titles' => ['values' => ['default' => $defaultTitle]],
149 149
             'shortDescriptions' => ['values' => ['default' => $defaultShortDescription]],
150
-            'longDescriptions' => ['values' => [ 'default' => $defaultLongDescription]],
150
+            'longDescriptions' => ['values' => ['default' => $defaultLongDescription]],
151 151
             'defaultProductOptions' => ['unitPrecision' => ['unit' => 'kg', 'precision' => 3]],
152 152
             '_token' => $this->tokenManager->getToken('category')->getValue(),
153 153
         ];
Please login to merge, or discard this patch.
src/Oro/Bundle/CatalogBundle/Tests/Behat/Context/FeatureContext.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
                 implode('","', $expectedCategories)
41 41
             )
42 42
         );
43
-        $categories = array_map(function (NodeElement $categoryElement) {
43
+        $categories = array_map(function(NodeElement $categoryElement) {
44 44
             return $categoryElement->getText();
45 45
         }, $categoryElements);
46 46
         self::assertEquals(
Please login to merge, or discard this patch.
src/Oro/Bundle/CatalogBundle/Model/ExtendCategory.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
  * @method removeProduct(Product $value)
28 28
  * @method ArrayCollection getProducts()
29 29
  * @method addProduct(Product $value)
30
-
31 30
  */
32 31
 class ExtendCategory
33 32
 {
Please login to merge, or discard this patch.
ShippingBundle/Entity/Repository/ProductShippingOptionsRepository.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,15 +27,15 @@
 block discarded – undo
27 27
         $expressions = [];
28 28
 
29 29
         foreach ($unitsByProductIds as $productId => $unit) {
30
-            $productIdParamName = 'product_id_'.$productId;
30
+            $productIdParamName = 'product_id_' . $productId;
31 31
 
32
-            $productExpr = $expr->eq('product.id', ':'.$productIdParamName);
32
+            $productExpr = $expr->eq('product.id', ':' . $productIdParamName);
33 33
 
34 34
             $qb->setParameter($productIdParamName, $productId);
35 35
 
36
-            $unitParamName = 'unit_'.$productId;
36
+            $unitParamName = 'unit_' . $productId;
37 37
 
38
-            $unitExpr = $expr->eq('options.productUnit', ':'.$unitParamName);
38
+            $unitExpr = $expr->eq('options.productUnit', ':' . $unitParamName);
39 39
             $qb->setParameter($unitParamName, $unit);
40 40
 
41 41
             $expressions[] = $expr->andX($productExpr, $unitExpr);
Please login to merge, or discard this patch.