Completed
Pull Request — master (#732)
by Claus
67:28 queued 42:34
created
Classes/ViewHelper/CurrentResultNumber.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * number counting from zero of the total number of results.
63 63
      *
64 64
      * @param array $arguments
65
-     * @return string
65
+     * @return integer
66 66
      */
67 67
     public function execute(array $arguments = array())
68 68
     {
Please login to merge, or discard this patch.
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/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/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/LastSearches/LastSearchesService.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function addToLastSearches($keywords)
100 100
     {
101
-        $mode   = $this->configuration->getSearchLastSearchesMode();
101
+        $mode = $this->configuration->getSearchLastSearchesMode();
102 102
         switch ($mode) {
103 103
             case 'user':
104 104
                 $this->storeKeywordsToSession($keywords);
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
     protected function getNextSequenceId()
228 228
     {
229 229
         $nextSequenceId = 0;
230
-        $numberOfLastSearchesToLog = (int) $this->configuration->getSearchLastSearchesLimit();
230
+        $numberOfLastSearchesToLog = (int)$this->configuration->getSearchLastSearchesLimit();
231 231
 
232 232
         $row = $this->database->exec_SELECTgetRows(
233 233
             '(sequence_id + 1) % ' . $numberOfLastSearchesToLog . ' as next_sequence_id',
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
     /**
135 135
      * Gets the last searched keywords from the database
136 136
      *
137
-     * @param int|bool $limit
137
+     * @param integer $limit
138 138
      * @return array An array containing the last searches of the current user
139 139
      */
140 140
     protected function getLastSearchesFromDatabase($limit = false)
Please login to merge, or discard this patch.
Classes/IndexQueue/FrontendHelper/UserGroupDetector.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,7 +173,7 @@
 block discarded – undo
173 173
      * @param ContentObjectRenderer $parentObject parent content object
174 174
      */
175 175
     public function postProcessContentObjectInitialization(
176
-        ContentObjectRenderer &$parentObject
176
+        ContentObjectRenderer & $parentObject
177 177
     ) {
178 178
         if (!empty($parentObject->currentRecord)) {
179 179
             list($table) = explode(':', $parentObject->currentRecord);
Please login to merge, or discard this patch.
Classes/Query/FilterEncoder/Range.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             );
78 78
         }
79 79
 
80
-        return '[' . (int) $filterParts[1] . ' TO ' . (int)  $filterParts[2] . ']';
80
+        return '[' . (int)$filterParts[1] . ' TO ' . (int)$filterParts[2] . ']';
81 81
     }
82 82
 
83 83
     /**
Please login to merge, or discard this patch.
Classes/System/Util/ArrayAccessor.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -165,10 +165,10 @@
 block discarded – undo
165 165
             // direct access for small paths
166 166
             case 1:
167 167
                $this->data[$pathArray[0]] = $value;
168
-               return;
168
+                return;
169 169
             case 2:
170 170
                $this->data[$pathArray[0]][$pathArray[1]] = $value;
171
-               return;
171
+                return;
172 172
             default:
173 173
                $this->setDeepElementWithLoop($pathArray, $value);
174 174
         }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -247,12 +247,12 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.
Classes/ViewHelper/Crop.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
         }
61 61
 
62 62
         if (isset($cropConfiguration['cropFullWords'])) {
63
-            $this->cropFullWords = (boolean) $cropConfiguration ['cropFullWords'];
63
+            $this->cropFullWords = (boolean)$cropConfiguration ['cropFullWords'];
64 64
         }
65 65
     }
66 66
 
Please login to merge, or discard this patch.