Completed
Push — master ( 30f7bc...d1fc9d )
by Timo
09:09
created
Classes/Backend/SolrModule/AbstractModuleController.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -190,12 +190,12 @@
 block discarded – undo
190 190
     protected function getRequestArgumentOrDefaultValue($argumentKey, $default)
191 191
     {
192 192
         // no request -> return default
193
-        if (! isset($this->request)) {
193
+        if (!isset($this->request)) {
194 194
             return $default;
195 195
         }
196 196
 
197 197
         // argument not present -> return default value
198
-        if (! $this->request->hasArgument($argumentKey)) {
198
+        if (!$this->request->hasArgument($argumentKey)) {
199 199
             return $default;
200 200
         }
201 201
 
Please login to merge, or discard this patch.
Classes/SolrService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -544,7 +544,7 @@
 block discarded – undo
544 544
 
545 545
             $solrconfigXml = simplexml_load_file($solrconfigXmlUrl);
546 546
             if ($solrconfigXml === false) {
547
-                throw new \InvalidArgumentException('No valid xml response from schema file: '.$solrconfigXmlUrl);
547
+                throw new \InvalidArgumentException('No valid xml response from schema file: ' . $solrconfigXmlUrl);
548 548
             }
549 549
             $this->solrconfigName = (string)$solrconfigXml->attributes()->name;
550 550
         }
Please login to merge, or discard this patch.
Classes/Typo3PageContentExtractor.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
         $doc->loadHTML('<?xml version="1.0" encoding="UTF-8"?>' . PHP_EOL . $indexableContent);
97 97
         $xpath = new \DOMXPath($doc);
98 98
         foreach ($excludeClasses as $excludePart) {
99
-            $elements = $xpath->query("//*[contains(@class,'".$excludePart."')]");
99
+            $elements = $xpath->query("//*[contains(@class,'" . $excludePart . "')]");
100 100
             if (count($elements) == 0) {
101 101
                 continue;
102 102
             }
Please login to merge, or discard this patch.
Classes/Access/Rootline.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -221,7 +221,7 @@
 block discarded – undo
221 221
     public static function cleanGroupArray(array $groups)
222 222
     {
223 223
         $groups = array_unique($groups); // removes duplicates
224
-        sort($groups, SORT_NUMERIC);     // sort
224
+        sort($groups, SORT_NUMERIC); // sort
225 225
 
226 226
         return $groups;
227 227
     }
Please login to merge, or discard this patch.
Classes/Task/IndexQueueWorkerTask.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -145,7 +145,7 @@
 block discarded – undo
145 145
             $message .= ' Failures: ' . $failedItemsCount;
146 146
         }
147 147
 
148
-        $message .=  ' / Using webroot: ' . htmlspecialchars($this->getWebRoot());
148
+        $message .= ' / Using webroot: ' . htmlspecialchars($this->getWebRoot());
149 149
 
150 150
         return $message;
151 151
     }
Please login to merge, or discard this patch.
Classes/Typo3Environment.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,6 +49,6 @@
 block discarded – undo
49 49
         GeneralUtility::logDeprecatedFunction();
50 50
 
51 51
         $configuration = Util::getSolrConfiguration();
52
-        return (boolean) $configuration->getValueByPathOrDefaultValue('plugin.tx_solr.index.files', 0);
52
+        return (boolean)$configuration->getValueByPathOrDefaultValue('plugin.tx_solr.index.files', 0);
53 53
     }
54 54
 }
Please login to merge, or discard this patch.
Classes/Domain/Search/SearchRequest.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
      */
144 144
     protected function prefixWithNamespace($path)
145 145
     {
146
-        return $this->argumentNameSpace . ':'.$path;
146
+        return $this->argumentNameSpace . ':' . $path;
147 147
     }
148 148
 
149 149
     /**
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
         }
228 228
 
229 229
         $facetValues = $this->getActiveFacets();
230
-        $facetValues[] = $facetName.':'.$facetValue;
230
+        $facetValues[] = $facetName . ':' . $facetValue;
231 231
         $this->setActiveFacets($facetValues);
232 232
 
233 233
         $this->stateChanged = true;
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
             return $this;
249 249
         }
250 250
         $facetValues = $this->getActiveFacets();
251
-        $facetValueToLookFor = $facetName.':'.$facetValue;
251
+        $facetValueToLookFor = $facetName . ':' . $facetValue;
252 252
 
253 253
         foreach ($facetValues as $index => $facetValue) {
254 254
             if ($facetValue === $facetValueToLookFor) {
@@ -306,7 +306,7 @@  discard block
 block discarded – undo
306 306
      */
307 307
     public function getHasFacetValue($facetName, $facetValue)
