@@ -54,7 +54,7 @@ |
||
54 | 54 | |
55 | 55 | Example: |
56 | 56 | - code:npm --build-all will build the client resources for the core, the project zed and the project yves code |
57 | -EOM |
|
57 | +eom |
|
58 | 58 | ); |
59 | 59 | |
60 | 60 | $this->addOption( |
@@ -120,7 +120,7 @@ |
||
120 | 120 | $this->info('Run command: ' . $command); |
121 | 121 | $process = new Process($command, APPLICATION_ROOT_DIR); |
122 | 122 | $process->setTimeout(null); |
123 | - $process->run(function ($type, $buffer) { |
|
123 | + $process->run(function($type, $buffer) { |
|
124 | 124 | echo $buffer; |
125 | 125 | }); |
126 | 126 |
@@ -409,7 +409,7 @@ |
||
409 | 409 | } |
410 | 410 | |
411 | 411 | /** |
412 | - * @param array $entityCollection |
|
412 | + * @param \Orm\Zed\Touch\Persistence\SpyTouch[] $entityCollection |
|
413 | 413 | * @param string $touchKeyColumnName |
414 | 414 | * @param \Spryker\Zed\Collector\Business\Exporter\Writer\Storage\TouchUpdaterSet $touchUpdaterSet |
415 | 415 | * |
@@ -561,7 +561,7 @@ |
||
561 | 561 | } |
562 | 562 | |
563 | 563 | /** |
564 | - * @param array $eventMap |
|
564 | + * @param EventInterface[] $eventMap |
|
565 | 565 | * @param string $sourceName |
566 | 566 | * @param string $eventName |
567 | 567 | * |
@@ -132,7 +132,7 @@ |
||
132 | 132 | $processFile = $this->getAttributeString($xmlProcess, self::PROCESS_FILE_ATTRIBUTE); |
133 | 133 | |
134 | 134 | if ($processFile === null) { |
135 | - continue; |
|
135 | + continue; |
|
136 | 136 | } |
137 | 137 | |
138 | 138 | $processName = $this->getAttributeString($xmlProcess, 'name'); |
@@ -26,9 +26,9 @@ |
||
26 | 26 | public function saveOrderPayment(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponseTransfer) |
27 | 27 | { |
28 | 28 | $this |
29 | - ->getFactory() |
|
30 | - ->createOrderSaver() |
|
31 | - ->saveOrderPayment($quoteTransfer, $checkoutResponseTransfer); |
|
29 | + ->getFactory() |
|
30 | + ->createOrderSaver() |
|
31 | + ->saveOrderPayment($quoteTransfer, $checkoutResponseTransfer); |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | /** |
@@ -33,8 +33,8 @@ |
||
33 | 33 | public function saveOrderPayment(QuoteTransfer $quoteTransfer, CheckoutResponseTransfer $checkoutResponseTransfer) |
34 | 34 | { |
35 | 35 | $this->getFactory() |
36 | - ->createOrderSaver($quoteTransfer, $checkoutResponseTransfer) |
|
37 | - ->saveOrderPayment(); |
|
36 | + ->createOrderSaver($quoteTransfer, $checkoutResponseTransfer) |
|
37 | + ->saveOrderPayment(); |
|
38 | 38 | } |
39 | 39 | |
40 | 40 | /** |
@@ -106,7 +106,7 @@ |
||
106 | 106 | |
107 | 107 | $streamedResponse = new StreamedResponse(); |
108 | 108 | |
109 | - $streamedResponse->setCallback(function () use ($generatedVouchers) { |
|
109 | + $streamedResponse->setCallback(function() use ($generatedVouchers) { |
|
110 | 110 | $csvHandle = fopen('php://output', 'w+'); |
111 | 111 | fputcsv($csvHandle, ['Voucher Code']); |
112 | 112 |
@@ -45,7 +45,7 @@ |
||
45 | 45 | return array_uintersect( |
46 | 46 | $lefCollectedItems, |
47 | 47 | $rightCollectedItems, |
48 | - function (DiscountableItemTransfer $collected, DiscountableItemTransfer $toCollect) { |
|
48 | + function(DiscountableItemTransfer $collected, DiscountableItemTransfer $toCollect) { |
|
49 | 49 | return strcmp(spl_object_hash($collected->getOriginalItemCalculatedDiscounts()), spl_object_hash($toCollect->getOriginalItemCalculatedDiscounts())); |
50 | 50 | } |
51 | 51 | ); |
@@ -158,10 +158,10 @@ |
||
158 | 158 | protected function addBoolModelTransformer(FormBuilderInterface $builder, $fieldName) |
159 | 159 | { |
160 | 160 | $builder->get($fieldName)->addModelTransformer(new CallbackTransformer( |
161 | - function ($originalValue) { |
|
161 | + function($originalValue) { |
|
162 | 162 | return $originalValue ? 'yes' : 'no'; |
163 | 163 | }, |
164 | - function ($submittedValue) { |
|
164 | + function($submittedValue) { |
|
165 | 165 | return $submittedValue === 'yes' ? true : false; |
166 | 166 | } |
167 | 167 | )); |
@@ -29,7 +29,7 @@ |
||
29 | 29 | /** |
30 | 30 | * @param string $modelType |
31 | 31 | * |
32 | - * @return \Spryker\Zed\Ratepay\Business\Api\Model\RequestInterface |
|
32 | + * @return callable |
|
33 | 33 | */ |
34 | 34 | public function build($modelType) |
35 | 35 | { |