@@ -41,7 +41,7 @@ |
||
41 | 41 | } |
42 | 42 | |
43 | 43 | /** |
44 | - * @param $path |
|
44 | + * @param string $path |
|
45 | 45 | * @return TranslationStruct[] |
46 | 46 | */ |
47 | 47 | private function readCrowdinCsv($path) |
@@ -25,7 +25,7 @@ |
||
25 | 25 | |
26 | 26 | protected function execute(InputInterface $input, OutputInterface $output) |
27 | 27 | { |
28 | - require_once __DIR__.'/../../../okapi/autoload.php'; |
|
28 | + require_once __DIR__ . '/../../../okapi/autoload.php'; |
|
29 | 29 | Okapi::execute_prerequest_cronjobs(); |
30 | 30 | Okapi::execute_cron5_cronjobs(); |
31 | 31 | } |
@@ -71,7 +71,7 @@ |
||
71 | 71 | $cursor[$key] = $value; |
72 | 72 | } |
73 | 73 | |
74 | - $logEntry->id = (int) hexdec($cursor['i']); |
|
74 | + $logEntry->id = (int)hexdec($cursor['i']); |
|
75 | 75 | |
76 | 76 | $timeStamp = $entry['__REALTIME_TIMESTAMP']; |
77 | 77 | $logEntry->created = \DateTimeImmutable::createFromFormat( |
@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | public function toDatabaseArray() |
31 | 31 | { |
32 | 32 | return [ |
33 | - 'id' => (int) $this->id, |
|
33 | + 'id' => (int)$this->id, |
|
34 | 34 | 'email' => $this->email, |
35 | 35 | 'status' => $this->status, |
36 | 36 | 'created' => $this->created, |
@@ -43,7 +43,7 @@ discard block |
||
43 | 43 | */ |
44 | 44 | public function fromDatabaseArray(array $data) |
45 | 45 | { |
46 | - $this->id = (int) $data['id']; |
|
46 | + $this->id = (int)$data['id']; |
|
47 | 47 | $this->email = $data['email']; |
48 | 48 | $this->status = $data['status']; |
49 | 49 | $this->created = $data['created']; |
@@ -56,7 +56,7 @@ |
||
56 | 56 | |
57 | 57 | public function fromCsvArray(array $data) |
58 | 58 | { |
59 | - $this->identifier = (int) $data['Identifier']; |
|
59 | + $this->identifier = (int)$data['Identifier']; |
|
60 | 60 | $this->sourceString = $data['SourceString']; |
61 | 61 | $this->comment = $data['Comment']; |
62 | 62 | $this->de = $data['DE']; |
@@ -505,8 +505,8 @@ |
||
505 | 505 | } |
506 | 506 | |
507 | 507 | $coords = []; |
508 | - if ($this->getType() != 7 && $this->getType() != 8 && // quiz cache |
|
509 | - $this->hasAttribute(61) != true && // safari cache |
|
508 | + if ($this->getType() != 7 && $this->getType() != 8 && // quiz cache |
|
509 | + $this->hasAttribute(61) != true && // safari cache |
|
510 | 510 | $this->getStatus() != 5 // unpublished cache |
511 | 511 | ) { |
512 | 512 | $rsCoords = sql( |
@@ -68,9 +68,9 @@ discard block |
||
68 | 68 | /** |
69 | 69 | * str = single word |
70 | 70 | * @param $str |
71 | - * @param $simple |
|
71 | + * @param boolean $simple |
|
72 | 72 | * |
73 | - * @return array |
|
73 | + * @return string |
|
74 | 74 | */ |
75 | 75 | function ftsearch_split(&$str, $simple) |
76 | 76 | { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | * str = single word |
142 | 142 | * @param $str |
143 | 143 | * |
144 | - * @return mixed|string |
|
144 | + * @return string |
|
145 | 145 | */ |
146 | 146 | function ftsearch_text2simple($str) |
147 | 147 | { |
@@ -171,7 +171,7 @@ discard block |
||
171 | 171 | * str = single word |
172 | 172 | * @param $str |
173 | 173 | * |
174 | - * @return mixed|string |
|
174 | + * @return string |
|
175 | 175 | */ |
176 | 176 | function ftsearch_text2sort($str) |
177 | 177 | { |
@@ -314,7 +314,7 @@ discard block |
||
314 | 314 | /** |
315 | 315 | * @param $text |
316 | 316 | * |
317 | - * @return mixed|string |
|
317 | + * @return string |
|
318 | 318 | */ |
319 | 319 | function ftsearch_strip_html($text) |
320 | 320 | { |
@@ -17,7 +17,7 @@ discard block |
||
17 | 17 | ['ai', 'ei'], |
18 | 18 | ['ou', 'u'], |
19 | 19 | ['th', 't'], |
20 | - ['ph','f'], |
|
20 | + ['ph', 'f'], |
|
21 | 21 | ['oh', 'o'], |
22 | 22 | ['ah', 'a'], |
23 | 23 | ['eh', 'e'], |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | $str = ''; |
102 | 102 | |
103 | 103 | ftsearch_load_ignores(); |
104 | - for ($i = count($astr) - 1; $i >= 0; $i --) { |
|
104 | + for ($i = count($astr) - 1; $i >= 0; $i--) { |
|
105 | 105 | // ignore? |
106 | 106 | if (array_search(mb_strtolower($astr[$i]), $ftsearch_ignores) !== false) { |
107 | 107 | unset($astr[$i]); |
@@ -156,7 +156,7 @@ discard block |
||
156 | 156 | |
157 | 157 | // doppelte chars ersetzen |
158 | 158 | $ordZ = ord('z'); |
159 | - for ($c = ord('a'); $c <= $ordZ; $c ++) { |
|
159 | + for ($c = ord('a'); $c <= $ordZ; $c++) { |
|
160 | 160 | $old_str = ''; |
161 | 161 | while ($old_str !== $str) { |
162 | 162 | $old_str = $str; |
@@ -27,7 +27,7 @@ |
||
27 | 27 | $select = ''; |
28 | 28 | $joins = ''; |
29 | 29 | foreach (['de', 'fr', 'nl', 'es', 'pl', 'it', 'ru'] as $languageKey) { |
30 | - $joins .= "\n".' LEFT JOIN sys_trans_text ' . $languageKey . ' ON ' . $languageKey . '.trans_id = source.trans_id AND ' . $languageKey . '.lang = "' . $languageKey . '" '; |
|
30 | + $joins .= "\n" . ' LEFT JOIN sys_trans_text ' . $languageKey . ' ON ' . $languageKey . '.trans_id = source.trans_id AND ' . $languageKey . '.lang = "' . $languageKey . '" '; |
|
31 | 31 | $select .= ', ' . $languageKey . '.text as ' . $languageKey . ' '; |
32 | 32 | } |
33 | 33 |
@@ -52,7 +52,7 @@ |
||
52 | 52 | 'OC_COOKIE_NAME' => $opt['session']['cookiename'] . 'data', |
53 | 53 | 'VERSION_FILE' => __DIR__ . '/okapi/meta.php', |
54 | 54 | 'OCDE_HTML_PURIFIER_SETTINGS' |
55 | - => $opt['html_purifier'], |
|
55 | + => $opt['html_purifier'], |
|
56 | 56 | 'GITHUB_ACCESS_TOKEN' => $opt['okapi']['github_access_token'], |
57 | 57 | ]; |
58 | 58 | } |