@@ -25,8 +25,8 @@ |
||
25 | 25 | |
26 | 26 | protected function execute(InputInterface $input, OutputInterface $output) |
27 | 27 | { |
28 | - require_once __DIR__.'/../../../okapi/core.php'; |
|
29 | - require_once __DIR__.'/../../../okapi/vendor/autoload.php'; |
|
28 | + require_once __DIR__ . '/../../../okapi/core.php'; |
|
29 | + require_once __DIR__ . '/../../../okapi/vendor/autoload.php'; |
|
30 | 30 | Okapi::execute_cron5_cronjobs(); |
31 | 31 | } |
32 | 32 | } |
@@ -48,7 +48,7 @@ |
||
48 | 48 | // save plain text input => convert to HTML; |
49 | 49 | // also implemented in okapi/services/logs/submit.php |
50 | 50 | $text = nl2br(htmlspecialchars($text, ENT_COMPAT, 'UTF-8')); |
51 | - $text = str_replace(' ', ' ', $text); // can produce new ' ' (' ' + ' ') |
|
51 | + $text = str_replace(' ', ' ', $text); // can produce new ' ' (' ' + ' ') |
|
52 | 52 | $text = str_replace(' ', ' ', $text); |
53 | 53 | } else { |
54 | 54 | // mode switch from HTML editor to plain text, or decode HTML-encoded plain text |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | } else { |
87 | 87 | $position = PHP_INT_MAX; |
88 | 88 | } |
89 | - $position = min($position, $allpics ? $allpics[count($allpics)-1]['seq'] + 1 : 1); |
|
89 | + $position = min($position, $allpics ? $allpics[count($allpics) - 1]['seq'] + 1 : 1); |
|
90 | 90 | |
91 | 91 | // uploaded file ok? |
92 | 92 | if (isset($_REQUEST['ok'])) { // Ocprop |
@@ -233,7 +233,7 @@ discard block |
||
233 | 233 | } |
234 | 234 | $tpl->assign('allpics', $allpics); |
235 | 235 | $tpl->assign('position', $position); |
236 | - $tpl->assign('appendseq', $allpics ? $allpics[count($allpics)-1]['seq']+1 : 1); |
|
236 | + $tpl->assign('appendseq', $allpics ? $allpics[count($allpics) - 1]['seq'] + 1 : 1); |
|
237 | 237 | } |
238 | 238 | |
239 | 239 | $rsCache = sql("SELECT `wp_oc`, `name` FROM `caches` WHERE `cache_id`='&1'", $picture->getCacheId()); |
@@ -466,7 +466,7 @@ |
||
466 | 466 | $coords = sql_fetch_assoc_table($rsCoords); |
467 | 467 | |
468 | 468 | if ($coords) { |
469 | - $lastcoorddate = $coords[count($coords)-1]['date']; |
|
469 | + $lastcoorddate = $coords[count($coords) - 1]['date']; |
|
470 | 470 | $coords[] = [ |
471 | 471 | 'date' => '0000-00-00', |
472 | 472 | 'latitude' => $coords[count($coords) - 1]['latitude'], |
@@ -80,7 +80,7 @@ |
||
80 | 80 | \set_php_locale(); |
81 | 81 | |
82 | 82 | if ($this->translate->t('INTERNAL_LANG', 'all', 'OcSmarty.class.php', '') !== $sLanguage) { |
83 | - echo 'setlocale() failed to set language to ' . $sLanguage ."\n"; |
|
83 | + echo 'setlocale() failed to set language to ' . $sLanguage . "\n"; |
|
84 | 84 | die("Is the translation of INTERNAL_LANG correct?\n"); |
85 | 85 | } |
86 | 86 |
@@ -6,7 +6,7 @@ |
||
6 | 6 | * @subpackage plugins |
7 | 7 | */ |
8 | 8 | |
9 | -require_once __DIR__.'/../../../lib2/smiley.inc.php'; |
|
9 | +require_once __DIR__ . '/../../../lib2/smiley.inc.php'; |
|
10 | 10 | |
11 | 11 | /** |
12 | 12 | * @param $string |