@@ -153,7 +153,7 @@ |
||
153 | 153 | 'storagePid' => implode(',', $this->getStorageFolders()), |
154 | 154 | 'permaloginStatus' => $this->getPermaloginStatus(), |
155 | 155 | 'redirectURL' => $this->redirectHandler->getLoginFormRedirectUrl($this->configuration, $this->isRedirectDisabled()), |
156 | - 'redirectReferrer' => $this->request->hasArgument('redirectReferrer') ? (string)$this->request->getArgument('redirectReferrer'): '', |
|
156 | + 'redirectReferrer' => $this->request->hasArgument('redirectReferrer') ? (string)$this->request->getArgument('redirectReferrer') : '', |
|
157 | 157 | 'referer' => $this->requestHandler->getPropertyFromGetAndPost('referer'), |
158 | 158 | 'noRedirect' => $this->isRedirectDisabled(), |
159 | 159 | ] |
@@ -132,28 +132,28 @@ |
||
132 | 132 | |
133 | 133 | $html = []; |
134 | 134 | $html[] = '<div class="formengine-field-item t3js-formengine-field-item">'; |
135 | - $html[] = $fieldInformationHtml; |
|
136 | - $html[] = '<div class="form-control-wrap">'; |
|
137 | - $html[] = '<div class="form-wizards-wrap">'; |
|
138 | - $html[] = '<div class="form-wizards-element">'; |
|
139 | - $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
|
140 | - $html[] = htmlspecialchars($value); |
|
141 | - $html[] = '</textarea>'; |
|
142 | - $html[] = '</div>'; |
|
135 | + $html[] = $fieldInformationHtml; |
|
136 | + $html[] = '<div class="form-control-wrap">'; |
|
137 | + $html[] = '<div class="form-wizards-wrap">'; |
|
138 | + $html[] = '<div class="form-wizards-element">'; |
|
139 | + $html[] = '<textarea ' . GeneralUtility::implodeAttributes($attributes, true) . '>'; |
|
140 | + $html[] = htmlspecialchars($value); |
|
141 | + $html[] = '</textarea>'; |
|
142 | + $html[] = '</div>'; |
|
143 | 143 | if (!empty($fieldControlHtml)) { |
144 | - $html[] = '<div class="form-wizards-items-aside">'; |
|
145 | - $html[] = '<div class="btn-group">'; |
|
146 | - $html[] = $fieldControlHtml; |
|
147 | - $html[] = '</div>'; |
|
148 | - $html[] = '</div>'; |
|
144 | + $html[] = '<div class="form-wizards-items-aside">'; |
|
145 | + $html[] = '<div class="btn-group">'; |
|
146 | + $html[] = $fieldControlHtml; |
|
147 | + $html[] = '</div>'; |
|
148 | + $html[] = '</div>'; |
|
149 | 149 | } |
150 | 150 | if (!empty($fieldWizardHtml)) { |
151 | 151 | $html[] = '<div class="form-wizards-items-bottom">'; |
152 | 152 | $html[] = $fieldWizardHtml; |
153 | 153 | $html[] = '</div>'; |
154 | 154 | } |
155 | - $html[] = '</div>'; |
|
156 | - $html[] = '</div>'; |
|
155 | + $html[] = '</div>'; |
|
156 | + $html[] = '</div>'; |
|
157 | 157 | $html[] = '</div>'; |
158 | 158 | |
159 | 159 | $resultArray['html'] = implode(LF, $html); |
@@ -138,7 +138,7 @@ |
||
138 | 138 | ]; |
139 | 139 | while ($row = $statement->fetch()) { |
140 | 140 | $result[$row['link_type']] = $row['amount']; |
141 | - $result['total']+= $row['amount']; |
|
141 | + $result['total'] += $row['amount']; |
|
142 | 142 | } |
143 | 143 | return $result; |
144 | 144 | } |
@@ -198,7 +198,7 @@ discard block |
||
198 | 198 | $indexName = $item->indexName->getQuotedName(); |
199 | 199 | |
200 | 200 | $columnNames = array_map( |
201 | - function (IndexColumnName $columnName) { |
|
201 | + function(IndexColumnName $columnName) { |
|
202 | 202 | if ($columnName->length) { |
203 | 203 | return $columnName->columnName->getQuotedName() . '(' . $columnName->length . ')'; |
204 | 204 | } |
@@ -248,7 +248,7 @@ discard block |
||
248 | 248 | { |
249 | 249 | $indexName = $item->indexName->getQuotedName() ?: null; |
250 | 250 | $localColumnNames = array_map( |
251 | - function (IndexColumnName $columnName) { |
|
251 | + function(IndexColumnName $columnName) { |
|
252 | 252 | return $columnName->columnName->getQuotedName(); |
253 | 253 | }, |
254 | 254 | $item->columnNames |
@@ -270,7 +270,7 @@ discard block |
||
270 | 270 | ) { |
271 | 271 | $foreignTableName = $referenceDefinition->tableName->getQuotedName(); |
272 | 272 | $foreignColumnNames = array_map( |
273 | - function (IndexColumnName $columnName) { |
|
273 | + function(IndexColumnName $columnName) { |
|
274 | 274 | return $columnName->columnName->getQuotedName(); |
275 | 275 | }, |
276 | 276 | $referenceDefinition->columnNames |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | $orderExpressions = GeneralUtility::trimExplode(',', $input, true); |
46 | 46 | |
47 | 47 | return array_map( |
48 | - function ($expression) { |
|
48 | + function($expression) { |
|
49 | 49 | $fieldNameOrderArray = GeneralUtility::trimExplode(' ', $expression, true); |
50 | 50 | $fieldName = $fieldNameOrderArray[0] ?? null; |
51 | 51 | $order = $fieldNameOrderArray[1] ?? null; |
@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | $tableExpressions = GeneralUtility::trimExplode(',', $input, true); |
74 | 74 | |
75 | 75 | return array_map( |
76 | - function ($expression) { |
|
76 | + function($expression) { |
|
77 | 77 | [$tableName, $as, $alias] = array_pad(GeneralUtility::trimExplode(' ', $expression, true), 3, null); |
78 | 78 | |
79 | 79 | if (!empty($as) && strtolower($as) === 'as' && !empty($alias)) { |
@@ -219,7 +219,7 @@ discard block |
||
219 | 219 | if (strpos($sql, '{#') !== false) { |
220 | 220 | $sql = preg_replace_callback( |
221 | 221 | '/{#(?P<identifier>[^}]+)}/', |
222 | - function (array $matches) use ($connection) { |
|
222 | + function(array $matches) use ($connection) { |
|
223 | 223 | return $connection->quoteIdentifier($matches['identifier']); |
224 | 224 | }, |
225 | 225 | $sql |
@@ -43,7 +43,7 @@ |
||
43 | 43 | |
44 | 44 | if (defined('PDO::PGSQL_ATTR_DISABLE_PREPARES') |
45 | 45 | && ( |
46 | - ! isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES]) |
|
46 | + !isset($driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES]) |
|
47 | 47 | || $driverOptions[PDO::PGSQL_ATTR_DISABLE_PREPARES] === true |
48 | 48 | ) |
49 | 49 | ) { |
@@ -32,7 +32,7 @@ |
||
32 | 32 | { |
33 | 33 | if (is_array($record)) { |
34 | 34 | return array_map( |
35 | - static function ($value) { |
|
35 | + static function($value) { |
|
36 | 36 | if (is_resource($value)) { |
37 | 37 | $value = stream_get_contents($value); |
38 | 38 | } |
@@ -73,10 +73,10 @@ |
||
73 | 73 | */ |
74 | 74 | protected $overlayType; |
75 | 75 | |
76 | - public const OVERLAYS_OFF = 'off'; // config.sys_language_overlay = 0 |
|
77 | - public const OVERLAYS_MIXED = 'mixed'; // config.sys_language_overlay = 1 (keep the ones that are only available in default language) |
|
78 | - public const OVERLAYS_ON = 'on'; // "hideNonTranslated" |
|
79 | - public const OVERLAYS_ON_WITH_FLOATING = 'includeFloating'; // "hideNonTranslated" + records that are only available in polish |
|
76 | + public const OVERLAYS_OFF = 'off'; // config.sys_language_overlay = 0 |
|
77 | + public const OVERLAYS_MIXED = 'mixed'; // config.sys_language_overlay = 1 (keep the ones that are only available in default language) |
|
78 | + public const OVERLAYS_ON = 'on'; // "hideNonTranslated" |
|
79 | + public const OVERLAYS_ON_WITH_FLOATING = 'includeFloating'; // "hideNonTranslated" + records that are only available in polish |
|
80 | 80 | |
81 | 81 | /** |
82 | 82 | * Create the default language |
@@ -102,7 +102,7 @@ |
||
102 | 102 | $target = $this->container->get($service); |
103 | 103 | if ($method !== null) { |
104 | 104 | // Dispatch to configured method name instead of __invoke() |
105 | - $target = [ $target, $method ]; |
|
105 | + $target = [$target, $method]; |
|
106 | 106 | } |
107 | 107 | |
108 | 108 | if (!is_callable($target)) { |