@@ -57,7 +57,7 @@ |
||
57 | 57 | $requiredDependents = $this->dependencyHelper->getDependentExtensions($extension); |
58 | 58 | if (!empty($requiredDependents)) { |
59 | 59 | if ($input->isInteractive()) { |
60 | - $names = implode(', ', array_map(function (ExtensionEntity $dependent) { |
|
60 | + $names = implode(', ', array_map(function(ExtensionEntity $dependent) { |
|
61 | 61 | return $dependent->getName(); |
62 | 62 | }, $requiredDependents)); |
63 | 63 |
@@ -44,7 +44,7 @@ |
||
44 | 44 | Example running against default messages directory |
45 | 45 | |
46 | 46 | <info>php %command.full_name%</info> |
47 | -EOF |
|
47 | +eof |
|
48 | 48 | ) |
49 | 49 | ; |
50 | 50 | } |
@@ -140,6 +140,6 @@ |
||
140 | 140 | } |
141 | 141 | |
142 | 142 | $class = static::class; |
143 | - throw new RuntimeException("Entity \"${class}\" does not have a setter for property \"${name}\". Please add ${setMethod}()."); |
|
143 | + throw new RuntimeException("Entity \"${class}\" does not have a setter for property \"${name}\". Please add ${setmethod}()."); |
|
144 | 144 | } |
145 | 145 | } |
@@ -187,7 +187,7 @@ |
||
187 | 187 | */ |
188 | 188 | public function arrayDiffAssocRecursive(array $array1, array $array2): array |
189 | 189 | { |
190 | - $difference=[]; |
|
190 | + $difference = []; |
|
191 | 191 | foreach ($array1 as $key => $value) { |
192 | 192 | if (is_array($value)) { |
193 | 193 | if (!isset($array2[$key]) || !is_array($array2[$key])) { |
@@ -76,7 +76,7 @@ |
||
76 | 76 | // rewrite local links |
77 | 77 | $content = preg_replace_callback( |
78 | 78 | '/\[(.*?)\]\((.*?)\)/', |
79 | - function ($match) use ($router, $moduleName, $raw) { |
|
79 | + function($match) use ($router, $moduleName, $raw) { |
|
80 | 80 | $pageName = s($match[2]); |
81 | 81 | if (false === mb_strpos($match[2], '.md')) { |
82 | 82 | return $match[0]; |
@@ -20,7 +20,7 @@ |
||
20 | 20 | { |
21 | 21 | public function sortAdminModsByOrder(array $adminLinks = []): array |
22 | 22 | { |
23 | - usort($adminLinks, function (array $a, array $b) { |
|
23 | + usort($adminLinks, function(array $a, array $b) { |
|
24 | 24 | if ((int) $a['order'] === (int) $b['order']) { |
25 | 25 | return strcmp($a['moduleName'], $b['moduleName']); |
26 | 26 | } |
@@ -58,7 +58,7 @@ |
||
58 | 58 | return; |
59 | 59 | } |
60 | 60 | $config = $bundle->getConfig(); |
61 | - $positions =[]; |
|
61 | + $positions = []; |
|
62 | 62 | foreach ($config as $realm => $attributes) { |
63 | 63 | if (!isset($attributes['block']) || !isset($attributes['block']['positions'])) { |
64 | 64 | continue; |
@@ -33,7 +33,7 @@ |
||
33 | 33 | public function getTests() |
34 | 34 | { |
35 | 35 | return [ |
36 | - new TwigTest('pendingContentCollectible', function ($obj) { return $obj instanceof PendingContentCollectible; }), |
|
36 | + new TwigTest('pendingContentCollectible', function($obj) { return $obj instanceof PendingContentCollectible; }), |
|
37 | 37 | ]; |
38 | 38 | } |
39 | 39 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | } |
81 | 81 | |
82 | 82 | // set class for the messages |
83 | - $class = !empty($params['class']) ? $params['class'] : "alert alert-${bootstrapClass}"; |
|
83 | + $class = !empty($params['class']) ? $params['class'] : "alert alert-${bootstrapclass}"; |
|
84 | 84 | $totalMessages += $messages; |
85 | 85 | // build output of the messages |
86 | 86 | if (empty($params['tag']) || ('span' !== $params['tag'])) { |