@@ -247,12 +247,12 @@ |
||
| 247 | 247 | protected function getPathAsArray($path) |
| 248 | 248 | { |
| 249 | 249 | if (!$this->includePathSeparatorInKeys) { |
| 250 | - $pathArray = explode($this->pathSeparator, $path); |
|
| 250 | + $pathArray = explode($this->pathSeparator, $path); |
|
| 251 | 251 | return $pathArray; |
| 252 | 252 | } |
| 253 | 253 | |
| 254 | 254 | $substitutedPath = str_replace($this->pathSeparator, $this->pathSeparator . '@@@', trim($path)); |
| 255 | - $pathArray = array_filter(explode('@@@', $substitutedPath)); |
|
| 255 | + $pathArray = array_filter(explode('@@@', $substitutedPath)); |
|
| 256 | 256 | return $pathArray; |
| 257 | 257 | } |
| 258 | 258 | } |
@@ -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 | }); |
@@ -353,7 +353,7 @@ |
||
| 353 | 353 | $value = array_pop($relatedItemsFromForeignTable); |
| 354 | 354 | |
| 355 | 355 | // restore |
| 356 | - $this->configuration= $backupConfiguration; |
|
| 356 | + $this->configuration = $backupConfiguration; |
|
| 357 | 357 | $parentContentObject->data = $backupRecord; |
| 358 | 358 | } |
| 359 | 359 | |
@@ -248,7 +248,7 @@ |
||
| 248 | 248 | |
| 249 | 249 | // find the currently used option for this facet |
| 250 | 250 | foreach ($filterParameters as $key => $filter) { |
| 251 | - list($filterName, ) = explode(':', $filter); |
|
| 251 | + list($filterName,) = explode(':', $filter); |
|
| 252 | 252 | |
| 253 | 253 | if ($filterName == $this->facetName) { |
| 254 | 254 | $indexToReplace = $key; |
@@ -46,7 +46,7 @@ |
||
| 46 | 46 | public function __construct($configurationToUse = []) |
| 47 | 47 | { |
| 48 | 48 | if (empty($configurationToUse)) { |
| 49 | - $this->configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['solr']); |
|
| 49 | + $this->configuration = unserialize($GLOBALS['TYPO3_CONF_VARS']['EXT']['extConf']['solr']); |
|
| 50 | 50 | } else { |
| 51 | 51 | $this->configuration = $configurationToUse; |
| 52 | 52 | } |
@@ -63,7 +63,7 @@ |
||
| 63 | 63 | $sumCount += $statisticsRow['count']; |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | - $statisticsRows = array_map(function ($row) use ($sumCount) { |
|
| 66 | + $statisticsRows = array_map(function($row) use ($sumCount) { |
|
| 67 | 67 | $row['percent'] = $row['count'] * 100 / $sumCount; |
| 68 | 68 | return $row; |
| 69 | 69 | }, $statisticsRows); |
@@ -169,7 +169,7 @@ |
||
| 169 | 169 | * |
| 170 | 170 | * @param ContentObjectRenderer $parentObject parent content object |
| 171 | 171 | */ |
| 172 | - public function postProcessContentObjectInitialization(ContentObjectRenderer &$parentObject) |
|
| 172 | + public function postProcessContentObjectInitialization(ContentObjectRenderer & $parentObject) |
|
| 173 | 173 | { |
| 174 | 174 | if (!empty($parentObject->currentRecord)) { |
| 175 | 175 | list($table) = explode(':', $parentObject->currentRecord); |
@@ -251,7 +251,7 @@ |
||
| 251 | 251 | if (empty($GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_solr.']['enabled'])) { |
| 252 | 252 | return false; |
| 253 | 253 | } |
| 254 | - return (bool) $GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_solr.']['enabled']; |
|
| 254 | + return (bool)$GLOBALS['TSFE']->tmpl->setup['plugin.']['tx_solr.']['enabled']; |
|
| 255 | 255 | } |
| 256 | 256 | |
| 257 | 257 | /** |
@@ -270,7 +270,7 @@ |
||
| 270 | 270 | $queueItemsOfExistingMountPoints = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows( |
| 271 | 271 | 'COUNT(*) AS queueItemCount,item_uid', |
| 272 | 272 | 'tx_solr_indexqueue_item', |
| 273 | - 'item_type="pages" AND pages_mountidentifier = '. $identifier, |
|
| 273 | + 'item_type="pages" AND pages_mountidentifier = ' . $identifier, |
|
| 274 | 274 | 'item_uid', |
| 275 | 275 | '', |
| 276 | 276 | '', |