@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | |
| 32 | 32 | public static function forForm($form) |
| 33 | 33 | { |
| 34 | - $consumer = GetConsumerForForm::for($form)->handle(); |
|
| 34 | + $consumer = GetConsumerForForm::for ($form)->handle(); |
|
| 35 | 35 | |
| 36 | 36 | return self::forConsumer($consumer); |
| 37 | 37 | } |
@@ -65,7 +65,7 @@ discard block |
||
| 65 | 65 | $action = new static(); |
| 66 | 66 | $action->setConsumer($consumer); |
| 67 | 67 | $action->setConsumerConfig($consumerConfig); |
| 68 | - $action->setConsumerGenerateCallback(function () use ($consumer) { |
|
| 68 | + $action->setConsumerGenerateCallback(function() use ($consumer) { |
|
| 69 | 69 | return GetConsumerConfig::forConsumer($consumer)->handle(); |
| 70 | 70 | }); |
| 71 | 71 | |
@@ -31,7 +31,9 @@ |
||
| 31 | 31 | |
| 32 | 32 | public static function forForm($form) |
| 33 | 33 | { |
| 34 | - $consumer = GetConsumerForForm::for($form)->handle(); |
|
| 34 | + $consumer = GetConsumerForForm::for($form) { |
|
| 35 | + ->handle(); |
|
| 36 | + } |
|
| 35 | 37 | |
| 36 | 38 | return self::forConsumer($consumer); |
| 37 | 39 | } |
@@ -118,6 +118,6 @@ |
||
| 118 | 118 | */ |
| 119 | 119 | public function getFormName() |
| 120 | 120 | { |
| 121 | - return $this->getName().'-'.sha1($this->getItem()->id ?? ''); |
|
| 121 | + return $this->getName() . '-' . sha1($this->getItem()->id ?? ''); |
|
| 122 | 122 | } |
| 123 | 123 | } |
@@ -35,11 +35,11 @@ |
||
| 35 | 35 | { |
| 36 | 36 | $action = new static($fieldList); |
| 37 | 37 | $action->setForm($form); |
| 38 | - $action->setConsumerGenerateCallback(function () use ($form) { |
|
| 39 | - return GetConsumerForForm::for($form)->handle(); |
|
| 38 | + $action->setConsumerGenerateCallback(function() use ($form) { |
|
| 39 | + return GetConsumerForForm::for ($form)->handle(); |
|
| 40 | 40 | }); |
| 41 | 41 | |
| 42 | - $action->setConsumerConfigGenerateCallback(function () use ($action) { |
|
| 42 | + $action->setConsumerConfigGenerateCallback(function() use ($action) { |
|
| 43 | 43 | return GetConsumerConfig::forConsumer($action->getConsumer())->handle(); |
| 44 | 44 | }); |
| 45 | 45 | |
@@ -36,7 +36,9 @@ |
||
| 36 | 36 | $action = new static($fieldList); |
| 37 | 37 | $action->setForm($form); |
| 38 | 38 | $action->setConsumerGenerateCallback(function () use ($form) { |
| 39 | - return GetConsumerForForm::for($form)->handle(); |
|
| 39 | + return GetConsumerForForm::for($form) { |
|
| 40 | + ->handle(); |
|
| 41 | + } |
|
| 40 | 42 | }); |
| 41 | 43 | |
| 42 | 44 | $action->setConsumerConfigGenerateCallback(function () use ($action) { |