@@ -52,7 +52,7 @@ |
||
52 | 52 | * @param string $uri |
53 | 53 | * @param TypoScriptFrontendController $frontend |
54 | 54 | * |
55 | - * @return array |
|
55 | + * @return string[] |
|
56 | 56 | * |
57 | 57 | * @throws \Exception |
58 | 58 | * |
@@ -38,7 +38,7 @@ |
||
38 | 38 | * |
39 | 39 | * Wrapper around core functionality to keep compatibility with TYPO3 6.2 |
40 | 40 | * |
41 | - * @param $table |
|
41 | + * @param string $table |
|
42 | 42 | * @param array $row |
43 | 43 | * |
44 | 44 | * @return string |
@@ -111,7 +111,7 @@ |
||
111 | 111 | * This method is used to set the uid of the queue entry |
112 | 112 | * where the reason is relevant for. |
113 | 113 | * |
114 | - * @param int $entry_id |
|
114 | + * @param int $entry_uid |
|
115 | 115 | */ |
116 | 116 | public function setQueueEntryUid($entry_uid) |
117 | 117 | { |
@@ -690,6 +690,7 @@ discard block |
||
690 | 690 | * @param array Page row or set-id |
691 | 691 | * @param string Title string |
692 | 692 | * @param int Items per Page setting |
693 | + * @param string $titleString |
|
693 | 694 | * |
694 | 695 | * @return string HTML <tr> content (one or more) |
695 | 696 | */ |
@@ -1189,6 +1190,8 @@ discard block |
||
1189 | 1190 | * @param string Selector box name |
1190 | 1191 | * @param string Selector box value (array for multiple...) |
1191 | 1192 | * @param bool If set, will draw multiple box. |
1193 | + * @param string $name |
|
1194 | + * @param integer $multiple |
|
1192 | 1195 | * |
1193 | 1196 | * @return string HTML select element |
1194 | 1197 | */ |
@@ -115,6 +115,7 @@ discard block |
||
115 | 115 | * Set the page id. |
116 | 116 | * |
117 | 117 | * @param int page id |
118 | + * @param integer $pageId |
|
118 | 119 | */ |
119 | 120 | public function setPageId($pageId) |
120 | 121 | { |
@@ -291,7 +292,7 @@ discard block |
||
291 | 292 | * |
292 | 293 | * @param int $seconds |
293 | 294 | * |
294 | - * @return int |
|
295 | + * @return double |
|
295 | 296 | */ |
296 | 297 | protected function asMinutes($seconds) |
297 | 298 | { |
@@ -448,7 +449,7 @@ discard block |
||
448 | 449 | * just a wrapper should be done in a cleaner way |
449 | 450 | * later on. |
450 | 451 | * |
451 | - * @param $label |
|
452 | + * @param string $label |
|
452 | 453 | * |
453 | 454 | * @return string |
454 | 455 | */ |
@@ -71,8 +71,11 @@ |
||
71 | 71 | </div> |
72 | 72 | <?php elseif ($process->getState() == 'cancelled'): ?> |
73 | 73 | <?php echo $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.process.cancelled'); ?> |
74 | - <?php else: ?> |
|
75 | - <?php echo $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.process.success'); ?> |
|
74 | + <?php else { |
|
75 | + : ?> |
|
76 | + <?php echo $this->getLLLabel('LLL:EXT:crawler/modfunc1/locallang.xml:labels.process.success'); |
|
77 | +} |
|
78 | +?> |
|
76 | 79 | <?php endif; ?> |
77 | 80 | </td> |
78 | 81 | </tr> |
@@ -66,7 +66,7 @@ |
||
66 | 66 | { |
67 | 67 | $db = $this->getDB(); |
68 | 68 | $where = 'process_id_completed='.$db->fullQuoteStr($process->getProcess_id(), $this->tableName). |
69 | - ' AND exec_time > 0 '; |
|
69 | + ' AND exec_time > 0 '; |
|
70 | 70 | $limit = 1; |
71 | 71 | $groupby = ''; |
72 | 72 |
@@ -153,7 +153,7 @@ discard block |
||
153 | 153 | if ($startProcessCount && $this->verbose) { |
154 | 154 | echo 'Start '.$startProcessCount.' new processes (Running:'.$currentProcesses.')'; |
155 | 155 | } |
156 | - for ($i = 0;$i < $startProcessCount;++$i) { |
|
156 | + for ($i = 0; $i < $startProcessCount; ++$i) { |
|
157 | 157 | usleep(100); |
158 | 158 | if ($this->startProcess()) { |
159 | 159 | if ($this->verbose) { |
@@ -182,7 +182,7 @@ discard block |
||
182 | 182 | if (system($completePath) === false) { |
183 | 183 | throw new Exception('could not start process!'); |
184 | 184 | } else { |
185 | - for ($i = 0;$i < 10;++$i) { |
|
185 | + for ($i = 0; $i < 10; ++$i) { |
|
186 | 186 | if ($this->processRepository->countNotTimeouted($ttl) > $current) { |
187 | 187 | return true; |
188 | 188 | } |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | { |
202 | 202 | $phpPath = $this->crawlerObj->extensionSettings['phpPath'].' '; |
203 | 203 | $pathToTypo3 = rtrim(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_DOCUMENT_ROOT'), '/'); |
204 | - $pathToTypo3 .= rtrim(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_PATH'), '/'); |
|
204 | + $pathToTypo3 .= rtrim(\TYPO3\CMS\Core\Utility\GeneralUtility::getIndpEnv('TYPO3_SITE_PATH'), '/'); |
|
205 | 205 | $cliPart = '/typo3/cli_dispatch.phpsh crawler'; |
206 | 206 | |
207 | 207 | return $phpPath.$pathToTypo3.$cliPart; |