@@ -39,7 +39,7 @@ |
||
39 | 39 | } |
40 | 40 | |
41 | 41 | /** |
42 | - * @return array |
|
42 | + * @return Twig_SimpleFunction[] |
|
43 | 43 | */ |
44 | 44 | public function getFunctions() |
45 | 45 | { |
@@ -64,7 +64,7 @@ |
||
64 | 64 | } |
65 | 65 | |
66 | 66 | /** |
67 | - * @param \Generated\Shared\Transfer\ProductLabelTransfer $productLabelTransfer |
|
67 | + * @param ProductLabelTransfer|null $productLabelTransfer |
|
68 | 68 | * |
69 | 69 | * @return \Symfony\Component\Form\FormInterface |
70 | 70 | */ |
@@ -92,7 +92,7 @@ |
||
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
95 | - * @param \Generated\Shared\Transfer\ProductLabelTransfer $productLabelTransfer |
|
95 | + * @param ProductLabelTransfer|null $productLabelTransfer |
|
96 | 96 | * |
97 | 97 | * @return void |
98 | 98 | */ |
@@ -27,8 +27,8 @@ |
||
27 | 27 | protected $relatedProductFormType; |
28 | 28 | |
29 | 29 | /** |
30 | - * @param \Symfony\Component\Form\FormTypeInterface $productLabelFormType |
|
31 | - * @param \Symfony\Component\Form\FormTypeInterface $relatedProductFormType |
|
30 | + * @param ProductLabelFormType $productLabelFormType |
|
31 | + * @param RelatedProductFormType $relatedProductFormType |
|
32 | 32 | */ |
33 | 33 | public function __construct( |
34 | 34 | FormTypeInterface $productLabelFormType, |
@@ -49,10 +49,10 @@ discard block |
||
49 | 49 | * @param \Spryker\Zed\ProductManagement\Dependency\Facade\ProductManagementToProductImageInterface $productImageFacade |
50 | 50 | * @param \Spryker\Zed\ProductManagement\Communication\Form\DataProvider\LocaleProvider $localeProvider |
51 | 51 | * @param \Generated\Shared\Transfer\LocaleTransfer $currentLocale |
52 | - * @param array $attributeCollection |
|
52 | + * @param \Generated\Shared\Transfer\ProductManagementAttributeTransfer[] $attributeCollection |
|
53 | 53 | * @param array $taxCollection |
54 | 54 | * @param string $imageUrlPrefix |
55 | - * @param \Spryker\Zed\ProductManagement\Dependency\Facade\ProductManagementToStoreInterface|null $store |
|
55 | + * @param ProductManagementToStoreInterface $store |
|
56 | 56 | * @param \Spryker\Zed\ProductManagement\Communication\Helper\ProductStockHelperInterface $productStockHelper |
57 | 57 | */ |
58 | 58 | public function __construct( |
@@ -170,7 +170,7 @@ discard block |
||
170 | 170 | |
171 | 171 | /** |
172 | 172 | * @param \Generated\Shared\Transfer\ProductAbstractTransfer $productAbstractTransfer |
173 | - * @param \Generated\Shared\Transfer\ProductConcreteTransfer $productTransfer |
|
173 | + * @param ProductConcreteTransfer|null $productTransfer |
|
174 | 174 | * @param array $formData |
175 | 175 | * |
176 | 176 | * @return array |
@@ -206,7 +206,7 @@ discard block |
||
206 | 206 | |
207 | 207 | /** |
208 | 208 | * @param \Generated\Shared\Transfer\ProductAbstractTransfer $productAbstractTransfer |
209 | - * @param \Generated\Shared\Transfer\ProductConcreteTransfer $productTransfer |
|
209 | + * @param ProductConcreteTransfer|null $productTransfer |
|
210 | 210 | * @param array $formData |
211 | 211 | * |
212 | 212 | * @return array |
@@ -254,7 +254,7 @@ discard block |
||
254 | 254 | } |
255 | 255 | |
256 | 256 | /** |
257 | - * @param \Generated\Shared\Transfer\ProductConcreteTransfer $productTransfer |
|
257 | + * @param ProductConcreteTransfer|null $productTransfer |
|
258 | 258 | * @param array $formData |
259 | 259 | * |
260 | 260 | * @return array |
@@ -320,7 +320,7 @@ discard block |
||
320 | 320 | |
321 | 321 | /** |
322 | 322 | * @param \Generated\Shared\Transfer\ProductAbstractTransfer $productAbstractTransfer |
323 | - * @param \Generated\Shared\Transfer\ProductConcreteTransfer $productTransfer |
|
323 | + * @param ProductConcreteTransfer|null $productTransfer |
|
324 | 324 | * @param array $formData |
325 | 325 | * |
326 | 326 | * @return array |
@@ -157,7 +157,7 @@ |
||
157 | 157 | } |
158 | 158 | |
159 | 159 | /** |
160 | - * @return array |
|
160 | + * @return string[] |
|
161 | 161 | */ |
162 | 162 | protected function getValidationGroups() |
163 | 163 | { |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $resolver->setDefaults([ |
149 | 149 | 'cascade_validation' => true, |
150 | 150 | 'required' => false, |
151 | - 'validation_groups' => function (FormInterface $form) use ($validationGroups) { |
|
151 | + 'validation_groups' => function(FormInterface $form) use ($validationGroups) { |
|
152 | 152 | return $validationGroups; |
153 | 153 | }, |
154 | 154 | 'compound' => true, |
@@ -300,7 +300,7 @@ discard block |
||
300 | 300 | ]), |
301 | 301 | new Callback([ |
302 | 302 | 'methods' => [ |
303 | - function ($sku, ExecutionContextInterface $context) { |
|
303 | + function($sku, ExecutionContextInterface $context) { |
|
304 | 304 | $form = $context->getRoot(); |
305 | 305 | $idProductAbstract = $form->get(ProductFormAdd::FIELD_ID_PRODUCT_ABSTRACT)->getData(); |
306 | 306 | $sku = $this->utilTextService->generateSlug($sku); |
@@ -405,7 +405,7 @@ discard block |
||
405 | 405 | 'label' => false, |
406 | 406 | 'constraints' => [new Callback([ |
407 | 407 | 'methods' => [ |
408 | - function ($dataToValidate, ExecutionContextInterface $context) { |
|
408 | + function($dataToValidate, ExecutionContextInterface $context) { |
|
409 | 409 | $selectedAttributes = array_filter(array_values($dataToValidate)); |
410 | 410 | if (empty($selectedAttributes) && !array_key_exists($context->getGroup(), GeneralForm::$errorFieldsDisplayed)) { |
411 | 411 | $context->addViolation('Please enter at least Sku and Name of the product in every locale under General', [$context->getGroup()]); |
@@ -443,7 +443,7 @@ discard block |
||
443 | 443 | 'label' => false, |
444 | 444 | 'constraints' => [new Callback([ |
445 | 445 | 'methods' => [ |
446 | - function ($attributes, ExecutionContextInterface $context) { |
|
446 | + function($attributes, ExecutionContextInterface $context) { |
|
447 | 447 | foreach ($attributes as $type => $valueSet) { |
448 | 448 | if ($valueSet[AttributeAbstractForm::FIELD_NAME] && empty($valueSet[AttributeAbstractForm::FIELD_VALUE])) { |
449 | 449 | $context->addViolation(sprintf( |
@@ -481,7 +481,7 @@ discard block |
||
481 | 481 | 'label' => false, |
482 | 482 | 'constraints' => [new Callback([ |
483 | 483 | 'methods' => [ |
484 | - function ($attributes, ExecutionContextInterface $context) { |
|
484 | + function($attributes, ExecutionContextInterface $context) { |
|
485 | 485 | foreach ($attributes as $type => $valueSet) { |
486 | 486 | if ($valueSet[AttributeSuperForm::FIELD_NAME] && empty($valueSet[AttributeSuperForm::FIELD_VALUE])) { |
487 | 487 | $context->addViolation(sprintf( |
@@ -512,7 +512,7 @@ discard block |
||
512 | 512 | 'label' => false, |
513 | 513 | 'constraints' => [new Callback([ |
514 | 514 | 'methods' => [ |
515 | - function ($dataToValidate, ExecutionContextInterface $context) { |
|
515 | + function($dataToValidate, ExecutionContextInterface $context) { |
|
516 | 516 | if ((int)$dataToValidate[PriceForm::FIELD_PRICE] < 0) { |
517 | 517 | $context->addViolation('Please enter Price information under Price & Taxes'); |
518 | 518 | } |
@@ -692,7 +692,7 @@ discard block |
||
692 | 692 | protected function createNewFromRangeConstraint() |
693 | 693 | { |
694 | 694 | return new Callback([ |
695 | - 'callback' => function ($newFrom, ExecutionContextInterface $context) { |
|
695 | + 'callback' => function($newFrom, ExecutionContextInterface $context) { |
|
696 | 696 | $formData = $context->getRoot()->getData(); |
697 | 697 | if (!$newFrom) { |
698 | 698 | return; |
@@ -718,7 +718,7 @@ discard block |
||
718 | 718 | protected function createNewToFieldRangeConstraint() |
719 | 719 | { |
720 | 720 | return new Callback([ |
721 | - 'callback' => function ($newTo, ExecutionContextInterface $context) { |
|
721 | + 'callback' => function($newTo, ExecutionContextInterface $context) { |
|
722 | 722 | $formData = $context->getRoot()->getData(); |
723 | 723 | if (!$newTo) { |
724 | 724 | return; |
@@ -739,13 +739,13 @@ discard block |
||
739 | 739 | protected function createDateTimeModelTransformer() |
740 | 740 | { |
741 | 741 | return new CallbackTransformer( |
742 | - function ($value) { |
|
742 | + function($value) { |
|
743 | 743 | if ($value !== null) { |
744 | 744 | $value = new DateTime($value); |
745 | 745 | } |
746 | 746 | return $value; |
747 | 747 | }, |
748 | - function ($value) { |
|
748 | + function($value) { |
|
749 | 749 | if ($value instanceof DateTime) { |
750 | 750 | $value = $value->format('Y-m-d H:i:s'); |
751 | 751 | } |
@@ -75,7 +75,7 @@ discard block |
||
75 | 75 | /** |
76 | 76 | * @param \Spryker\Zed\Gui\Communication\Table\TableConfiguration $config |
77 | 77 | * |
78 | - * @return mixed |
|
78 | + * @return TableConfiguration |
|
79 | 79 | */ |
80 | 80 | protected function configure(TableConfiguration $config) |
81 | 81 | { |
@@ -157,7 +157,7 @@ discard block |
||
157 | 157 | /** |
158 | 158 | * @param \Orm\Zed\Product\Persistence\SpyProductAbstract $item |
159 | 159 | * |
160 | - * @return array |
|
160 | + * @return string[] |
|
161 | 161 | */ |
162 | 162 | protected function createActionColumn(SpyProductAbstract $item) |
163 | 163 | { |
@@ -146,7 +146,7 @@ |
||
146 | 146 | } |
147 | 147 | |
148 | 148 | /** |
149 | - * @param \Generated\Shared\Transfer\ProductAbstractTransfer $productAbstractTransfer |
|
149 | + * @param ProductAbstractTransfer|null $productAbstractTransfer |
|
150 | 150 | * @param \Symfony\Component\Form\FormInterface $form |
151 | 151 | * @param int $idProduct |
152 | 152 | * |
@@ -46,7 +46,7 @@ |
||
46 | 46 | * @param int $idProductManagementAttribute |
47 | 47 | * @param int $idLocale |
48 | 48 | * |
49 | - * @return \Orm\Zed\ProductAttribute\Persistence\SpyProductManagementAttributeValueQuery |
|
49 | + * @return string |
|
50 | 50 | */ |
51 | 51 | public function queryProductManagementAttributeValueWithTranslation($idProductManagementAttribute, $idLocale) |
52 | 52 | { |