Completed
Pull Request — master (#926)
by
unknown
31:13
created
Classes/IndexQueue/Initializer/Page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -287,8 +287,8 @@
 block discarded – undo
287 287
 
288 288
         $mountedPagesIdsWithQueueItems = [];
289 289
         foreach ($queueItemsOfExistingMountPoints as $id => $queueItemsOfExistingMountPoint) {
290
-            if (((int) $queueItemsOfExistingMountPoint['queueItemCount']) > 0) {
291
-                $mountedPagesIdsWithQueueItems[] = (int) $id;
290
+            if (((int)$queueItemsOfExistingMountPoint['queueItemCount']) > 0) {
291
+                $mountedPagesIdsWithQueueItems[] = (int)$id;
292 292
             }
293 293
         }
294 294
 
Please login to merge, or discard this patch.
Classes/SolrService.php 2 patches
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
      *
233 233
      * Also does not report the time, see https://forge.typo3.org/issues/64551
234 234
      *
235
-     * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2)
235
+     * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2)
236 236
      * @param boolean $useCache indicates if the ping result should be cached in the instance or not
237 237
      * @return bool TRUE if Solr can be reached, FALSE if not
238 238
      */
@@ -245,7 +245,7 @@  discard block
 block discarded – undo
245 245
     /**
246 246
      * Call the /admin/ping servlet, can be used to get the runtime of a ping request.
247 247
      *
248
-     * @param float|int $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2)
248
+     * @param integer $timeout maximum time to wait for ping in seconds, -1 for unlimited (default is 2)
249 249
      * @param boolean $useCache indicates if the ping result should be cached in the instance or not
250 250
      * @return double runtime in milliseconds
251 251
      * @throws \ApacheSolrForTypo3\Solr\PingFailedException
@@ -482,7 +482,7 @@  discard block
 block discarded – undo
482 482
      *
483 483
      * @param string $url
484 484
      * @param float|bool $timeout Read timeout in seconds
485
-     * @return \Apache_Solr_Response
485
+     * @return string
486 486
      */
487 487
     protected function _sendRawGet($url, $timeout = false)
