@@ -97,7 +97,7 @@ |
||
97 | 97 | return array_udiff( |
98 | 98 | $compareWithProducts, |
99 | 99 | $upSellingProducts, |
100 | - function (StorageProductAbstractRelationTransfer $a, StorageProductAbstractRelationTransfer $b) { |
|
100 | + function(StorageProductAbstractRelationTransfer $a, StorageProductAbstractRelationTransfer $b) { |
|
101 | 101 | return strcasecmp($a->getSku(), $b->getSku()); |
102 | 102 | } |
103 | 103 | ); |
@@ -45,11 +45,11 @@ |
||
45 | 45 | return $container; |
46 | 46 | } |
47 | 47 | |
48 | - /** |
|
49 | - * @param \Spryker\Zed\Kernel\Container $container |
|
50 | - * |
|
51 | - * @return \Spryker\Zed\Kernel\Container |
|
52 | - */ |
|
48 | + /** |
|
49 | + * @param \Spryker\Zed\Kernel\Container $container |
|
50 | + * |
|
51 | + * @return \Spryker\Zed\Kernel\Container |
|
52 | + */ |
|
53 | 53 | public function provideCommunicationLayerDependencies(Container $container) |
54 | 54 | { |
55 | 55 | $container = $this->addFacadeLocale($container); |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | */ |
86 | 86 | protected function addQueryContainerProduct(Container $container) |
87 | 87 | { |
88 | - $container[static::QUERY_CONTAINER_PRODUCT] = function (Container $container) { |
|
88 | + $container[static::QUERY_CONTAINER_PRODUCT] = function(Container $container) { |
|
89 | 89 | return new QueryContainerProductRelationToProductBridge( |
90 | 90 | $container->getLocator()->product()->queryContainer() |
91 | 91 | ); |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | */ |
102 | 102 | protected function addQueryContainerPropelQueryBuilder(Container $container) |
103 | 103 | { |
104 | - $container[static::QUERY_CONTAINER_PROPEL_QUERY_BUILDER] = function (Container $container) { |
|
104 | + $container[static::QUERY_CONTAINER_PROPEL_QUERY_BUILDER] = function(Container $container) { |
|
105 | 105 | return new ProductRelationToPropelQueryBuilderBridge( |
106 | 106 | $container->getLocator()->propelQueryBuilder()->queryContainer() |
107 | 107 | ); |
@@ -117,7 +117,7 @@ discard block |
||
117 | 117 | */ |
118 | 118 | protected function addFacadeLocale(Container $container) |
119 | 119 | { |
120 | - $container[static::FACADE_LOCALE] = function (Container $container) { |
|
120 | + $container[static::FACADE_LOCALE] = function(Container $container) { |
|
121 | 121 | return new ProductRelationToLocaleBridge( |
122 | 122 | $container->getLocator()->locale()->facade() |
123 | 123 | ); |
@@ -133,7 +133,7 @@ discard block |
||
133 | 133 | */ |
134 | 134 | protected function addFacadeMoney(Container $container) |
135 | 135 | { |
136 | - $container[static::FACADE_MONEY] = function (Container $container) { |
|
136 | + $container[static::FACADE_MONEY] = function(Container $container) { |
|
137 | 137 | return new ProductRelationToMoneyBridge( |
138 | 138 | $container->getLocator()->money()->facade() |
139 | 139 | ); |
@@ -149,7 +149,7 @@ discard block |
||
149 | 149 | */ |
150 | 150 | protected function addServiceUtilEncoding(Container $container) |
151 | 151 | { |
152 | - $container[static::SERVICE_UTIL_ENCODING] = function (Container $container) { |
|
152 | + $container[static::SERVICE_UTIL_ENCODING] = function(Container $container) { |
|
153 | 153 | return new ProductRelationToUtilEncodingBridge( |
154 | 154 | $container->getLocator()->utilEncoding()->service() |
155 | 155 | ); |
@@ -165,7 +165,7 @@ discard block |
||
165 | 165 | */ |
166 | 166 | protected function addFacadeProduct(Container $container) |
167 | 167 | { |
168 | - $container[static::FACADE_PRODUCT] = function (Container $container) { |
|
168 | + $container[static::FACADE_PRODUCT] = function(Container $container) { |
|
169 | 169 | return new FacadeProductRelationToProductBridge( |
170 | 170 | $container->getLocator()->product()->facade() |
171 | 171 | ); |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | */ |
182 | 182 | protected function addFacadeTouch(Container $container) |
183 | 183 | { |
184 | - $container[static::FACADE_TOUCH] = function (Container $container) { |
|
184 | + $container[static::FACADE_TOUCH] = function(Container $container) { |
|
185 | 185 | return new ProductRelationToTouchBridge( |
186 | 186 | $container->getLocator()->touch()->facade() |
187 | 187 | ); |
@@ -197,7 +197,7 @@ discard block |
||
197 | 197 | */ |
198 | 198 | protected function addPriceProductFacade(Container $container) |
199 | 199 | { |
200 | - $container[static::FACADE_PRICE_PRODUCT] = function (Container $container) { |
|
200 | + $container[static::FACADE_PRICE_PRODUCT] = function(Container $container) { |
|
201 | 201 | return new ProductRelationToPriceProductFacadeBridge( |
202 | 202 | $container->getLocator()->priceProduct()->facade() |
203 | 203 | ); |
@@ -45,14 +45,14 @@ discard block |
||
45 | 45 | protected function buildCategoryFilters() |
46 | 46 | { |
47 | 47 | return [ |
48 | - [ |
|
49 | - 'id' => 'product_category_name', |
|
50 | - 'field' => SpyCategoryAttributeTableMap::COL_NAME, |
|
51 | - 'label' => 'category', |
|
52 | - 'type' => 'string', |
|
53 | - 'input' => 'text', |
|
54 | - 'operators' => $this->getTextOperators(), |
|
55 | - ], |
|
48 | + [ |
|
49 | + 'id' => 'product_category_name', |
|
50 | + 'field' => SpyCategoryAttributeTableMap::COL_NAME, |
|
51 | + 'label' => 'category', |
|
52 | + 'type' => 'string', |
|
53 | + 'input' => 'text', |
|
54 | + 'operators' => $this->getTextOperators(), |
|
55 | + ], |
|
56 | 56 | ]; |
57 | 57 | } |
58 | 58 | |
@@ -115,15 +115,15 @@ discard block |
||
115 | 115 | |
116 | 116 | $filters = []; |
117 | 117 | foreach ($productAttributeKeys as $productAttributeKeyEntity) { |
118 | - $filters[] = [ |
|
119 | - 'id' => $this->buildAttributeKey($productAttributeKeyEntity->getKey()), |
|
120 | - 'field' => SpyProductAbstractTableMap::COL_ATTRIBUTES, |
|
121 | - 'label' => $productAttributeKeyEntity->getKey(), |
|
122 | - 'type' => 'string', |
|
123 | - 'input' => 'text', |
|
124 | - 'optgroup' => 'attributes', |
|
125 | - 'operators' => $this->getTextOperators(), |
|
126 | - ]; |
|
118 | + $filters[] = [ |
|
119 | + 'id' => $this->buildAttributeKey($productAttributeKeyEntity->getKey()), |
|
120 | + 'field' => SpyProductAbstractTableMap::COL_ATTRIBUTES, |
|
121 | + 'label' => $productAttributeKeyEntity->getKey(), |
|
122 | + 'type' => 'string', |
|
123 | + 'input' => 'text', |
|
124 | + 'optgroup' => 'attributes', |
|
125 | + 'operators' => $this->getTextOperators(), |
|
126 | + ]; |
|
127 | 127 | } |
128 | 128 | |
129 | 129 | return $filters; |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected function addFileSystem(Container $container) |
40 | 40 | { |
41 | - $container[static::SYMFONY_FILE_SYSTEM] = function () { |
|
41 | + $container[static::SYMFONY_FILE_SYSTEM] = function() { |
|
42 | 42 | return new Filesystem(); |
43 | 43 | }; |
44 | 44 | |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | */ |
53 | 53 | protected function addFinder(Container $container) |
54 | 54 | { |
55 | - $container[static::SYMFONY_FINDER] = function () { |
|
55 | + $container[static::SYMFONY_FINDER] = function() { |
|
56 | 56 | return new Finder(); |
57 | 57 | }; |
58 | 58 |
@@ -297,7 +297,7 @@ discard block |
||
297 | 297 | } |
298 | 298 | |
299 | 299 | /** |
300 | - * @return \Spryker\Zed\Url\Business\Deletion\UrlDeleterBeforeDeleteObserverInterface[] |
|
300 | + * @return Deletion\UrlDeleterBeforeDeleteObserverInterface[] |
|
301 | 301 | */ |
302 | 302 | protected function createUrlDeleterBeforeDeleteObservers() |
303 | 303 | { |
@@ -307,7 +307,7 @@ discard block |
||
307 | 307 | } |
308 | 308 | |
309 | 309 | /** |
310 | - * @return \Spryker\Zed\Url\Business\Deletion\UrlDeleterAfterDeleteObserverInterface[] |
|
310 | + * @return Deletion\UrlDeleterAfterDeleteObserverInterface[] |
|
311 | 311 | */ |
312 | 312 | protected function createUrlDeleterAfterDeleteObservers() |
313 | 313 | { |
@@ -37,39 +37,39 @@ |
||
37 | 37 | */ |
38 | 38 | public function provideBusinessLayerDependencies(Container $container) |
39 | 39 | { |
40 | - $container[self::FACADE_LOCALE] = function (Container $container) { |
|
40 | + $container[self::FACADE_LOCALE] = function(Container $container) { |
|
41 | 41 | return new UrlToLocaleBridge($container->getLocator()->locale()->facade()); |
42 | 42 | }; |
43 | 43 | |
44 | - $container[self::FACADE_TOUCH] = function (Container $container) { |
|
44 | + $container[self::FACADE_TOUCH] = function(Container $container) { |
|
45 | 45 | return new UrlToTouchBridge($container->getLocator()->touch()->facade()); |
46 | 46 | }; |
47 | 47 | |
48 | - $container[self::PLUGIN_PROPEL_CONNECTION] = function () { |
|
48 | + $container[self::PLUGIN_PROPEL_CONNECTION] = function() { |
|
49 | 49 | return Propel::getConnection(); |
50 | 50 | }; |
51 | 51 | |
52 | - $container[self::PLUGINS_URL_BEFORE_CREATE] = function () { |
|
52 | + $container[self::PLUGINS_URL_BEFORE_CREATE] = function() { |
|
53 | 53 | return $this->getUrlBeforeCreatePlugins(); |
54 | 54 | }; |
55 | 55 | |
56 | - $container[self::PLUGINS_URL_AFTER_CREATE] = function () { |
|
56 | + $container[self::PLUGINS_URL_AFTER_CREATE] = function() { |
|
57 | 57 | return $this->getUrlAfterCreatePlugins(); |
58 | 58 | }; |
59 | 59 | |
60 | - $container[self::PLUGINS_URL_BEFORE_UPDATE] = function () { |
|
60 | + $container[self::PLUGINS_URL_BEFORE_UPDATE] = function() { |
|
61 | 61 | return $this->getUrlBeforeUpdatePlugins(); |
62 | 62 | }; |
63 | 63 | |
64 | - $container[self::PLUGINS_URL_AFTER_UPDATE] = function () { |
|
64 | + $container[self::PLUGINS_URL_AFTER_UPDATE] = function() { |
|
65 | 65 | return $this->getUrlAfterUpdatePlugins(); |
66 | 66 | }; |
67 | 67 | |
68 | - $container[self::PLUGINS_URL_BEFORE_DELETE] = function () { |
|
68 | + $container[self::PLUGINS_URL_BEFORE_DELETE] = function() { |
|
69 | 69 | return $this->getUrlBeforeDeletePlugins(); |
70 | 70 | }; |
71 | 71 | |
72 | - $container[self::PLUGINS_URL_AFTER_DELETE] = function () { |
|
72 | + $container[self::PLUGINS_URL_AFTER_DELETE] = function() { |
|
73 | 73 | return $this->getUrlAfterDeletePlugins(); |
74 | 74 | }; |
75 | 75 |
@@ -75,6 +75,7 @@ |
||
75 | 75 | |
76 | 76 | /** |
77 | 77 | * {@inheritdoc} |
78 | + * @param string $name |
|
78 | 79 | */ |
79 | 80 | protected function findTemplate($name) |
80 | 81 | { |
@@ -47,7 +47,7 @@ |
||
47 | 47 | { |
48 | 48 | $this->assertNavigationForDelete($navigationTransfer); |
49 | 49 | |
50 | - $this->handleDatabaseTransaction(function () use ($navigationTransfer) { |
|
50 | + $this->handleDatabaseTransaction(function() use ($navigationTransfer) { |
|
51 | 51 | $this->executeDeleteNavigationTransaction($navigationTransfer); |
52 | 52 | }); |
53 | 53 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $this->assertNavigationForCreate($navigationTransfer); |
48 | 48 | |
49 | - return $this->handleDatabaseTransaction(function () use ($navigationTransfer) { |
|
49 | + return $this->handleDatabaseTransaction(function() use ($navigationTransfer) { |
|
50 | 50 | return $this->executeCreateNavigationTransaction($navigationTransfer); |
51 | 51 | }); |
52 | 52 | } |