Passed
Branch master (05c266)
by Andreas
09:55
created
lib/midcom/services/i18n/l10n.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -226,7 +226,7 @@
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.
lib/midcom/services/rcs/main.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,8 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
lib/midcom/services/uimessages.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.