@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | $this->startPage = 0; |
85 | 85 | } |
86 | 86 | |
87 | - $_SERVER['argv'] = [$_SERVER['argv'][0], $this->startPage,'-ss', '-d', $this->depth, '-o', self::MODE, '-conf', implode(',', $this->configuration)]; |
|
87 | + $_SERVER['argv'] = [$_SERVER['argv'][0], $this->startPage, '-ss', '-d', $this->depth, '-o', self::MODE, '-conf', implode(',', $this->configuration)]; |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -100,6 +100,6 @@ discard block |
||
100 | 100 | $this->startPage = 0; |
101 | 101 | } |
102 | 102 | |
103 | - return implode(',', $this->configuration) . ' (depth: ' . $this->depth . ', startPage:' . $this->startPage . ')'; |
|
103 | + return implode(',', $this->configuration).' (depth: '.$this->depth.', startPage:'.$this->startPage.')'; |
|
104 | 104 | } |
105 | 105 | } |
@@ -67,7 +67,7 @@ discard block |
||
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 |
||
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 |
||
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; |
@@ -88,7 +88,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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)) { |
@@ -49,10 +49,10 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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; |
@@ -39,7 +39,7 @@ discard block |
||
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 |
||
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 |
@@ -64,7 +64,7 @@ |
||
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 |
@@ -63,7 +63,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
@@ -66,7 +66,7 @@ discard block |
||
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 |
||
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 |
||
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 | } |
@@ -71,8 +71,11 @@ |
||
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> |
@@ -96,7 +96,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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); |