Passed
Push — master ( daf266...f6acdd )
by Smoren
11:44
created
src/StringFormatter.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,17 +34,17 @@  discard block
 block discarded – undo
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(PathNotExistException $e) {
40
+            } catch (PathNotExistException $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
 block discarded – undo
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;
Please login to merge, or discard this patch.