@@ -59,7 +59,7 @@ discard block  | 
                                                    ||
| 59 | 59 | |
| 60 | 60 | $matches = array_reduce($matchesGroups, 'array_merge', array());  | 
                                                        
| 61 | 61 | |
| 62 | -        $exactMatches = array_filter($matches, function (array $match) use ($query) { | 
                                                        |
| 62 | +        $exactMatches = array_filter($matches, function(array $match) use ($query) { | 
                                                        |
| 63 | 63 | return $match['name'] === $query;  | 
                                                        
| 64 | 64 | });  | 
                                                        
| 65 | 65 | |
@@ -72,7 +72,7 @@ discard block  | 
                                                    ||
| 72 | 72 |                  sprintf('Multiple packages found for query %s:', $query) | 
                                                        
| 73 | 73 | );  | 
                                                        
| 74 | 74 | |
| 75 | -            $exception->setExtraInfo(array_map(function ($match) { | 
                                                        |
| 75 | +            $exception->setExtraInfo(array_map(function($match) { | 
                                                        |
| 76 | 76 | return $match['name'];  | 
                                                        
| 77 | 77 | }, $matches));  | 
                                                        
| 78 | 78 | |
@@ -49,7 +49,7 @@  | 
                                                    ||
| 49 | 49 | |
| 50 | 50 | $groups = $dataUtils->walkArrayNodes(  | 
                                                        
| 51 | 51 | $changelogData,  | 
                                                        
| 52 | -                function (array $value) use ($dataUtils) { | 
                                                        |
| 52 | +                function(array $value) use ($dataUtils) { | 
                                                        |
| 53 | 53 | return $dataUtils->removeKeysByPrefix($value, '_');  | 
                                                        
| 54 | 54 | }  | 
                                                        
| 55 | 55 | );  | 
                                                        
@@ -77,7 +77,7 @@  | 
                                                    ||
| 77 | 77 | |
| 78 | 78 | private function formatMessages(array $messages, $format)  | 
                                                        
| 79 | 79 |      { | 
                                                        
| 80 | -        return array_map(function ($message) use ($format) { | 
                                                        |
| 80 | +        return array_map(function($message) use ($format) { | 
                                                        |
| 81 | 81 | return sprintf($format, $message);  | 
                                                        
| 82 | 82 | }, $messages);  | 
                                                        
| 83 | 83 | }  | 
                                                        
@@ -28,7 +28,7 @@  | 
                                                    ||
| 28 | 28 |      { | 
                                                        
| 29 | 29 | return (bool)array_filter(  | 
                                                        
| 30 | 30 | $this->namespacesExtractor->getConfig($package),  | 
                                                        
| 31 | -            function ($item) use ($namespace) { | 
                                                        |
| 31 | +            function($item) use ($namespace) { | 
                                                        |
| 32 | 32 | return strpos($namespace, rtrim($item, '\\')) === 0;  | 
                                                        
| 33 | 33 | }  | 
                                                        
| 34 | 34 | );  | 
                                                        
@@ -90,7 +90,7 @@  | 
                                                    ||
| 90 | 90 | $messages[] = $exception->getMessage();  | 
                                                        
| 91 | 91 | } while ($exception = $exception->getPrevious());  | 
                                                        
| 92 | 92 | |
| 93 | -                $messages = array_map(function ($message, $index) { | 
                                                        |
| 93 | +                $messages = array_map(function($message, $index) { | 
                                                        |
| 94 | 94 |                      return sprintf('#%s - %s', $index + 1, $message); | 
                                                        
| 95 | 95 | }, $messages, array_keys($messages));  | 
                                                        
| 96 | 96 | |
@@ -14,7 +14,7 @@  | 
                                                    ||
| 14 | 14 | array_flip(  | 
                                                        
| 15 | 15 | array_filter(  | 
                                                        
| 16 | 16 | array_keys($data),  | 
                                                        
| 17 | -                    function ($key) use ($prefix) { | 
                                                        |
| 17 | +                    function($key) use ($prefix) { | 
                                                        |
| 18 | 18 | return strpos($key, $prefix) !== 0;  | 
                                                        
| 19 | 19 | }  | 
                                                        
| 20 | 20 | )  | 
                                                        
@@ -80,7 +80,7 @@  | 
                                                    ||
| 80 | 80 | $installPath = $this->getSourcePath($package);  | 
                                                        
| 81 | 81 | |
| 82 | 82 | $sourcePaths = array_map(  | 
                                                        
| 83 | -            function ($path) use ($installPath) { | 
                                                        |
| 83 | +            function($path) use ($installPath) { | 
                                                        |
| 84 | 84 | return $installPath . DIRECTORY_SEPARATOR . $path;  | 
                                                        
| 85 | 85 | },  | 
                                                        
| 86 | 86 | $autoloadConfig[ConfigKeys::PSR4_CONFIG]  | 
                                                        
@@ -15,7 +15,7 @@  | 
                                                    ||
| 15 | 15 | $messages[] = $exception->getMessage();  | 
                                                        
| 16 | 16 | } while ($exception = $exception->getPrevious());  | 
                                                        
| 17 | 17 | |
| 18 | -        array_walk($messages, function (&$message, $index) { | 
                                                        |
| 18 | +        array_walk($messages, function(&$message, $index) { | 
                                                        |
| 19 | 19 |              $message = sprintf('#%s %s', $index, $message); | 
                                                        
| 20 | 20 | });  | 
                                                        
| 21 | 21 | |
@@ -129,7 +129,7 @@  | 
                                                    ||
| 129 | 129 | $groups = $detailsResolver->resolveChangeGroups($details);  | 
                                                        
| 130 | 130 | |
| 131 | 131 |          if ($briefMode) { | 
                                                        
| 132 | -            $summary = array_map(function ($key, $group) { | 
                                                        |
| 132 | +            $summary = array_map(function($key, $group) { | 
                                                        |
| 133 | 133 |                  return sprintf('%s (%s)', $key, count($group)); | 
                                                        
| 134 | 134 | }, array_keys($groups), $groups);  | 
                                                        
| 135 | 135 | |