@@ -101,7 +101,7 @@ discard block |
||
| 101 | 101 | $settings['relation'] = []; |
| 102 | 102 | } |
| 103 | 103 | if (!isset($settings['method'])) { |
| 104 | - $settings['method'] = 'include'.StrHelper::studlyCase($includeKey); |
|
| 104 | + $settings['method'] = 'include' . StrHelper::studlyCase($includeKey); |
|
| 105 | 105 | } |
| 106 | 106 | if (!isset($settings['default'])) { |
| 107 | 107 | $settings['default'] = false; |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function getDefaultIncludes(): array |
| 122 | 122 | { |
| 123 | - return array_values(array_filter(array_keys($this->getCachedIncludeMap()), function ($includeKey) { |
|
| 123 | + return array_values(array_filter(array_keys($this->getCachedIncludeMap()), function($includeKey) { |
|
| 124 | 124 | return $this->getCachedIncludeMap()[$includeKey]['default']; |
| 125 | 125 | })); |
| 126 | 126 | } |
@@ -133,7 +133,7 @@ discard block |
||
| 133 | 133 | public function getRelationships(): array |
| 134 | 134 | { |
| 135 | 135 | return array_column( |
| 136 | - array_filter(array_map(function ($includeKey, $settings) { |
|
| 136 | + array_filter(array_map(function($includeKey, $settings) { |
|
| 137 | 137 | return $settings['relation'] ? [$includeKey, $settings['relation']] : null; |
| 138 | 138 | }, array_keys($this->getCachedIncludeMap()), array_values($this->getCachedIncludeMap()))), |
| 139 | 139 | 1, 0 |