aboutsummaryrefslogtreecommitdiffstats
path: root/build/license.php
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:53:40 +0200
committerChristoph Wurst <christoph@winzerhof-wurst.at>2020-04-09 13:54:22 +0200
commitafbd9c4e6ed834e713039f2cff88ba3eec03dadb (patch)
tree7d8721cf8fc0329d6b750db63798de67a162b090 /build/license.php
parent19e97e86c69ab128191439d6a17dacb5a630cf98 (diff)
downloadnextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.tar.gz
nextcloud-server-afbd9c4e6ed834e713039f2cff88ba3eec03dadb.zip
Unify function spacing to PSR2 recommendation
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'build/license.php')
-rw-r--r--build/license.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/license.php b/build/license.php
index 9a22e915ce2..717ff13c75f 100644
--- a/build/license.php
+++ b/build/license.php
@@ -98,12 +98,12 @@ EOD;
return;
}
- $excludes = array_map(function($item) use ($folder) {
+ $excludes = array_map(function ($item) use ($folder) {
return $folder . '/' . $item;
}, ['vendor', '3rdparty', '.git', 'l10n', 'templates', 'composer']);
$iterator = new RecursiveDirectoryIterator($folder, RecursiveDirectoryIterator::SKIP_DOTS);
- $iterator = new RecursiveCallbackFilterIterator($iterator, function($item) use ($folder, $excludes){
+ $iterator = new RecursiveCallbackFilterIterator($iterator, function ($item) use ($folder, $excludes) {
/** @var SplFileInfo $item */
foreach($excludes as $exclude) {
if (substr($item->getPath(), 0, strlen($exclude)) === $exclude) {
@@ -134,7 +134,7 @@ With help from many libraries and frameworks including:
jQuery
";
- $authors = implode(PHP_EOL, array_map(function($author){
+ $authors = implode(PHP_EOL, array_map(function ($author) {
return " - ".$author;
}, $this->authors));
$template = str_replace('@AUTHORS@', $authors, $template);
@@ -328,7 +328,7 @@ With help from many libraries and frameworks including:
}
$authors = explode(PHP_EOL, $out);
- $authors = array_filter($authors, function($author) {
+ $authors = array_filter($authors, function ($author) {
return !in_array($author, [
'',
'Not Committed Yet <not.committed.yet>',
@@ -342,7 +342,7 @@ With help from many libraries and frameworks including:
$authors = array_unique($authors);
}
- $authors = array_map(function($author){
+ $authors = array_map(function ($author) {
$author = $this->fixInvalidEmail($author);
$this->authors[$author] = $author;
return " * @author $author";