@@ -24,24 +24,24 @@ |
||
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) { |
@@ -58,7 +58,7 @@ |
||
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 | )); |
@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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 |
||
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); |
@@ -89,7 +89,7 @@ |
||
89 | 89 | $pathUtils = $this->pathUtils; |
90 | 90 | |
91 | 91 | $sourcePaths = array_map( |
92 | - function ($path) use ($installPath, $pathUtils) { |
|
92 | + function($path) use ($installPath, $pathUtils) { |
|
93 | 93 | return $pathUtils->composePath($installPath, $path); |
94 | 94 | }, |
95 | 95 | $autoloadConfig[ConfigKeys::PSR4_CONFIG] |
@@ -74,7 +74,7 @@ |
||
74 | 74 | $pathUtils = $this->pathUtils; |
75 | 75 | |
76 | 76 | return array_filter( |
77 | - array_map(function ($config) use ($installPath, $dataUtils, $pathUtils) { |
|
77 | + array_map(function($config) use ($installPath, $dataUtils, $pathUtils) { |
|
78 | 78 | $path = is_array($config) ? $dataUtils->extractValue($config, 'path') : $config; |
79 | 79 | |
80 | 80 | if (!$path) { |