@@ -68,7 +68,7 @@ |
||
| 68 | 68 | |
| 69 | 69 | public function postSave(&$wrapper) |
| 70 | 70 | { |
| 71 | - foreach($this->tempData as $relatedRecord) { |
|
| 71 | + foreach ($this->tempData as $relatedRecord) { |
|
| 72 | 72 | $relatedRecord[$this->options['foreign_key']] = $wrapper[$this->options['local_key']]; |
| 73 | 73 | if (!$relatedRecord->save()) { |
| 74 | 74 | var_dump($relatedRecord->getInvalidFields()); |
@@ -211,7 +211,7 @@ discard block |
||
| 211 | 211 | $this->initialize(); |
| 212 | 212 | |
| 213 | 213 | return $this->context->getCache()->read( |
| 214 | - "{$this->className}::desc", function () { |
|
| 214 | + "{$this->className}::desc", function() { |
|
| 215 | 215 | return $this->context->getModelDescription($this); |
| 216 | 216 | } |
| 217 | 217 | ); |
@@ -443,7 +443,7 @@ discard block |
||
| 443 | 443 | { |
| 444 | 444 | $data = $index ? $this->modelData[$index] : $this->modelData; |
| 445 | 445 | $name = $relationship->getOptions()['name']; |
| 446 | - if(isset($data[$name])) |
|
| 446 | + if (isset($data[$name])) |
|
| 447 | 447 | { |
| 448 | 448 | return $data[$name]; |
| 449 | 449 | } |