@@ -105,7 +105,7 @@ discard block |
||
| 105 | 105 | * |
| 106 | 106 | * @api |
| 107 | 107 | * |
| 108 | - * @param \Generated\Shared\Transfer\CalculableObjectTransfer $CalculableObjectTransfer |
|
| 108 | + * @param \Generated\Shared\Transfer\CalculableObjectTransfer $calculableObjectTransfer |
|
| 109 | 109 | * |
| 110 | 110 | * @return void |
| 111 | 111 | */ |
@@ -121,7 +121,7 @@ discard block |
||
| 121 | 121 | * |
| 122 | 122 | * @api |
| 123 | 123 | * |
| 124 | - * @param \Generated\Shared\Transfer\CalculableObjectTransfer $CalculableObjectTransfer |
|
| 124 | + * @param \Generated\Shared\Transfer\CalculableObjectTransfer $calculableObjectTransfer |
|
| 125 | 125 | * |
| 126 | 126 | * @return void |
| 127 | 127 | */ |
@@ -153,7 +153,7 @@ discard block |
||
| 153 | 153 | * |
| 154 | 154 | * @api |
| 155 | 155 | * |
| 156 | - * @param \Generated\Shared\Transfer\CalculableObjectTransfer $CalculableObjectTransfer |
|
| 156 | + * @param \Generated\Shared\Transfer\CalculableObjectTransfer $calculableObjectTransfer |
|
| 157 | 157 | * |
| 158 | 158 | * @return void |
| 159 | 159 | */ |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * |
| 170 | 170 | * @api |
| 171 | 171 | * |
| 172 | - * @param \Generated\Shared\Transfer\CalculableObjectTransfer $CalculableObjectTransfer |
|
| 172 | + * @param \Generated\Shared\Transfer\CalculableObjectTransfer $calculableObjectTransfer |
|
| 173 | 173 | * |
| 174 | 174 | * @return void |
| 175 | 175 | */ |
@@ -217,7 +217,7 @@ discard block |
||
| 217 | 217 | * |
| 218 | 218 | * @api |
| 219 | 219 | * |
| 220 | - * @param \Generated\Shared\Transfer\CalculableObjectTransfer $CalculableObjectTransfer |
|
| 220 | + * @param \Generated\Shared\Transfer\CalculableObjectTransfer $calculableObjectTransfer |
|
| 221 | 221 | * |
| 222 | 222 | * @return void |
| 223 | 223 | */ |
@@ -192,8 +192,8 @@ |
||
| 192 | 192 | public function calculateExpenseTotal(CalculableObjectTransfer $calculableObjectTransfer) |
| 193 | 193 | { |
| 194 | 194 | $this->getFactory() |
| 195 | - ->createExpenseTotalCalculator() |
|
| 196 | - ->recalculate($calculableObjectTransfer); |
|
| 195 | + ->createExpenseTotalCalculator() |
|
| 196 | + ->recalculate($calculableObjectTransfer); |
|
| 197 | 197 | } |
| 198 | 198 | |
| 199 | 199 | /** |
@@ -139,7 +139,7 @@ |
||
| 139 | 139 | * |
| 140 | 140 | * @api |
| 141 | 141 | * |
| 142 | - * @param \ArrayObject|\Generated\Shared\Transfer\ItemTransfer[] $items |
|
| 142 | + * @param ArrayObject $items |
|
| 143 | 143 | * |
| 144 | 144 | * @return \Generated\Shared\Transfer\QuoteTransfer |
| 145 | 145 | */ |
@@ -408,7 +408,7 @@ |
||
| 408 | 408 | * |
| 409 | 409 | * @deprecated Will be removed with next major release |
| 410 | 410 | * |
| 411 | - * @return bool |
|
| 411 | + * @return string|false |
|
| 412 | 412 | */ |
| 413 | 413 | public function renderCategoryTreeVisual() |
| 414 | 414 | { |
@@ -216,7 +216,7 @@ |
||
| 216 | 216 | * @param int $idCategoryNode |
| 217 | 217 | * @param \Generated\Shared\Transfer\LocaleTransfer $localeTransfer |
| 218 | 218 | * |
| 219 | - * @return int |
|
| 219 | + * @return boolean |
|
| 220 | 220 | */ |
| 221 | 221 | protected function hasCategoryNodeUrl($idCategoryNode, LocaleTransfer $localeTransfer) |
| 222 | 222 | { |
@@ -189,7 +189,7 @@ |
||
| 189 | 189 | |
| 190 | 190 | /** |
| 191 | 191 | * @param \Generated\Shared\Transfer\CategoryTransfer $categoryTransfer |
| 192 | - * @param \Generated\Shared\Transfer\LocaleTransfer $localeTransfer |
|
| 192 | + * @param null|LocaleTransfer $localeTransfer |
|
| 193 | 193 | * @param \Orm\Zed\Category\Persistence\SpyCategoryAttribute $categoryAttributeEntity |
| 194 | 194 | * |
| 195 | 195 | * @return void |
@@ -55,7 +55,7 @@ |
||
| 55 | 55 | } |
| 56 | 56 | |
| 57 | 57 | /** |
| 58 | - * @return bool |
|
| 58 | + * @return string|false |
|
| 59 | 59 | */ |
| 60 | 60 | public function render() |
| 61 | 61 | { |
@@ -88,7 +88,7 @@ |
||
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /** |
| 91 | - * @param array $formPlugins |
|
| 91 | + * @param \Spryker\Zed\Category\Dependency\Plugin\CategoryFormPluginInterface[] $formPlugins |
|
| 92 | 92 | * |
| 93 | 93 | * @return void |
| 94 | 94 | */ |
@@ -110,7 +110,7 @@ discard block |
||
| 110 | 110 | new NotBlank(), |
| 111 | 111 | new Callback([ |
| 112 | 112 | 'methods' => [ |
| 113 | - function ($key, ExecutionContextInterface $context) use ($categoryQueryContainer) { |
|
| 113 | + function($key, ExecutionContextInterface $context) use ($categoryQueryContainer) { |
|
| 114 | 114 | $data = $context->getRoot()->getData(); |
| 115 | 115 | |
| 116 | 116 | $exists = false; |
@@ -220,10 +220,10 @@ discard block |
||
| 220 | 220 | ]); |
| 221 | 221 | |
| 222 | 222 | $builder->get(static::FIELD_EXTRA_PARENTS)->addModelTransformer(new CallbackTransformer( |
| 223 | - function ($extraParents) { |
|
| 223 | + function($extraParents) { |
|
| 224 | 224 | return (array)$extraParents; |
| 225 | 225 | }, |
| 226 | - function ($extraParents) { |
|
| 226 | + function($extraParents) { |
|
| 227 | 227 | return new ArrayObject($extraParents); |
| 228 | 228 | } |
| 229 | 229 | )); |
@@ -109,7 +109,7 @@ |
||
| 109 | 109 | /** |
| 110 | 110 | * @param string[] $methodsToMock |
| 111 | 111 | * |
| 112 | - * @return \PHPUnit_Framework_MockObject_MockObject|\Spryker\Zed\Category\Business\Model\CategoryToucher |
|
| 112 | + * @return CategoryToucher |
|
| 113 | 113 | */ |
| 114 | 114 | protected function createCategoryToucherMock(array $methodsToMock) |
| 115 | 115 | { |
@@ -52,10 +52,10 @@ discard block |
||
| 52 | 52 | ->expects($this->exactly(5)) |
| 53 | 53 | ->method('touchCategoryNodeActive') |
| 54 | 54 | ->withConsecutive( |
| 55 | - [$this->equalTo(static::CATEGORY_NODE_ID_NOTEBOOKS)], // Child |
|
| 55 | + [$this->equalTo(static::CATEGORY_NODE_ID_NOTEBOOKS)], // Child |
|
| 56 | 56 | [$this->equalTo(static::CATEGORY_NODE_ID_PC_WORKSTATIONS)], // Child |
| 57 | - [$this->equalTo(static::CATEGORY_NODE_ID_TABLETS)], // Child |
|
| 58 | - [$this->equalTo(static::CATEGORY_NODE_ID_ROOT)], // Root (Demoshop) |
|
| 57 | + [$this->equalTo(static::CATEGORY_NODE_ID_TABLETS)], // Child |
|
| 58 | + [$this->equalTo(static::CATEGORY_NODE_ID_ROOT)], // Root (Demoshop) |
|
| 59 | 59 | [$this->equalTo(static::CATEGORY_NODE_ID_COMPUTER)] // Self |
| 60 | 60 | ); |
| 61 | 61 | |
@@ -74,11 +74,11 @@ discard block |
||
| 74 | 74 | { |
| 75 | 75 | $touchedIds = []; |
| 76 | 76 | $expectedTouchedIds = [ |
| 77 | - static::CATEGORY_NODE_ID_CAMERAS_CAMCORDERS, // parent |
|
| 78 | - static::CATEGORY_NODE_ID_ROOT, // root |
|
| 79 | - static::CATEGORY_NODE_ID_TABLETS, // self |
|
| 80 | - static::CATEGORY_NODE_ID_ROOT, // root |
|
| 81 | - static::CATEGORY_NODE_ID_COMPUTER, // parent |
|
| 77 | + static::CATEGORY_NODE_ID_CAMERAS_CAMCORDERS, // parent |
|
| 78 | + static::CATEGORY_NODE_ID_ROOT, // root |
|
| 79 | + static::CATEGORY_NODE_ID_TABLETS, // self |
|
| 80 | + static::CATEGORY_NODE_ID_ROOT, // root |
|
| 81 | + static::CATEGORY_NODE_ID_COMPUTER, // parent |
|
| 82 | 82 | ]; |
| 83 | 83 | |
| 84 | 84 | $toucherMock = $this->createCategoryToucherMock(['touchCategoryNodeActive']); |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | ->expects($this->exactly(5)) |
| 87 | 87 | ->method('touchCategoryNodeActive') |
| 88 | 88 | ->will($this->returnCallback( |
| 89 | - function ($idTouched) use (&$touchedIds) { |
|
| 89 | + function($idTouched) use (&$touchedIds) { |
|
| 90 | 90 | $touchedIds[] = $idTouched; |
| 91 | 91 | } |
| 92 | 92 | )); |
@@ -155,7 +155,7 @@ discard block |
||
| 155 | 155 | } |
| 156 | 156 | |
| 157 | 157 | /** |
| 158 | - * @param array $tablesArray |
|
| 158 | + * @param string[] $tablesArray |
|
| 159 | 159 | * |
| 160 | 160 | * @return array |
| 161 | 161 | */ |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | } |
| 169 | 169 | |
| 170 | 170 | /** |
| 171 | - * @return array |
|
| 171 | + * @return string[] |
|
| 172 | 172 | */ |
| 173 | 173 | protected function getDefaultJoinedTables() |
| 174 | 174 | { |
@@ -179,7 +179,7 @@ discard block |
||
| 179 | 179 | } |
| 180 | 180 | |
| 181 | 181 | /** |
| 182 | - * @return array |
|
| 182 | + * @return string[] |
|
| 183 | 183 | */ |
| 184 | 184 | protected function getProductJoinedTables() |
| 185 | 185 | { |