@@ -109,18 +109,18 @@ |
||
109 | 109 | public function populateFromSibling($sibling) |
110 | 110 | { |
111 | 111 | foreach ([ |
112 | - 'role', |
|
113 | - 'label', |
|
114 | - 'label_intern', |
|
115 | - 'help', |
|
116 | - 'options', |
|
117 | - 'type', |
|
118 | - 'listing', |
|
119 | - 'visible', |
|
120 | - 'mandatory', |
|
121 | - 'filter', |
|
122 | - 'pos', |
|
123 | - ] as $col) { |
|
112 | + 'role', |
|
113 | + 'label', |
|
114 | + 'label_intern', |
|
115 | + 'help', |
|
116 | + 'options', |
|
117 | + 'type', |
|
118 | + 'listing', |
|
119 | + 'visible', |
|
120 | + 'mandatory', |
|
121 | + 'filter', |
|
122 | + 'pos', |
|
123 | + ] as $col) { |
|
124 | 124 | $this->setPropertyValue($col, $sibling->getPropertyRaw($col)); |
125 | 125 | } |
126 | 126 | $this->initOptions(); |
@@ -9,7 +9,7 @@ |
||
9 | 9 | { |
10 | 10 | protected $list; |
11 | 11 | |
12 | - public static function for(FormValuesConsumerList $list) |
|
12 | + public static function for (FormValuesConsumerList $list) |
|
13 | 13 | { |
14 | 14 | $action = new static(); |
15 | 15 | $action->list = $list; |
@@ -20,7 +20,7 @@ discard block |
||
20 | 20 | $this->list = new FormValuesConsumerList($form, $consumer); |
21 | 21 | } |
22 | 22 | |
23 | - public static function for($form, $consumer) |
|
23 | + public static function for ($form, $consumer) |
|
24 | 24 | { |
25 | 25 | return new static($form, $consumer); |
26 | 26 | } |
@@ -50,9 +50,9 @@ discard block |
||
50 | 50 | |
51 | 51 | return [ |
52 | 52 | 'where' => [ |
53 | - ['id_form = ?', $this->list->getForm()->id,], |
|
54 | - ['consumer = ?', $consumer->getManager()->getMorphName(),], |
|
55 | - ['consumer_id = ?', $consumer->id,], |
|
53 | + ['id_form = ?', $this->list->getForm()->id, ], |
|
54 | + ['consumer = ?', $consumer->getManager()->getMorphName(), ], |
|
55 | + ['consumer_id = ?', $consumer->id, ], |
|
56 | 56 | ], |
57 | 57 | ]; |
58 | 58 | } |
@@ -40,7 +40,7 @@ |
||
40 | 40 | |
41 | 41 | public function bootFormTrait() |
42 | 42 | { |
43 | - $this->addCast('metadata', AsMetadataObject::class.':json'); |
|
43 | + $this->addCast('metadata', AsMetadataObject::class . ':json'); |
|
44 | 44 | } |
45 | 45 | |
46 | 46 | public function setConsumerClass($consumerClass) |