@@ -226,7 +226,7 @@ |
||
226 | 226 | private function error(string $message, string $filename, int $line) : midcom_error |
227 | 227 | { |
228 | 228 | $line++; // Array is 0-indexed |
229 | - return new midcom_error('L10n DB SYNTAX ERROR: ' . $message . ' at ' . $filename . ' ' . $line); |
|
229 | + return new midcom_error('L10n DB SYNTAX ERROR: ' . $message . ' at ' . $filename . ' ' . $line); |
|
230 | 230 | } |
231 | 231 | |
232 | 232 | /** |
@@ -56,7 +56,8 @@ |
||
56 | 56 | try { |
57 | 57 | $backend->update(midcom::get()->auth->user->id ?? 'NOBODY', $message); |
58 | 58 | return true; |
59 | - } catch (midcom_error $e) { |
|
59 | + } |
|
60 | + catch (midcom_error $e) { |
|
60 | 61 | debug_add('RCS: Could not save file!'); |
61 | 62 | $e->log(); |
62 | 63 | return false; |
@@ -144,7 +144,7 @@ |
||
144 | 144 | */ |
145 | 145 | public function show(bool $show_simple = false) |
146 | 146 | { |
147 | - if ( $show_simple |
|
147 | + if ($show_simple |
|
148 | 148 | || !midcom::get()->auth->can_user_do('midcom:ajax', null, static::class)) { |
149 | 149 | $this->show_simple(); |
150 | 150 | return; |