@@ 149-151 (lines=3) @@ | ||
146 | public function mask(array $mask) |
|
147 | { |
|
148 | $keys = []; |
|
149 | foreach ($mask as $key => $value) { |
|
150 | $keys[] = $key . (is_array($value) ? $this->processMask($value) : ''); |
|
151 | } |
|
152 | ||
153 | return $this->only($keys); |
|
154 | } |
|
@@ 165-167 (lines=3) @@ | ||
162 | */ |
|
163 | private function processMask($mask) |
|
164 | { |
|
165 | foreach ($mask as $key => $value) { |
|
166 | return '.' . $key . (is_array($value) ? $this->processMask($value) : ''); |
|
167 | } |
|
168 | } |
|
169 | ||
170 | /** |