@@ -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()); |
@@ -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 |
@@ -36,7 +36,7 @@ discard block |
||
36 | 36 | // mode switch from plain text to HTML editor => convert HTML special chars |
37 | 37 | $text = nl2br(htmlspecialchars($text)); |
38 | 38 | // .. and smilies |
39 | - $text = ' ' . $text . ' '; // see Redmine #1103 |
|
39 | + $text = ' ' . $text . ' '; // see Redmine #1103 |
|
40 | 40 | $text = str_replace($smiley['text'], $smiley['spaced_image'], $text); |
41 | 41 | if (substr($text, 0, 1) == ' ') { |
42 | 42 | $text = substr($text, 1); |
@@ -59,7 +59,7 @@ discard block |
||
59 | 59 | // convert to HTML for storing to database |
60 | 60 | // also implemented in okapi/services/logs/submit.php |
61 | 61 | $text = nl2br(htmlspecialchars($text, ENT_COMPAT, 'UTF-8')); |
62 | - $text = str_replace(' ', ' ', $text); // can produce new ' ' (' ' + ' ') |
|
62 | + $text = str_replace(' ', ' ', $text); // can produce new ' ' (' ' + ' ') |
|
63 | 63 | $text = str_replace(' ', ' ', $text); |
64 | 64 | } else { |
65 | 65 | // mode switch from HTML editor to plain text, or decode HTML-encoded plain text |
@@ -138,7 +138,7 @@ |
||
138 | 138 | $allpics = 'ownlogs'; |
139 | 139 | } |
140 | 140 | if ($allpics == 'ownlogs' || $allpics == 'owncaches') { |
141 | - $gallery = ($allpics == 'ownlogs' ? LogPics::FOR_OWNLOGS_GALLERY : LogPics::FOR_OWNCACHES_GALLERY); |
|
141 | + $gallery = ($allpics == 'ownlogs' ? LogPics::FOR_OWNLOGS_GALLERY : LogPics::FOR_OWNCACHES_GALLERY); |
|
142 | 142 | $all_pictures = LogPics::get($gallery); |
143 | 143 | LogPics::setPaging($gallery, 0, 0, "myhome.php?allpics=" . $allpics); |
144 | 144 | } else { |
@@ -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) |
@@ -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']; |