308 308
     {
309
-        $facetNameAndValueToCheck = $facetName.':'.$facetValue;
309
+        $facetNameAndValueToCheck = $facetName . ':' . $facetValue;
310 310
         foreach ($this->getActiveFacets() as $activeFacet) {
311 311
             if ($activeFacet == $facetNameAndValueToCheck) {
312 312
                 return true;
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
      */
393 393
     public function setSorting($sortingName, $direction = 'asc')
394 394
     {
395
-        $value = $sortingName.' '.$direction;
395
+        $value = $sortingName . ' ' . $direction;
396 396
         $path = $this->prefixWithNamespace('sort');
397 397
         $this->argumentsAccessor->set($path, $value);
398 398
         $this->stateChanged = true;
Please login to merge, or discard this patch.
Classes/Domain/Search/FrequentSearches/FrequentSearchesService.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @param TypoScriptFrontendController $tsfe
70 70
      * @param DatabaseConnection $database
71 71
      */
72
-    public function __construct(TypoScriptConfiguration $typoscriptConfiguration, AbstractFrontend $cache,  TypoScriptFrontendController $tsfe, DatabaseConnection $database)
72
+    public function __construct(TypoScriptConfiguration $typoscriptConfiguration, AbstractFrontend $cache, TypoScriptFrontendController $tsfe, DatabaseConnection $database)
73 73
     {
74 74
         $this->configuration = $typoscriptConfiguration;
75 75
         $this->cache = $cache;
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
             $checkLanguageWhere = '';
133 133
         }
134 134
 
135
-        $frequentSearchConfiguration['select.']['ADD_WHERE'] =  $checkRootPidWhere .
135
+        $frequentSearchConfiguration['select.']['ADD_WHERE'] = $checkRootPidWhere .
136 136
                                                                 $checkLanguageWhere . ' ' .
137 137
                                                                 $frequentSearchConfiguration['select.']['ADD_WHERE'];
138 138
 
@@ -167,10 +167,10 @@  discard block
 block discarded – undo
167 167
         $identifier = 'frequentSearchesTags';
168 168
 
169 169
         if ($frequentSearchConfiguration['select.']['checkRootPageId']) {
170
-            $identifier .= '_RP' . (int) $this->tsfe->tmpl->rootLine[0]['uid'];
170
+            $identifier .= '_RP' . (int)$this->tsfe->tmpl->rootLine[0]['uid'];
171 171
         }
172 172
         if ($frequentSearchConfiguration['select.']['checkLanguage']) {
173
-            $identifier .= '_L' . (int) $this->tsfe->sys_language_uid;
173
+            $identifier .= '_L' . (int)$this->tsfe->sys_language_uid;
174 174
         }
175 175
 
176 176
         $identifier .= '_' . md5(serialize($frequentSearchConfiguration));
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/SearchResultSetService.php 1 patch
Spacing   +7 added lines, -9 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@  discard block
 block discarded – undo
287 287
      * @param Query $query The query that has been searched for.
288 288
      * @param \Apache_Solr_Response $response The search's response.
289 289
      */
290
-    protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response &$response)
290
+    protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response & $response)
291 291
     {
292 292
         if ($this->shouldHideResultsFromInitialSearch($rawQuery)) {
293 293
             // explicitly set number of results to 0 as we just wanted
@@ -315,7 +315,7 @@  discard block
 block discarded – undo
315 315
      *
316 316
      * @param \Apache_Solr_Response $response
317 317
      */
318
-    protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response &$response)
318
+    protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response & $response)
319 319
     {
320 320
         if (!is_array($response->response->docs)) {
321 321
             return;
@@ -367,7 +367,7 @@  discard block
 block discarded – undo
367 367
      * @param \Apache_Solr_Response $response
368 368
      * @throws \InvalidArgumentException
369 369
      */
370
-    protected function wrapResultDocumentInResultObject(\Apache_Solr_Response &$response)
370
+    protected function wrapResultDocumentInResultObject(\Apache_Solr_Response & $response)
371 371
     {
372 372
         if (!is_array($response->response->docs)) {
373 373
             return;
@@ -392,7 +392,7 @@  discard block
 block discarded – undo
392 392
         $searchResultClassName = $this->getResultClassName();
393 393
         $result = GeneralUtility::makeInstance($searchResultClassName, $originalDocument);
394 394
         if (!$result instanceof SearchResult) {
395
-            throw new \InvalidArgumentException("Could not create result object with class: " . (string) $searchResultClassName, 1470037679);
395
+            throw new \InvalidArgumentException("Could not create result object with class: " . (string)$searchResultClassName, 1470037679);
396 396
         }
397 397
 
398 398
         return $result;
@@ -404,8 +404,7 @@  discard block
 block discarded – undo
404 404
     protected function getResultClassName()
405 405
     {
406 406
         return isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultClassName ']) ?
407
-            $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultClassName '] :
408
-            'ApacheSolrForTypo3\\Solr\\Domain\\Search\\ResultSet\\SearchResult';
407
+            $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultClassName '] : 'ApacheSolrForTypo3\\Solr\\Domain\\Search\\ResultSet\\SearchResult';
409 408
     }
410 409
 
411 410
     /**
@@ -414,8 +413,7 @@  discard block
 block discarded – undo
414 413
     protected function getResultSetClassName()
415 414
     {
416 415
         return isset($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultSetClassName ']) ?
417
-            $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultSetClassName '] :
418
-            'ApacheSolrForTypo3\\Solr\\Domain\\Search\\ResultSet\\SearchResultSet';
416
+            $GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['solr']['searchResultSetClassName '] : 'ApacheSolrForTypo3\\Solr\\Domain\\Search\\ResultSet\\SearchResultSet';
419 417
     }
420 418
 
421 419
     /**
@@ -561,7 +559,7 @@  discard block
 block discarded – undo
561 559
         $response = $this->search->search($query, 0, 1);
562 560
         $this->processResponse($documentId, $query, $response);
563 561
 
564
-        $resultDocument = isset($response->response->docs[0]) ?  $response->response->docs[0] : null;
562
+        $resultDocument = isset($response->response->docs[0]) ? $response->response->docs[0] : null;
565 563
         return $resultDocument;
566 564
     }
567 565
 
Please login to merge, or discard this patch.