@@ -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 | } |