Completed
Push — master ( db265d...068b1b )
by Timo
11s
created
Classes/ViewHelper/Split.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,14 +53,14 @@
 block discarded – undo
53 53
     public function execute(array $arguments = array())
54 54
     {
55 55
         try {
56
-            $iterator  = unserialize($arguments[0]);
56
+            $iterator = unserialize($arguments[0]);
57 57
         } catch (\Exception $e) {
58 58
             $iterator = [];
59 59
         }
60 60
         if ($iterator === false) {
61 61
             $iterator = [];
62 62
         }
63
-        $variable  = $arguments[1];
63
+        $variable = $arguments[1];
64 64
 
65 65
         $data = '';
66 66
         foreach ($iterator as $value) {
Please login to merge, or discard this patch.
Classes/Template.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -218,7 +218,7 @@
 block discarded – undo
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)
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
@@ -46,9 +46,9 @@  discard block
 block discarded – undo
46 46
     public function getSearchStatistics($rootPageId, $days = 30, $limit = 10)
47 47
     {
48 48
         $now = time();
49
-        $timeStart = (int) ($now - 86400 * intval($days)); // 86400 seconds/day
50
-        $rootPageId = (int) $rootPageId;
51
-        $limit = (int) $limit;
49
+        $timeStart = (int)($now - 86400 * intval($days)); // 86400 seconds/day
50
+        $rootPageId = (int)$rootPageId;
51
+        $limit = (int)$limit;
52 52
 
53 53
         $statisticsRows = $this->getDatabase()->exec_SELECTgetRows(
54 54
             'keywords, count(keywords) as count, num_found as hits',
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             $sumCount += $statisticsRow['count'];
67 67
         }
68 68
 
69
-        $statisticsRows = array_map(function ($row) use ($sumCount) {
69
+        $statisticsRows = array_map(function($row) use ($sumCount) {
70 70
             $row['percent'] = $row['count'] * 100 / $sumCount;
71 71
 
72 72
             return $row;
@@ -112,9 +112,9 @@  discard block
 block discarded – undo
112 112
      */
113 113
     protected function getTopKeyWordsWithOrWithoutHits($rootPageId, $days = 30, $limit, $withoutHits)
114 114
     {
115
-        $rootPageId = (int) $rootPageId;
116
-        $limit = (int) $limit;
117
-        $withoutHits = (bool) $withoutHits;
115
+        $rootPageId = (int)$rootPageId;
116
+        $limit = (int)$limit;
117
+        $withoutHits = (bool)$withoutHits;
118 118
 
119 119
         $now = time();
120 120
         $timeStart = $now - 86400 * intval($days); // 86400 seconds/day
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
 
160 160
                 // for the hits we need to take the average
161 161
             $avgHits = $this->getAverageFromField($mergedRow, $statisticsRow, 'hits');
162
-            $mergedRow['hits'] = (int) $avgHits;
162
+            $mergedRow['hits'] = (int)$avgHits;
163 163
 
164 164
                 // for the count we need to take the sum, because it's the sum of searches
165 165
             $mergedRow['count'] = $mergedRow['count'] + $statisticsRow['count'];
@@ -203,7 +203,7 @@  discard block
 block discarded – undo
203 203
      * @param array $statisticsRow
204 204
      * @return float|int
205 205
      */
206
-    protected function getAverageFromField(array &$mergedRow, array $statisticsRow,  $fieldName)
206
+    protected function getAverageFromField(array &$mergedRow, array $statisticsRow, $fieldName)
207 207
     {
208 208
         // when this is the first row we can take it.
209 209
         if ($mergedRow['mergedrows'] === 1) {
Please login to merge, or discard this patch.
Classes/SuggestQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@
 block discarded – undo
157 157
      */
158 158
     public function __construct($keywords, $solrConfiguration = null)
159 159
     {
160
-        $keywords = (string) $keywords;
160
+        $keywords = (string)$keywords;
161 161
         if ($solrConfiguration == null) {
162 162
             $this->solrConfiguration = Util::getSolrConfiguration();
163 163
         } else {
Please login to merge, or discard this patch.
Classes/Search.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -526,7 +526,7 @@
 block discarded – undo
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
         }
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
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
      * @param Query $query The query that has been searched for.
287 287
      * @param \Apache_Solr_Response $response The search's response.
288 288
      */
289
-    protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response &$response)
289
+    protected function processResponse($rawQuery, Query $query, \Apache_Solr_Response & $response)
290 290
     {
291 291
         if ($this->shouldHideResultsFromInitialSearch($rawQuery)) {
292 292
             // explicitly set number of results to 0 as we just wanted
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
      *
315 315
      * @param \Apache_Solr_Response $response
316 316
      */
317
-    protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response &$response)
317
+    protected function addExpandedDocumentsFromVariants(\Apache_Solr_Response & $response)
318 318
     {
319 319
         if (!is_array($response->response->docs)) {
320 320
             return;
@@ -366,7 +366,7 @@  discard block
 block discarded – undo
366 366
      * @param \Apache_Solr_Response $response
367 367
      * @throws \InvalidArgumentException
368 368
      */
369
-    protected function wrapResultDocumentInResultObject(\Apache_Solr_Response &$response)
369
+    protected function wrapResultDocumentInResultObject(\Apache_Solr_Response & $response)
370 370
     {
371 371
         if (!is_array($response->response->docs)) {
372 372
             return;
Please login to merge, or discard this patch.
Classes/Domain/Search/SearchRequest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
         });
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
@@ -370,7 +370,7 @@
 block discarded – undo
370 370
             ));
371 371
 
372 372
             // restore
373
-            $this->configuration= $backupConfiguration;
373
+            $this->configuration = $backupConfiguration;
374 374
             $parentContentObject->data = $backupRecord;
375 375
         }
376 376
 
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
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
      */
156 156
     public function __construct($keywords, $solrConfiguration = null)
157 157
     {
158
-        $keywords = (string) $keywords;
158
+        $keywords = (string)$keywords;
159 159
         if ($solrConfiguration == null) {
160 160
             $this->solrConfiguration = Util::getSolrConfiguration();
161 161
         } else {
@@ -676,7 +676,7 @@  discard block
 block discarded – undo
676 676
      */
677 677
     public function getGroupFields()
678 678
     {
679
-        return (array) $this->getQueryParameter('group.field', []);
679
+        return (array)$this->getQueryParameter('group.field', []);
680 680
     }
681 681
 
682 682
     /**
@@ -699,7 +699,7 @@  discard block
 block discarded – undo
699 699
      */
700 700
     public function getGroupSortings()
701 701
     {
702
-        return (array) $this->getQueryParameter('group.sort', []);
702
+        return (array)$this->getQueryParameter('group.sort', []);
703 703
     }
704 704
 
705 705
     // faceting
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
      */
726 726
     public function getGroupQueries()
727 727
     {
728
-        return (array) $this->getQueryParameter('group.query', []);
728
+        return (array)$this->getQueryParameter('group.query', []);
729 729
     }
730 730
 
731 731
     /**
Please login to merge, or discard this patch.