Passed
Branch master (d39919)
by Allan
03:04 queued 01:07
created
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.
src/Resolvers/ChangelogTemplateResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
 
40 40
         $templateGroups = array_combine(
41 41
             $outputFormats,
42
-            array_map(function ($type) use ($pluginRoot) {
42
+            array_map(function($type) use ($pluginRoot) {
43 43
                 return array(
44 44
                     'root' => array($pluginRoot, 'views', $type, 'changelog.mustache'),
45 45
                     'release' => array($pluginRoot, 'views', $type, 'release.mustache')
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             }
77 77
 
78 78
             $templateGroups[$type] = array_map(
79
-                function ($templatePath) use ($installPath) {
79
+                function($templatePath) use ($installPath) {
80 80
                     return array($installPath, $templatePath);
81 81
                 },
82 82
                 $outputConfig['template']
@@ -88,8 +88,8 @@  discard block
 block discarded – undo
88 88
 
89 89
     private function assembleGroupedFilePaths(array $groups)
90 90
     {
91
-        return array_map(function (array $group) {
92
-            return array_map(function (array $segments) {
91
+        return array_map(function(array $group) {
92
+            return array_map(function(array $segments) {
93 93
                 return implode(DIRECTORY_SEPARATOR, $segments);
94 94
             }, $group);
95 95
         }, $groups);
Please login to merge, or discard this patch.
src/Resolvers/PackageInfoResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@
 block discarded – undo
80 80
         $installPath = $this->getInstallPath($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]
Please login to merge, or discard this patch.
src/Resolvers/ChangelogConfigResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         $installPath = $this->packageInfoResolver->getInstallPath($package);
66 66
 
67 67
         return array_filter(
68
-            array_map(function ($config) use ($installPath) {
68
+            array_map(function($config) use ($installPath) {
69 69
                 $path = is_array($config) ? (isset($config['path']) ? $config['path'] : '') : $config;
70 70
 
71 71
                 if (!$path) {
Please login to merge, or discard this patch.