Completed
Push — master ( 4904bb...48f77b )
by Timo
11s
created
Classes/Site.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
     {
256 256
         /** @var $registry Registry */
257 257
         $registry = GeneralUtility::makeInstance(Registry::class);
258
-        $servers = (array) $registry->get('tx_solr', 'servers', []);
258
+        $servers = (array)$registry->get('tx_solr', 'servers', []);
259 259
         return $servers;
260 260
     }
261 261
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
         $recursionRootPageId = intval($rootPageId);
340 340
         if ($rootPageId == 'SITE_ROOT') {
341 341
             $recursionRootPageId = $this->rootPage['uid'];
342
-            $pageIds[] = (int) $this->rootPage['uid'];
342
+            $pageIds[] = (int)$this->rootPage['uid'];
343 343
         }
344 344
 
345 345
         if ($maxDepth <= 0) {
@@ -381,7 +381,7 @@  discard block
 block discarded – undo
381 381
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery('uid', 'pages', 'pid = ' . $recursionRootPageId . ' ' . BackendUtility::deleteClause('pages') . $initialPagesAdditionalWhereClause);
382 382
 
383 383
         while ($page = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
384
-            $pageIds[] = (int) $page['uid'];
384
+            $pageIds[] = (int)$page['uid'];
385 385
 
386 386
             if ($maxDepth > 1) {
387 387
                 $pageIds = array_merge($pageIds, $this->getPages($page['uid'], $maxDepth - 1));
Please login to merge, or discard this patch.
Classes/Domain/Search/ResultSet/SearchResultSetService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -282,7 +282,7 @@  discard block
 block discarded – undo
282 282
      * @param Query $query The query that has been searched for.
283 283
      * @param \Apache_Solr_Response $response The search's response.
284 284
      */
285
-    protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response &$response)
285
+    protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response & $response)
286 286
     {
287 287
         if ($this->shouldHideResultsFromInitialSearch($rawQuery)) {
288 288
             // explicitly set number of results to 0 as we just wanted
@@ -310,7 +310,7 @@  discard block
 block discarded – undo
310 310
      *
311 311
      * @param \Apache_Solr_Response $response
312 312
      */
313
-    protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response &$response)
313
+    protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response & $response)
314 314
     {
315 315
         if (!is_array($response->response->docs)) {
316 316
             return;
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
      * @param \Apache_Solr_Response $response
363 363
      * @throws \Apache_Solr_ParserException
364 364
      */
365
-    protected function wrapResultDocumentInResultObject(\Apache_Solr_Response &$response)
365
+    protected function wrapResultDocumentInResultObject(\Apache_Solr_Response & $response)
366 366
     {
367 367
         try {
368 368
             $documents = $response->response->docs;
Please login to merge, or discard this patch.
Classes/Query.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -164,7 +164,7 @@  discard block
 block discarded – undo
164 164
      */
165 165
     public function __construct($keywords, $solrConfiguration = null, SiteHashService $siteHashService = null)
166 166
     {
167
-        $keywords = (string) $keywords;
167
+        $keywords = (string)$keywords;
168 168
 
169 169
         $this->solrConfiguration = is_null($solrConfiguration) ? Util::getSolrConfiguration() : $solrConfiguration;
170 170
         $this->siteHashService = is_null($siteHashService) ? GeneralUtility::makeInstance(SiteHashService::class) : $siteHashService;
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
      */
684 684
     public function getGroupFields()
685 685
     {
686
-        return (array) $this->getQueryParameter('group.field', []);
686
+        return (array)$this->getQueryParameter('group.field', []);
687 687
     }
688 688
 
689 689
     /**
@@ -706,7 +706,7 @@  discard block
 block discarded – undo
706 706
      */
707 707
     public function getGroupSortings()
708 708
     {
709
-        return (array) $this->getQueryParameter('group.sort', []);
709
+        return (array)$this->getQueryParameter('group.sort', []);
710 710
     }
711 711
 
712 712
     // faceting
@@ -732,7 +732,7 @@  discard block
 block discarded – undo
732 732
      */
733 733
     public function getGroupQueries()
734 734
     {
735
-        return (array) $this->getQueryParameter('group.query', []);
735
+        return (array)$this->getQueryParameter('group.query', []);
736 736
     }
737 737
 
738 738
     /**
Please login to merge, or discard this patch.
Classes/Domain/Index/Queue/RecordMonitor/Helper/RootPageResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@
 block discarded – undo
75 75
      */
76 76
     public function getResponsibleRootPageIds($table, $uid)
77 77
     {
78
-        $cacheId = 'RootPageResolver' . '_' . 'getResponsibleRootPageIds' . '_' . $table . '_'.$uid;
78
+        $cacheId = 'RootPageResolver' . '_' . 'getResponsibleRootPageIds' . '_' . $table . '_' . $uid;
79 79
         $methodResult = $this->runtimeCache->get($cacheId);
80 80
         if (!empty($methodResult)) {
81 81
             return $methodResult;
Please login to merge, or discard this patch.
Classes/Domain/Search/Statistics/StatisticsRepository.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@  discard block
 block discarded – undo
43 43
     public function getSearchStatistics($rootPageId, $days = 30, $limit = 10)
44 44
     {
45 45
         $now = time();
46
-        $timeStart = (int) ($now - 86400 * intval($days)); // 86400 seconds/day
47
-        $rootPageId = (int) $rootPageId;
48
-        $limit = (int) $limit;
46
+        $timeStart = (int)($now - 86400 * intval($days)); // 86400 seconds/day
47
+        $rootPageId = (int)$rootPageId;
48
+        $limit = (int)$limit;
49 49
 
50 50
         $statisticsRows = (array)$this->getDatabase()->exec_SELECTgetRows(
51 51
             'keywords, count(keywords) as count, num_found as hits',
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
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
 
69 69
             return $row;
@@ -109,9 +109,9 @@  discard block
 block discarded – undo
109 109
      */
110 110
     protected function getTopKeyWordsWithOrWithoutHits($rootPageId, $days = 30, $limit, $withoutHits)
111 111
     {
112
-        $rootPageId = (int) $rootPageId;
113
-        $limit = (int) $limit;
114
-        $withoutHits = (bool) $withoutHits;
112
+        $rootPageId = (int)$rootPageId;
113
+        $limit = (int)$limit;
114
+        $withoutHits = (bool)$withoutHits;
115 115
 
116 116
         $now = time();
117 117
         $timeStart = $now - 86400 * intval($days); // 86400 seconds/day
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
                 // for the hits we need to take the average
157 157
             $avgHits = $this->getAverageFromField($mergedRow, $statisticsRow, 'hits');
158
-            $mergedRow['hits'] = (int) $avgHits;
158
+            $mergedRow['hits'] = (int)$avgHits;
159 159
 
160 160
                 // for the count we need to take the sum, because it's the sum of searches
161 161
             $mergedRow['count'] = $mergedRow['count'] + $statisticsRow['count'];
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
      * @param string $fieldName
200 200
      * @return float|int
201 201
      */
202
-    protected function getAverageFromField(array &$mergedRow, array $statisticsRow,  $fieldName)
202
+    protected function getAverageFromField(array &$mergedRow, array $statisticsRow, $fieldName)
203 203
     {
204 204
         // when this is the first row we can take it.
205 205
         if ($mergedRow['mergedrows'] === 1) {
Please login to merge, or discard this patch.
Classes/SolrService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -302,7 +302,7 @@  discard block
 block discarded – undo
302 302
      */
303 303
     protected function performPingRequest($timeout = 2, $useCache = true)
304 304
     {
305
-        $cacheKey = (string) ($this);
305
+        $cacheKey = (string)($this);
306 306
         if ($useCache && isset(static::$pingCache[$cacheKey])) {
307 307
             return static::$pingCache[$cacheKey];
308 308
         }
@@ -631,7 +631,7 @@  discard block
 block discarded – undo
631 631
             $solrconfigXmlUrl = $this->_scheme . '://'
632 632
                 . $this->_host . ':' . $this->_port
633 633
                 . $this->_path . 'admin/file/?file=solrconfig.xml';
634
-            $response= $this->_sendRawGet($solrconfigXmlUrl);
634
+            $response = $this->_sendRawGet($solrconfigXmlUrl);
635 635
 
636 636
             $solrconfigXml = simplexml_load_string($response->getRawResponse());
637 637
             if ($solrconfigXml === false) {
@@ -896,7 +896,7 @@  discard block
 block discarded – undo
896 896
     {
897 897
         $paths = explode('/', trim($this->_path, '/'));
898 898
 
899
-        return (string) array_pop($paths);
899
+        return (string)array_pop($paths);
900 900
     }
901 901
 
902 902
     /**
Please login to merge, or discard this patch.
Classes/ContentObject/Relation.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -353,7 +353,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Classes/Facet/LinkBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -248,7 +248,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.