Completed
Branch develop (c03385)
by Schlaefer
04:24
created
plugins/Admin/src/View/Helper/AdminHelper.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
      *
67 67
      * @param string $text text
68 68
      * @param null $type type
69
-     * @return mixed
69
+     * @return string|null
70 70
      */
71 71
     public function badge($text, $type = null)
72 72
     {
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
     {
100 100
         $options += ['class' => ''];
101 101
         // set breadcrumb item class for Bootstrap
102
-        $options['class'] = $options['class'] . ' breadcrumb-item';
102
+        $options['class'] = $options['class'].' breadcrumb-item';
103 103
         // last item in breadcrump is current (active) page and not linked
104 104
         if ($url === false) {
105 105
             // set breadcrumb active item class for Bootstrap
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
             PREG_SPLIT_NO_EMPTY
128 128
         );
129 129
         if (empty($errors)) {
130
-            return '<p>' . __('No log file found.') . '</p>';
130
+            return '<p>'.__('No log file found.').'</p>';
131 131
         }
132 132
 
133 133
         $out = '';
@@ -138,11 +138,11 @@  discard block
 block discarded – undo
138 138
             $_i = self::tagId();
139 139
             $_details = $e->details();
140 140
             if (!empty($_details)) {
141
-                $out .= '<button class="btn btn-mini" style="float:right;" onclick="$(\'#' . $_i . '\').toggle(); return false;">' . __(
141
+                $out .= '<button class="btn btn-mini" style="float:right;" onclick="$(\'#'.$_i.'\').toggle(); return false;">'.__(
142 142
                     'Details'
143
-                ) . '</button>' . "\n";
143
+                ).'</button>'."\n";
144 144
             }
145
-            $out .= '<pre style="font-size: 10px;">' . "\n";
145
+            $out .= '<pre style="font-size: 10px;">'."\n";
146 146
             $out .= '<div class="row"><div class="span2" style="text-align: right">';
147 147
             $out .= $this->TimeH->formatTime($e->time(), 'eng');
148 148
 
@@ -150,12 +150,12 @@  discard block
 block discarded – undo
150 150
             $out .= '<div class="span7">';
151 151
             $out .= $e->message();
152 152
             if (!empty($_details)) {
153
-                $out .= '<span id="' . $_i . '" style="display: none;">' . "\n";
153
+                $out .= '<span id="'.$_i.'" style="display: none;">'."\n";
154 154
                 $out .= $_details;
155 155
                 $out .= '</span>';
156 156
             }
157 157
             $out .= '</div></div>';
158
-            $out .= '</pre>' . "\n";
158
+            $out .= '</pre>'."\n";
159 159
             if ($k++ > $_nErrorsToShow) {
160 160
                 break;
161 161
             }
Please login to merge, or discard this patch.
plugins/Bookmarks/src/Controller/BookmarksController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,6 @@
 block discarded – undo
20 20
 use Cake\Http\Exception\MethodNotAllowedException;
21 21
 use Cake\Http\Exception\NotFoundException;
22 22
 use Cake\ORM\Entity;
23
-use Cake\ORM\Query;
24
-use Saito\App\Registry;
25 23
 use Saito\Exception\SaitoForbiddenException;
26 24
 
27 25
 /**
Please login to merge, or discard this patch.
src/Controller/AppController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use Cake\Event\Event;
10 10
 use Cake\Http\Http\Response;
11 11
 use Cake\I18n\I18n;
12
-use Cake\Routing\Router;
13 12
 use Saito\App\SettingsImmutable;
14 13
 use Saito\Event\SaitoEventManager;
15 14
 use Saito\User\CurrentUser\CurrentUser;
Please login to merge, or discard this patch.
src/Controller/Component/ParserComponent.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 use App\Controller\ErrorController;
16 16
 use Cake\Controller\Component;
17 17
 use Cake\Core\Configure;
18
-use Cake\ORM\TableRegistry;
19 18
 use Cake\Routing\Router;
20 19
 use Saito\App\Registry;
21 20
 use Saito\Smiley\SmileyLoader;
Please login to merge, or discard this patch.
src/Controller/EntriesController.php 1 patch
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@  discard block
 block discarded – undo
9 9
 
10 10
 namespace App\Controller;
11 11
 
12
-use App\Controller\Component\CurrentUserComponent;
13 12
 use App\Controller\Component\MarkAsReadComponent;
14 13
 use App\Controller\Component\ThreadsComponent;
15 14
 use App\Model\Entity\Entry;
@@ -21,9 +20,7 @@  discard block
 block discarded – undo
21 20
 use Cake\Http\Exception\ForbiddenException;
22 21
 use Cake\Http\Exception\MethodNotAllowedException;
23 22
 use Cake\Http\Exception\NotFoundException;
24
-use Cake\I18n\Time;
25 23
 use Cake\Routing\RequestActionTrait;
26
-use Saito\App\Registry;
27 24
 use Saito\Posting\Posting;
28 25
 use Saito\User\ForumsUserInterface;
29 26
 use Stopwatch\Lib\Stopwatch;
Please login to merge, or discard this patch.