@@ -70,7 +70,7 @@ discard block |
||
| 70 | 70 | foreach ($this->children as $i => $child) { |
| 71 | 71 | |
| 72 | 72 | // Do not render offline relations |
| 73 | - if($child->relation->isOffline()) continue; |
|
| 73 | + if ($child->relation->isOffline()) continue; |
|
| 74 | 74 | |
| 75 | 75 | if ($child instanceof StoredSetReference) { |
| 76 | 76 | $this->addSetToCollection($i, $child->toSet($this->parent)); |
@@ -95,7 +95,7 @@ discard block |
||
| 95 | 95 | $this->addModelToCollection($i, $child); |
| 96 | 96 | } |
| 97 | 97 | |
| 98 | - return $this->sets->values()->map(function (ViewableContract $child) { |
|
| 98 | + return $this->sets->values()->map(function(ViewableContract $child) { |
|
| 99 | 99 | return ($this->withSnippets && method_exists($child, 'withSnippets')) |
| 100 | 100 | ? $child->withSnippets()->setViewParent($this->parent)->renderView() |
| 101 | 101 | : $child->setViewParent($this->parent)->renderView(); |
@@ -70,7 +70,9 @@ |
||
| 70 | 70 | foreach ($this->children as $i => $child) { |
| 71 | 71 | |
| 72 | 72 | // Do not render offline relations |
| 73 | - if($child->relation->isOffline()) continue; |
|
| 73 | + if($child->relation->isOffline()) { |
|
| 74 | + continue; |
|
| 75 | + } |
|
| 74 | 76 | |
| 75 | 77 | if ($child instanceof StoredSetReference) { |
| 76 | 78 | $this->addSetToCollection($i, $child->toSet($this->parent)); |
@@ -49,7 +49,7 @@ discard block |
||
| 49 | 49 | |
| 50 | 50 | $availableChildren = AvailableChildren::forParent($model); |
| 51 | 51 | |
| 52 | - $modules = $availableChildren->onlyModules()->reject(function ($module) use ($model) { |
|
| 52 | + $modules = $availableChildren->onlyModules()->reject(function($module) use ($model) { |
|
| 53 | 53 | return $module->owner_id != null && $module->owner_id != $model->id; |
| 54 | 54 | }); |
| 55 | 55 | |
@@ -58,7 +58,7 @@ discard block |
||
| 58 | 58 | $available_sets = FlatReferencePresenter::toGroupedSelectValues($availableChildren->onlySets())->toArray(); |
| 59 | 59 | |
| 60 | 60 | // Current sections |
| 61 | - $sections = $model->children()->map(function ($section, $index) use($model) { |
|
| 61 | + $sections = $model->children()->map(function($section, $index) use($model) { |
|
| 62 | 62 | if ($section instanceof TranslatableContract) { |
| 63 | 63 | $section->injectTranslationForForm(); |
| 64 | 64 | } |