Passed
Branch master (d8a10a)
by Allan
04:15 queued 02:26
created
src/Utils/PathUtils.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 {
10 10
     public function composePath()
11 11
     {
12
-        $pathSegments = array_map(function ($item) {
12
+        $pathSegments = array_map(function($item) {
13 13
             return rtrim($item, DIRECTORY_SEPARATOR);
14 14
         }, func_get_args());
15 15
 
Please login to merge, or discard this patch.
src/Resolvers/ChangelogConfigResolver.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         $installPath = $this->packageInfoResolver->getSourcePath($package);
65 65
 
66 66
         return array_filter(
67
-            array_map(function ($config) use ($installPath) {
67
+            array_map(function($config) use ($installPath) {
68 68
                 $path = is_array($config) ? (isset($config['path']) ? $config['path'] : '') : $config;
69 69
 
70 70
                 if (!$path) {
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
 
85 85
         $templateGroups = array_combine(
86 86
             $types,
87
-            array_map(function ($type) use ($pluginRoot) {
87
+            array_map(function($type) use ($pluginRoot) {
88 88
                 return array(
89 89
                     'root' => array($pluginRoot, 'views', $type, 'changelog.mustache'),
90 90
                     'release' => array($pluginRoot, 'views', $type, 'release.mustache')
@@ -128,7 +128,7 @@  discard block
 block discarded – undo
128 128
             }
129 129
 
130 130
             $templateGroups[$type] = array_map(
131
-                function ($templatePath) use ($installPath) {
131
+                function($templatePath) use ($installPath) {
132 132
                     return array($installPath, $templatePath);
133 133
                 },
134 134
                 $outputConfig['template']
@@ -140,8 +140,8 @@  discard block
 block discarded – undo
140 140
 
141 141
     private function assembleGroupedFilePaths(array $groups)
142 142
     {
143
-        return array_map(function (array $group) {
144
-            return array_map(function (array $segments) {
143
+        return array_map(function(array $group) {
144
+            return array_map(function(array $segments) {
145 145
                 return implode(DIRECTORY_SEPARATOR, $segments);
146 146
             }, $group);
147 147
         }, $groups);
Please login to merge, or discard this patch.
src/Generators/TemplateOutputGenerator.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,24 +24,24 @@
 block discarded – undo
24 24
         $options = array(
25 25
             'loader' => new \Mustache_Loader_FilesystemLoader(DIRECTORY_SEPARATOR),
26 26
             'partials_loader' => new TemplateLoader(
27
-                function ($name) use ($templatePaths) {
27
+                function($name) use ($templatePaths) {
28 28
                     return $templatePaths[$name];
29 29
                 }
30 30
             ),
31 31
             'strict_callables' => true,
32 32
             'helpers' => array(
33
-                'line' => function ($template, $renderer) {
33
+                'line' => function($template, $renderer) {
34 34
                     $character = substr($template, -1);
35 35
                     
36 36
                     $content = $renderer(substr($template, 0, -1));
37 37
                     
38 38
                     return str_pad('', strlen($content), $character);
39 39
                 },
40
-                'title' => function ($text) {
40
+                'title' => function($text) {
41 41
                     return strtoupper($text);
42 42
                 }
43 43
             ),
44
-            'escape' => function ($value) use ($escapedValues) {
44
+            'escape' => function($value) use ($escapedValues) {
45 45
                 foreach ($escapedValues as $pattern => $replacement) {
46 46
                     if ($pattern === '*') {
47 47
                         foreach ($replacement as $replacer) {
Please login to merge, or discard this patch.
src/Resolvers/ReleaseDetailsResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
 
59 59
         $reducedLines = explode(PHP_EOL, implode(
60 60
             ' ',
61
-            array_map(function ($line) {
61
+            array_map(function($line) {
62 62
                 return !trim($line) ? PHP_EOL . PHP_EOL : $line;
63 63
             }, $overviewLines)
64 64
         ));
Please login to merge, or discard this patch.