Test Setup Failed
Push — issue/226 ( 34d897...2e3c1c )
by Tomas Norre
05:49
created
Classes/ClickMenu/CrawlerClickMenu.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         $additionalParameters = [];
68 68
         $additionalParameters[] = 'SET[function]=tx_crawler_modfunc1';
69 69
         $additionalParameters[] = 'SET[crawlaction]=start';
70
-        $additionalParameters[] = 'configurationSelection[]=' . $crawlerConfiguration['name'];
70
+        $additionalParameters[] = 'configurationSelection[]='.$crawlerConfiguration['name'];
71 71
 
72 72
         $additionalMenuItems = [];
73 73
         $additionalMenuItems[] = $backRef->linkItem(
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
                 'crawler'
77 77
             ),
78 78
             $this->getContextMenuIcon(),
79
-            'top.goToModule(\'web_info\', 1, \'&' . implode('&', $additionalParameters) . '\'); return hideCM();'
79
+            'top.goToModule(\'web_info\', 1, \'&'.implode('&', $additionalParameters).'\'); return hideCM();'
80 80
         );
81 81
 
82 82
         return array_merge($menuItems, $additionalMenuItems);
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     {
92 92
         $icon = sprintf(
93 93
             '<img src="%s" border="0" align="top" alt="" />',
94
-            ExtensionManagementUtility::extRelPath('crawler') . 'Resources/Private/Icons/icon_tx_crawler_configuration.gif'
94
+            ExtensionManagementUtility::extRelPath('crawler').'Resources/Private/Icons/icon_tx_crawler_configuration.gif'
95 95
         );
96 96
 
97 97
         return $icon;
Please login to merge, or discard this patch.
Classes/Task/CrawlerQueueTaskAdditionalFieldProvider.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
 
89 89
         // input for startPage
90 90
         $fieldId = 'task_startPage';
91
-        $fieldCode = '<input name="tx_scheduler[startPage]" type="text" id="' . $fieldId . '" value="' . $task->startPage . '" class="form-control" />';
91
+        $fieldCode = '<input name="tx_scheduler[startPage]" type="text" id="'.$fieldId.'" value="'.$task->startPage.'" class="form-control" />';
92 92
         $additionalFields[$fieldId] = [
93 93
             'code' => $fieldCode,
94 94
             'label' => 'LLL:EXT:crawler/Resources/Private/Language/Backend.xlf:crawler_im.startPage'
@@ -104,10 +104,10 @@  discard block
 block discarded – undo
104 104
             '4' => $GLOBALS['LANG']->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.depth_4'),
105 105
             '99' => $GLOBALS['LANG']->sL('LLL:EXT:lang/Resources/Private/Language/locallang_core.xlf:labels.depth_infi'),
106 106
         ];
107
-        $fieldCode = '<select name="tx_scheduler[depth]" id="' . $fieldId . '" class="form-control">';
107
+        $fieldCode = '<select name="tx_scheduler[depth]" id="'.$fieldId.'" class="form-control">';
108 108
 
109 109
         foreach ($fieldValueArray as $key => $label) {
110
-            $fieldCode .= "\t" . '<option value="' . $key . '"' . (($key == $task->depth) ? ' selected="selected"' : '') . '>' . $label . '</option>';
110
+            $fieldCode .= "\t".'<option value="'.$key.'"'.(($key == $task->depth) ? ' selected="selected"' : '').'>'.$label.'</option>';
111 111
         }
112 112
 
113 113
         $fieldCode .= '</select>';
@@ -119,10 +119,10 @@  discard block
 block discarded – undo
119 119
         // combobox for configuration records
120 120
         $recordsArray = $this->getCrawlerConfigurationRecords();
121 121
         $fieldId = 'task_configuration';
122
-        $fieldCode = '<select name="tx_scheduler[configuration][]" multiple="multiple" id="' . $fieldId . '" class="form-control">';
123
-        $fieldCode .= "\t" . '<option value=""></option>';
122
+        $fieldCode = '<select name="tx_scheduler[configuration][]" multiple="multiple" id="'.$fieldId.'" class="form-control">';
123
+        $fieldCode .= "\t".'<option value=""></option>';
124 124
         for ($i = 0; $i < count($recordsArray); $i++) {
125
-            $fieldCode .= "\t" . '<option ' . $this->getSelectedState($task->configuration, $recordsArray[$i]['name']) . 'value="' . $recordsArray[$i]['name'] . '">' . $recordsArray[$i]['name'] . '</option>';
125
+            $fieldCode .= "\t".'<option '.$this->getSelectedState($task->configuration, $recordsArray[$i]['name']).'value="'.$recordsArray[$i]['name'].'">'.$recordsArray[$i]['name'].'</option>';
126 126
         }
127 127
         $fieldCode .= '</select>';
128 128
 
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
         $result = $GLOBALS['TYPO3_DB']->exec_SELECTquery(
166 166
             '*',
167 167
             'tx_crawler_configuration',
168
-            '1=1' . BackendUtility::deleteClause('tx_crawler_configuration')
168
+            '1=1'.BackendUtility::deleteClause('tx_crawler_configuration')
169 169
         );
170 170
 
171 171
         while ($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($result)) {
Please login to merge, or discard this patch.
Classes/Api/CrawlerApi.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -192,12 +192,12 @@  discard block
 block discarded – undo
192 192
         //if the same page is scheduled for the same time and has not be executed?
193 193
         if ($schedule_timestamp == 0) {
194 194
             //untimed elements need an exec_time with 0 because they can occure multiple times
195
-            $where = 'page_id=' . $page_uid . ' AND exec_time = 0 AND scheduled=' . $schedule_timestamp;
195
+            $where = 'page_id='.$page_uid.' AND exec_time = 0 AND scheduled='.$schedule_timestamp;
196 196
         } else {
197 197
             //timed elementes have got a fixed schedule time, if a record with this time
198 198
             //exists it is maybe queued for the future, or is has been queue for the past and therefore
199 199
             //also been processed.
200
-            $where = 'page_id=' . $page_uid . ' AND scheduled=' . $schedule_timestamp;
200
+            $where = 'page_id='.$page_uid.' AND scheduled='.$schedule_timestamp;
201 201
         }
202 202
 
203 203
         $row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($GLOBALS['TYPO3_DB']->exec_SELECTquery(
@@ -227,7 +227,7 @@  discard block
 block discarded – undo
227 227
 
228 228
         $isPageInQueue = false;
229 229
 
230
-        $whereClause = 'page_id = ' . (integer)$uid;
230
+        $whereClause = 'page_id = '.(integer) $uid;
231 231
 
232 232
         if (false !== $unprocessed_only) {
233 233
             $whereClause .= ' AND exec_time = 0';
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         }
239 239
 
240 240
         if (false !== $timestamp) {
241
-            $whereClause .= ' AND scheduled = ' . (integer)$timestamp;
241
+            $whereClause .= ' AND scheduled = '.(integer) $timestamp;
242 242
         }
243 243
 
244 244
         $count = $GLOBALS['TYPO3_DB']->exec_SELECTcountRows(
@@ -267,10 +267,10 @@  discard block
 block discarded – undo
267 267
     {
268 268
         $uid = intval($uid);
269 269
         $query = 'max(scheduled) as latest';
270
-        $where = ' page_id = ' . $uid;
270
+        $where = ' page_id = '.$uid;
271 271
 
272 272
         if ($future_crawldates_only) {
273
-            $where .= ' AND scheduled > ' . time();
273
+            $where .= ' AND scheduled > '.time();
274 274
         }
275 275
 
276 276
         if ($unprocessed_only) {
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
         $limit = $GLOBALS['TYPO3_DB']->fullQuoteStr($limit, 'tx_crawler_queue');
304 304
 
305 305
         $query = 'scheduled, exec_time, set_id';
306
-        $where = ' page_id = ' . $uid;
306
+        $where = ' page_id = '.$uid;
307 307
 
308 308
         $limit_query = ($limit) ? $limit : null;
309 309
 
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
     {
381 381
         $qid = intval($qid);
382 382
         $table = 'tx_crawler_queue';
383
-        $where = ' qid=' . $qid;
383
+        $where = ' qid='.$qid;
384 384
         $GLOBALS['TYPO3_DB']->exec_DELETEquery($table, $where);
385 385
     }
386 386
 
Please login to merge, or discard this patch.
Classes/Hooks/TsfeHook.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -49,10 +49,10 @@  discard block
 block discarded – undo
49 49
             //@todo: ask service to exclude current call for special reasons: for example no relevance because the language version is not affected
50 50
 
51 51
             list($queueId, $hash) = explode(':', $_SERVER['HTTP_X_T3CRAWLER']);
52
-            list($queueRec) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'tx_crawler_queue', 'qid=' . intval($queueId));
52
+            list($queueRec) = $GLOBALS['TYPO3_DB']->exec_SELECTgetRows('*', 'tx_crawler_queue', 'qid='.intval($queueId));
53 53
 
54 54
             // If a crawler record was found and hash was matching, set it up:
55
-            if (is_array($queueRec) && $hash === md5($queueRec['qid'] . '|' . $queueRec['set_id'] . '|' . $GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'])) {
55
+            if (is_array($queueRec) && $hash === md5($queueRec['qid'].'|'.$queueRec['set_id'].'|'.$GLOBALS['TYPO3_CONF_VARS']['SYS']['encryptionKey'])) {
56 56
                 $params['pObj']->applicationData['tx_crawler']['running'] = true;
57 57
                 $params['pObj']->applicationData['tx_crawler']['parameters'] = unserialize($queueRec['parameters']);
58 58
                 $params['pObj']->applicationData['tx_crawler']['log'] = [];
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                     $params['pObj']->fe_user->user = [];
81 81
                 }
82 82
                 $params['pObj']->fe_user->user['usergroup'] = $grList;
83
-                $params['pObj']->applicationData['tx_crawler']['log'][] = 'User Groups: ' . $grList;
83
+                $params['pObj']->applicationData['tx_crawler']['log'][] = 'User Groups: '.$grList;
84 84
             }
85 85
         }
86 86
     }
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['pollSuccess'] as $pollable) {
126 126
                     if (is_array($params['pObj']->applicationData['tx_crawler']['content']['parameters']['procInstructions']) && in_array($pollable, $params['pObj']->applicationData['tx_crawler']['content']['parameters']['procInstructions'])) {
127 127
                         if (empty($params['pObj']->applicationData['tx_crawler']['success'][$pollable])) {
128
-                            $params['pObj']->applicationData['tx_crawler']['errorlog'][] = 'Error: Pollable extension (' . $pollable . ') did not complete successfully.';
128
+                            $params['pObj']->applicationData['tx_crawler']['errorlog'][] = 'Error: Pollable extension ('.$pollable.') did not complete successfully.';
129 129
                         }
130 130
                     }
131 131
                 }
@@ -135,7 +135,7 @@  discard block
 block discarded – undo
135 135
             $str = serialize($params['pObj']->applicationData['tx_crawler']);
136 136
             //just make sure that no other output distracts this
137 137
             ob_clean();
138
-            header('Content-Length: ' . strlen($str));
138
+            header('Content-Length: '.strlen($str));
139 139
             echo $str;
140 140
             // Exit since we don't want anymore output!
141 141
             exit;
Please login to merge, or discard this patch.
Classes/Utility/TcaUtility.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     {
40 40
         if (is_array($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['procInstructions'])) {
41 41
             foreach ($GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['crawler']['procInstructions'] as $key => $value) {
42
-                $configuration['items'][] = [$value . ' [' . $key . ']', $key, $this->getExtensionIcon($key)];
42
+                $configuration['items'][] = [$value.' ['.$key.']', $key, $this->getExtensionIcon($key)];
43 43
             }
44 44
         }
45 45
 
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
         if (method_exists(ExtensionManagementUtility::class, 'getExtensionKeyByPrefix')) {
60 60
             $parts = explode('_', $key);
61 61
             if (is_array($parts) && count($parts) > 2) {
62
-                $extensionKey = ExtensionManagementUtility::getExtensionKeyByPrefix('tx_' . $parts[1]);
63
-                $extIcon = ExtensionManagementUtility::siteRelPath($extensionKey) . 'ext_icon.gif';
62
+                $extensionKey = ExtensionManagementUtility::getExtensionKeyByPrefix('tx_'.$parts[1]);
63
+                $extIcon = ExtensionManagementUtility::siteRelPath($extensionKey).'ext_icon.gif';
64 64
             }
65 65
         }
66 66
 
Please login to merge, or discard this patch.
Classes/Domain/Repository/QueueRepository.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
     {
65 65
         $db = $this->getDB();
66 66
         $where = 'process_id_completed=' . $db->fullQuoteStr($process->getProcess_id(), $this->tableName) .
67
-                   ' AND exec_time > 0 ';
67
+                    ' AND exec_time > 0 ';
68 68
         $limit = 1;
69 69
         $groupby = '';
70 70
 
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
     protected function getFirstOrLastObjectByProcess($process, $orderby)
64 64
     {
65 65
         $db = $this->getDB();
66
-        $where = 'process_id_completed=' . $db->fullQuoteStr($process->getProcess_id(), $this->tableName) .
66
+        $where = 'process_id_completed='.$db->fullQuoteStr($process->getProcess_id(), $this->tableName).
67 67
                    ' AND exec_time > 0 ';
68 68
         $limit = 1;
69 69
         $groupby = '';
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      */
89 89
     public function countExecutedItemsByProcess($process)
90 90
     {
91
-        return $this->countItemsByWhereClause('exec_time > 0 AND process_id_completed = ' . $this->getDB()->fullQuoteStr(
91
+        return $this->countItemsByWhereClause('exec_time > 0 AND process_id_completed = '.$this->getDB()->fullQuoteStr(
92 92
             $process->getProcess_id(),
93 93
                 $this->tableName
94 94
         ));
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
      */
104 104
     public function countNonExecutedItemsByProcess($process)
105 105
     {
106
-        return $this->countItemsByWhereClause('exec_time = 0 AND process_id = ' . $this->getDB()->fullQuoteStr(
106
+        return $this->countItemsByWhereClause('exec_time = 0 AND process_id = '.$this->getDB()->fullQuoteStr(
107 107
             $process->getProcess_id(),
108 108
                 $this->tableName
109 109
         ));
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
      */
120 120
     public function countAllPendingItems()
121 121
     {
122
-        return $this->countItemsByWhereClause('exec_time = 0 AND scheduled < ' . time());
122
+        return $this->countItemsByWhereClause('exec_time = 0 AND scheduled < '.time());
123 123
     }
124 124
 
125 125
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      */
133 133
     public function countAllAssignedPendingItems()
134 134
     {
135
-        return $this->countItemsByWhereClause("exec_time = 0 AND scheduled < " . time() . " AND process_id != ''");
135
+        return $this->countItemsByWhereClause("exec_time = 0 AND scheduled < ".time()." AND process_id != ''");
136 136
     }
137 137
 
138 138
     /**
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
      */
146 146
     public function countAllUnassignedPendingItems()
147 147
     {
148
-        return $this->countItemsByWhereClause("exec_time = 0 AND scheduled < " . time() . " AND process_id = ''");
148
+        return $this->countItemsByWhereClause("exec_time = 0 AND scheduled < ".time()." AND process_id = ''");
149 149
     }
150 150
 
151 151
     /**
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
         $res = $db->exec_SELECTquery(
176 176
             "configuration, count(*) as unprocessed, sum(process_id != '') as assignedButUnprocessed",
177 177
             $this->tableName,
178
-            'exec_time = 0 AND scheduled < ' . time(),
178
+            'exec_time = 0 AND scheduled < '.time(),
179 179
             'configuration'
180 180
         );
181 181
         $rows = [];
@@ -199,7 +199,7 @@  discard block
 block discarded – undo
199 199
         $res = $db->exec_SELECTquery(
200 200
             'set_id',
201 201
             $this->tableName,
202
-            'exec_time = 0 AND scheduled < ' . time(),
202
+            'exec_time = 0 AND scheduled < '.time(),
203 203
             'set_id'
204 204
         );
205 205
         $setIds = [];
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
             $res = $db->exec_SELECTquery(
226 226
                 'configuration, count(*) as c',
227 227
                 $this->tableName,
228
-                'set_id in (' . implode(',', $setIds) . ') AND scheduled < ' . time(),
228
+                'set_id in ('.implode(',', $setIds).') AND scheduled < '.time(),
229 229
                 'configuration'
230 230
             );
231 231
             while ($row = $db->sql_fetch_assoc($res)) {
@@ -305,7 +305,7 @@  discard block
 block discarded – undo
305 305
         $res = $db->exec_SELECTquery(
306 306
             'process_id_completed, min(exec_time) as start, max(exec_time) as end, count(*) as urlcount',
307 307
             $this->tableName,
308
-            'exec_time != 0 and exec_time >= ' . intval($start) . ' and exec_time <= ' . intval($end),
308
+            'exec_time != 0 and exec_time >= '.intval($start).' and exec_time <= '.intval($end),
309 309
             'process_id_completed'
310 310
         );
311 311
 
Please login to merge, or discard this patch.
Classes/Domain/Repository/ProcessRepository.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             $this->tableName,
67 67
             $where,
68 68
             '',
69
-            htmlspecialchars($orderField) . ' ' . htmlspecialchars($orderDirection),
69
+            htmlspecialchars($orderField).' '.htmlspecialchars($orderDirection),
70 70
             self::getLimitFromItemCountAndOffset($itemCount, $offset)
71 71
         );
72 72
 
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      */
112 112
     public function countNotTimeouted($ttl)
113 113
     {
114
-        return $this->countByWhere('deleted = 0 AND ttl > ' . intval($ttl));
114
+        return $this->countByWhere('deleted = 0 AND ttl > '.intval($ttl));
115 115
     }
116 116
 
117 117
     /**
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
     {
128 128
         $itemCount = filter_var($itemCount, FILTER_VALIDATE_INT, ['options' => ['min_range' => 1, 'default' => 20]]);
129 129
         $offset = filter_var($offset, FILTER_VALIDATE_INT, ['options' => ['min_range' => 0, 'default' => 0]]);
130
-        $limit = $offset . ', ' . $itemCount;
130
+        $limit = $offset.', '.$itemCount;
131 131
 
132 132
         return $limit;
133 133
     }
Please login to merge, or discard this patch.
template/process/list.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,8 +71,11 @@
 block discarded – undo
71 71
 					</div>
72 72
 				<?php elseif ($process->getState() == 'cancelled'): ?>
73 73
 					<?php echo $this->getLLLabel('LLL:EXT:crawler/Resources/Private/Language/locallang.xml:labels.process.cancelled'); ?>
74
-				<?php else: ?>
75
-					<?php echo $this->getLLLabel('LLL:EXT:crawler/Resources/Private/Language/locallang.xml:labels.process.success'); ?>
74
+				<?php else {
75
+    : ?>
76
+					<?php echo $this->getLLLabel('LLL:EXT:crawler/Resources/Private/Language/locallang.xml:labels.process.success');
77
+}
78
+?>
76 79
 				<?php endif; ?>
77 80
 				</td>
78 81
 			</tr>
Please login to merge, or discard this patch.
Classes/Service/ProcessService.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     public function multiProcess($timeout)
97 97
     {
98 98
         if ($this->processLimit <= 1) {
99
-            throw new \RuntimeException('To run crawler in multi process mode you have to configure the processLimit > 1.' . PHP_EOL);
99
+            throw new \RuntimeException('To run crawler in multi process mode you have to configure the processLimit > 1.'.PHP_EOL);
100 100
         }
101 101
 
102 102
         $pendingItemsStart = $this->queueRepository->countAllPendingItems();
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
             }
115 115
             if ($currentPendingItems == 0) {
116 116
                 if ($this->verbose) {
117
-                    echo 'Finished...' . chr(10);
117
+                    echo 'Finished...'.chr(10);
118 118
                 }
119 119
                 break;
120 120
             }
@@ -126,16 +126,16 @@  discard block
 block discarded – undo
126 126
             }
127 127
             sleep(1);
128 128
             if ($nextTimeOut < time()) {
129
-                $timedOutProcesses = $this->processRepository->findAll('', 'DESC', null, 0, 'ttl >' . $nextTimeOut);
129
+                $timedOutProcesses = $this->processRepository->findAll('', 'DESC', null, 0, 'ttl >'.$nextTimeOut);
130 130
                 $nextTimeOut = time() + $this->timeToLive;
131 131
                 if ($this->verbose) {
132
-                    echo 'Cleanup' . implode(',', $timedOutProcesses->getProcessIds()) . chr(10);
132
+                    echo 'Cleanup'.implode(',', $timedOutProcesses->getProcessIds()).chr(10);
133 133
                 }
134 134
                 $this->crawlerObj->CLI_releaseProcesses($timedOutProcesses->getProcessIds(), true);
135 135
             }
136 136
         }
137 137
         if ($currentPendingItems > 0 && $this->verbose) {
138
-            echo 'Stop with timeout' . chr(10);
138
+            echo 'Stop with timeout'.chr(10);
139 139
         }
140 140
     }
141 141
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
      */
145 145
     protected function reportItemStatus()
146 146
     {
147
-        echo 'Pending:' . $this->queueRepository->countAllPendingItems() . ' / Assigned:' . $this->queueRepository->countAllAssignedPendingItems() . chr(10);
147
+        echo 'Pending:'.$this->queueRepository->countAllPendingItems().' / Assigned:'.$this->queueRepository->countAllAssignedPendingItems().chr(10);
148 148
     }
149 149
 
150 150
     /**
@@ -161,14 +161,14 @@  discard block
 block discarded – undo
161 161
         $currentProcesses = $this->processRepository->countActive();
162 162
         $availableProcessesCount = $this->processLimit - $currentProcesses;
163 163
         $requiredProcessesCount = ceil($this->queueRepository->countAllUnassignedPendingItems() / $this->countInARun);
164
-        $startProcessCount = min([$availableProcessesCount,$requiredProcessesCount]);
164
+        $startProcessCount = min([$availableProcessesCount, $requiredProcessesCount]);
165 165
         if ($startProcessCount <= 0) {
166 166
             return $ret;
167 167
         }
168 168
         if ($startProcessCount && $this->verbose) {
169
-            echo 'Start ' . $startProcessCount . ' new processes (Running:' . $currentProcesses . ')';
169
+            echo 'Start '.$startProcessCount.' new processes (Running:'.$currentProcesses.')';
170 170
         }
171
-        for ($i = 0;$i < $startProcessCount;$i++) {
171
+        for ($i = 0; $i < $startProcessCount; $i++) {
172 172
             usleep(100);
173 173
             if ($this->startProcess()) {
174 174
                 if ($this->verbose) {
@@ -194,16 +194,16 @@  discard block
 block discarded – undo
194 194
 
195 195
         // Check whether OS is Windows
196 196
         if (TYPO3_OS === 'WIN') {
197
-            $completePath = escapeshellcmd('start ' . $this->getCrawlerCliPath());
197
+            $completePath = escapeshellcmd('start '.$this->getCrawlerCliPath());
198 198
         } else {
199
-            $completePath = '(' . escapeshellcmd($this->getCrawlerCliPath()) . ' &) > /dev/null';
199
+            $completePath = '('.escapeshellcmd($this->getCrawlerCliPath()).' &) > /dev/null';
200 200
         }
201 201
 
202 202
         $fileHandler = system($completePath);
203 203
         if ($fileHandler === false) {
204 204
             throw new \Exception('could not start process!');
205 205
         } else {
206
-            for ($i = 0;$i < 10;$i++) {
206
+            for ($i = 0; $i < 10; $i++) {
207 207
                 if ($this->processRepository->countNotTimeouted($ttl) > $current) {
208 208
                     return true;
209 209
                 }
@@ -220,11 +220,11 @@  discard block
 block discarded – undo
220 220
      */
221 221
     public function getCrawlerCliPath()
222 222
     {
223
-        $phpPath = $this->crawlerObj->extensionSettings['phpPath'] . ' ';
223
+        $phpPath = $this->crawlerObj->extensionSettings['phpPath'].' ';
224 224
         $pathToTypo3 = rtrim(GeneralUtility::getIndpEnv('TYPO3_DOCUMENT_ROOT'), '/');
225 225
         $pathToTypo3 .= rtrim(GeneralUtility::getIndpEnv('TYPO3_SITE_PATH'), '/');
226 226
         $cliPart = '/typo3/cli_dispatch.phpsh crawler';
227
-        $scriptPath = $phpPath . $pathToTypo3 . $cliPart;
227
+        $scriptPath = $phpPath.$pathToTypo3.$cliPart;
228 228
 
229 229
         if (TYPO3_OS === 'WIN') {
230 230
             $scriptPath = str_replace('/', '\\', $scriptPath);
Please login to merge, or discard this patch.