@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | protected function createGetFromModelClosure(): \Closure |
32 | 32 | { |
33 | - return function ($getter, $propVal) { |
|
33 | + return function($getter, $propVal) { |
|
34 | 34 | $val = null; |
35 | 35 | |
36 | 36 | if ($getter !== null) { |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | |
48 | 48 | protected function createFillModelClosure(): \Closure |
49 | 49 | { |
50 | - return function ($setter, $val, $modelName) { |
|
50 | + return function($setter, $val, $modelName) { |
|
51 | 51 | $setter |
52 | 52 | ? call_user_func([$this, $setter], $val) |
53 | 53 | : $this->{$modelName} = $val; |
@@ -21,7 +21,7 @@ discard block |
||
21 | 21 | return array_key_exists($name, $this->map) ? $this->map[$name] : $default; |
22 | 22 | } |
23 | 23 | |
24 | - public function getProp(string $default = null): ?string |
|
24 | + public function getProp(string $default = null): ? string |
|
25 | 25 | { |
26 | 26 | return $this->getKey('prop', $default); |
27 | 27 | } |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | return $this->getKey('get'); |
37 | 37 | } |
38 | 38 | |
39 | - public function getType(): ?string |
|
39 | + public function getType(): ? string |
|
40 | 40 | { |
41 | 41 | return $this->getKey('type'); |
42 | 42 | } |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | } |
35 | 35 | |
36 | 36 | $dir = $this->mapsDirs[$name]; |
37 | - $map = $this->getByPath($dir . '/' . $type . '.yml'); |
|
37 | + $map = $this->getByPath($dir.'/'.$type.'.yml'); |
|
38 | 38 | |
39 | 39 | $this->setCache($name, $type, $map); |
40 | 40 | return $map; |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $this->cache[$name][$type] = $map; |
46 | 46 | } |
47 | 47 | |
48 | - protected function tryCache(string $name, string $type): ?array |
|
48 | + protected function tryCache(string $name, string $type): ? array |
|
49 | 49 | { |
50 | 50 | if (isset($this->cache[$name], $this->cache[$name][$type])) { |
51 | 51 | return $this->cache[$name][$type]; |
@@ -56,6 +56,6 @@ discard block |
||
56 | 56 | |
57 | 57 | protected function getByPath(string $path): array |
58 | 58 | { |
59 | - return (array)$this->yamlParser->parse(file_get_contents($path)); |
|
59 | + return (array) $this->yamlParser->parse(file_get_contents($path)); |
|
60 | 60 | } |
61 | 61 | } |