@@ -34,17 +34,17 @@ discard block |
||
34 | 34 | $keyMap = static::findKeys($input, $regexp); |
35 | 35 | |
36 | 36 | $notFoundKeys = []; |
37 | - foreach($keyMap as $key => &$path) { |
|
37 | + foreach ($keyMap as $key => &$path) { |
|
38 | 38 | try { |
39 | 39 | $path = $accessor->get($path); |
40 | - } catch(NestedAccessorException $e) { |
|
40 | + } catch (NestedAccessorException $e) { |
|
41 | 41 | $notFoundKeys[] = $path; |
42 | 42 | unset($keyMap[$key]); |
43 | 43 | } |
44 | 44 | } |
45 | 45 | unset($path); |
46 | 46 | |
47 | - if(!$silent && count($notFoundKeys)) { |
|
47 | + if (!$silent && count($notFoundKeys)) { |
|
48 | 48 | throw new StringFormatterException( |
49 | 49 | 'some keys not found in params array', |
50 | 50 | StringFormatterException::ERROR_KEYS_NOT_FOUND, |
@@ -83,7 +83,7 @@ discard block |
||
83 | 83 | { |
84 | 84 | preg_match_all($regexp, $input, $matches); |
85 | 85 | $result = array_combine($matches[0] ?? [], $matches[1] ?? []); |
86 | - if(!$result) { |
|
86 | + if (!$result) { |
|
87 | 87 | return []; |
88 | 88 | } |
89 | 89 | return $result; |