@@ -218,7 +218,7 @@ |
||
218 | 218 | $ucHelperKey = Util::underscoredToUpperCamelCase($helperKey); |
219 | 219 | $vendorNameSpace = 'ApacheSolrForTypo3\\Solr\\'; |
220 | 220 | $possibleFilename = $ucHelperKey . '.php'; |
221 | - $possibleClassName = $vendorNameSpace . str_replace('/', '\\', |
|
221 | + $possibleClassName = $vendorNameSpace . str_replace('/', '\\', |
|
222 | 222 | $viewHelperRealPath) . '\\' . $ucHelperKey; |
223 | 223 | |
224 | 224 | $viewHelperIncludePath = ExtensionManagementUtility::extPath($extensionKey) |
@@ -52,7 +52,7 @@ |
||
52 | 52 | */ |
53 | 53 | public function __construct($keywords, $solrConfiguration = null) |
54 | 54 | { |
55 | - $keywords = (string) $keywords; |
|
55 | + $keywords = (string)$keywords; |
|
56 | 56 | if ($solrConfiguration == null) { |
57 | 57 | $solrConfiguration = Util::getSolrConfiguration(); |
58 | 58 | } |
@@ -526,7 +526,7 @@ |
||
526 | 526 | $spellcheckingSuggestions = $suggestions; |
527 | 527 | |
528 | 528 | if (isset($this->response->spellcheck->collations)) { |
529 | - $collections = (array) $this->response->spellcheck->collations; |
|
529 | + $collections = (array)$this->response->spellcheck->collations; |
|
530 | 530 | $spellcheckingSuggestions['collation'] = $collections['collation']; |
531 | 531 | } |
532 | 532 | } |
@@ -154,7 +154,7 @@ discard block |
||
154 | 154 | $activeFacets = $this->getActiveFacets(); |
155 | 155 | $facetNames = []; |
156 | 156 | |
157 | - array_map(function ($activeFacet) use (&$facetNames) { |
|
157 | + array_map(function($activeFacet) use (&$facetNames) { |
|
158 | 158 | $facetNames[] = substr($activeFacet, 0, strpos($activeFacet, ':')); |
159 | 159 | }, $activeFacets); |
160 | 160 | |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | $values = []; |
172 | 172 | $activeFacets = $this->getActiveFacets(); |
173 | 173 | |
174 | - array_map(function ($activeFacet) use (&$values, $facetName) { |
|
174 | + array_map(function($activeFacet) use (&$values, $facetName) { |
|
175 | 175 | $parts = explode(':', $activeFacet, 2); |
176 | 176 | if ($parts[0] === $facetName) { |
177 | 177 | $values[] = $parts[1]; |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | public function removeAllFacetValuesByName($facetName) |
274 | 274 | { |
275 | 275 | $facetValues = $this->getActiveFacets(); |
276 | - $facetValues = array_filter($facetValues, function ($facetValue) use ($facetName) { |
|
276 | + $facetValues = array_filter($facetValues, function($facetValue) use ($facetName) { |
|
277 | 277 | $parts = explode(':', $facetValue, 2); |
278 | 278 | return $parts[0] !== $facetName; |
279 | 279 | }); |
@@ -287,8 +287,8 @@ |
||
287 | 287 | |
288 | 288 | $mountedPagesIdsWithQueueItems = []; |
289 | 289 | foreach ($queueItemsOfExistingMountPoints as $id => $queueItemsOfExistingMountPoint) { |
290 | - if (((int) $queueItemsOfExistingMountPoint['queueItemCount']) > 0) { |
|
291 | - $mountedPagesIdsWithQueueItems[] = (int) $id; |
|
290 | + if (((int)$queueItemsOfExistingMountPoint['queueItemCount']) > 0) { |
|
291 | + $mountedPagesIdsWithQueueItems[] = (int)$id; |
|
292 | 292 | } |
293 | 293 | } |
294 | 294 |
@@ -53,7 +53,7 @@ |
||
53 | 53 | } |
54 | 54 | |
55 | 55 | // try to create DateTime object |
56 | - $timezone = is_null($timezone) ? new DateTimeZone(date_default_timezone_get()) : $timezone; |
|
56 | + $timezone = is_null($timezone) ? new DateTimeZone(date_default_timezone_get()) : $timezone; |
|
57 | 57 | return $this->getFormattedDate($input, $inputFormat, $outputFormat, $timezone); |
58 | 58 | } |
59 | 59 |
@@ -123,7 +123,7 @@ |
||
123 | 123 | |
124 | 124 | if ($coresReloaded) { |
125 | 125 | $this->addFlashMessage( |
126 | - 'Core configuration reloaded ('.implode(', ', $reloadedCores).').', |
|
126 | + 'Core configuration reloaded (' . implode(', ', $reloadedCores) . ').', |
|
127 | 127 | '', |
128 | 128 | FlashMessage::OK |
129 | 129 | ); |
@@ -173,7 +173,7 @@ |
||
173 | 173 | 'auth', // service type |
174 | 174 | AuthorizationService::class, |
175 | 175 | // service key |
176 | - [ // service meta data |
|
176 | + [// service meta data |
|
177 | 177 | 'title' => 'Solr Indexer Authorization', |
178 | 178 | 'description' => 'Authorizes the Solr Index Queue indexer to access protected pages.', |
179 | 179 |
@@ -48,7 +48,7 @@ |
||
48 | 48 | */ |
49 | 49 | public function __construct($TCA = null) |
50 | 50 | { |
51 | - $this->tca = (array) (is_null($TCA) ? $GLOBALS['TCA'] : $TCA); |
|
51 | + $this->tca = (array)(is_null($TCA) ? $GLOBALS['TCA'] : $TCA); |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | /** |