488 488
     {
@@ -656,7 +656,7 @@  discard block
 block discarded – undo
656 656
      * a complete and well formed "delete" xml document
657 657
      *
658 658
      * @param string $rawPost Expected to be utf-8 encoded xml document
659
-     * @param float|int $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
659
+     * @param integer $timeout Maximum expected duration of the delete operation on the server (otherwise, will throw a communication exception)
660 660
      * @return \Apache_Solr_Response
661 661
      */
662 662
     public function delete($rawPost, $timeout = 3600)
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
      */
301 301
     protected function performPingRequest($timeout = 2, $useCache = true)
302 302
     {
303
-        $cacheKey = (string) ($this);
303
+        $cacheKey = (string)($this);
304 304
         if ($useCache && isset(static::$pingCache[$cacheKey])) {
305 305
             return static::$pingCache[$cacheKey];
306 306
         }
@@ -629,7 +629,7 @@  discard block
 block discarded – undo
629 629
             $solrconfigXmlUrl = $this->_scheme . '://'
630 630
                 . $this->_host . ':' . $this->_port
631 631
                 . $this->_path . 'admin/file/?file=solrconfig.xml';
632
-            $response= $this->_sendRawGet($solrconfigXmlUrl);
632
+            $response = $this->_sendRawGet($solrconfigXmlUrl);
633 633
 
634 634
             $solrconfigXml = simplexml_load_string($response->getRawResponse());
635 635
             if ($solrconfigXml === false) {
@@ -892,7 +892,7 @@  discard block
 block discarded – undo
892 892
      */
893 893
     public function getCoreName()
894 894
     {
895
-        return (string) array_pop(explode('/', trim($this->_path, '/')));
895
+        return (string)array_pop(explode('/', trim($this->_path, '/')));
896 896
     }
897 897
 
898 898
     /**
Please login to merge, or discard this patch.
Classes/System/DateTime/FormatService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
         }
54 54
 
55 55
         // try to create DateTime object
56
-        $timezone = is_null($timezone) ?  new DateTimeZone(date_default_timezone_get()) : $timezone;
56
+        $timezone = is_null($timezone) ? new DateTimeZone(date_default_timezone_get()) : $timezone;
57 57
         return $this->getFormattedDate($input, $inputFormat, $outputFormat, $timezone);
58 58
     }
59 59
 
Please login to merge, or discard this patch.
Classes/Domain/Index/IndexService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         $this->configuration = $site->getSolrConfiguration();
79 79
         $this->site = $site;
80 80
         $this->indexQueue = is_null($queue) ? GeneralUtility::makeInstance(Queue::class) : $queue;
81
-        $this->signalSlotDispatcher = is_null($dispatcher)  ? GeneralUtility::makeInstance(Dispatcher::class) : $dispatcher;
81
+        $this->signalSlotDispatcher = is_null($dispatcher) ? GeneralUtility::makeInstance(Dispatcher::class) : $dispatcher;
82 82
     }
83 83
 
84 84
     /**
@@ -140,7 +140,7 @@  discard block
 block discarded – undo
140 140
     protected function generateIndexingErrorLog(Item $itemToIndex, \Exception $e)
141 141
     {
142 142
         $message = 'Failed indexing Index Queue item ' . $itemToIndex->getIndexQueueUid();
143
-        $data = [   'code' => $e->getCode(),
143
+        $data = ['code' => $e->getCode(),
144 144
                     'message' => $e->getMessage(),
145 145
                     'trace' => $e->getTrace(),
146 146
                     'item' => (array)$itemToIndex];
Please login to merge, or discard this patch.
Classes/ConnectionManager.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,6 @@
 block discarded – undo
27 27
 use ApacheSolrForTypo3\Solr\NoSolrConnectionFoundException;
28 28
 use ApacheSolrForTypo3\Solr\Site;
29 29
 use ApacheSolrForTypo3\Solr\SolrService;
30
-use ApacheSolrForTypo3\Solr\System\Configuration\TypoScriptConfiguration;
31 30
 use ApacheSolrForTypo3\Solr\System\Page\Rootline;
32 31
 use TYPO3\CMS\Backend\Routing\UriBuilder;
33 32
 use TYPO3\CMS\Backend\Toolbar\ClearCacheActionsHookInterface;
Please login to merge, or discard this patch.
Classes/Backend/SolrModule/IndexMaintenanceModuleController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
 
124 124
         if ($coresReloaded) {
125 125
             $this->addFlashMessage(
126
-                'Core configuration reloaded ('.implode(', ', $reloadedCores).').',
126
+                'Core configuration reloaded (' . implode(', ', $reloadedCores) . ').',
127 127
                 '',
128 128
                 FlashMessage::OK
129 129
             );
Please login to merge, or discard this patch.
Classes/IndexQueue/FrontendHelper/PageIndexer.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
             'auth', // service type
174 174
             AuthorizationService::class,
175 175
             // service key
176
-            [ // service meta data
176
+            [// service meta data
177 177
                 'title' => 'Solr Indexer Authorization',
178 178
                 'description' => 'Authorizes the Solr Index Queue indexer to access protected pages.',
179 179
 
Please login to merge, or discard this patch.
Classes/System/TCA/TCAService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function __construct($TCA = null)
50 50
     {
51
-        $this->tca = (array) (is_null($TCA) ? $GLOBALS['TCA'] : $TCA);
51
+        $this->tca = (array)(is_null($TCA) ? $GLOBALS['TCA'] : $TCA);
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.
Classes/Util.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
      * @param int $pageId Id of the (root) page to get the Solr configuration from.
244 244
      * @param string $path The TypoScript configuration path to retrieve.
245 245
      * @param bool $initializeTsfe Optionally initializes a full TSFE to get the configuration, defaults to FALSE
246
-     * @param int|bool $language System language uid or FALSE to disable language usage, optional, defaults to 0
246
+     * @param integer $language System language uid or FALSE to disable language usage, optional, defaults to 0
247 247
      * @param bool $useTwoLevelCache Flag to enable the two level cache for the typoscript configuration array
248 248
      * @return TypoScriptConfiguration The Solr configuration for the requested tree.
249 249
      */
@@ -343,9 +343,9 @@  discard block
 block discarded – undo
343 343
 
344 344
     /**
345 345
      * This function is used to retrieve the configuration from an existing TSFE instance
346
-     * @param $pageId
347
-     * @param $path
348
-     * @param $language
346
+     * @param integer $pageId
347
+     * @param string $path
348
+     * @param integer $language
349 349
      * @return mixed
350 350
      */
351 351
     private static function getConfigurationFromExistingTSFE($pageId, $path, $language)
Please login to merge, or discard this patch.