Completed
Push — master ( af9b3a...beea93 )
by Cheren
02:12
created
src/Event/EventManager.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
73 73
      * Emits an event.
74 74
      *
75 75
      * @param string $name
76
-     * @param object|null $subject
76
+     * @param \Core\Controller\AppController $subject
77 77
      * @param array|null $data
78 78
      * @return Event
79 79
      */
Please login to merge, or discard this patch.
config/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
 use Cake\Routing\Router;
17 17
 use Cake\Routing\RouteBuilder;
18 18
 
19
-Router::plugin('Core', ['path' => '/'], function (RouteBuilder $routeBuilder) {
20
-    $routeBuilder->prefix('admin', function (RouteBuilder $routeBuilder) {
19
+Router::plugin('Core', ['path' => '/'], function(RouteBuilder $routeBuilder) {
20
+    $routeBuilder->prefix('admin', function(RouteBuilder $routeBuilder) {
21 21
         $routeBuilder->connect('/:controller/:action/*', []);
22 22
         $routeBuilder->connect('/dashboard', ['controller' => 'Root', 'action' => 'dashboard']);
23 23
         $routeBuilder->connect('/', ['controller' => 'Root', 'action' => 'dashboard']);
Please login to merge, or discard this patch.
src/View/Helper/LessHelper.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
      *
193 193
      * @param string $path
194 194
      * @param string $fileHead
195
-     * @return mixed
195
+     * @return string
196 196
      */
197 197
     protected function _normalizeContent($path, $fileHead)
198 198
     {
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      * Preg replace url.
236 236
      *
237 237
      * @param string $css
238
-     * @return mixed
238
+     * @return string
239 239
      */
240 240
     protected function _replaceUrl($css)
241 241
     {
Please login to merge, or discard this patch.
src/View/Helper/Traits/HelperTrait.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,6 @@
 block discarded – undo
17 17
 
18 18
 use JBZoo\Utils\Str;
19 19
 use Cake\Utility\Hash;
20
-use Cake\Core\Configure;
21 20
 
22 21
 /**
23 22
  * Class HelperTrait
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -61,7 +61,7 @@
 block discarded – undo
61 61
      * Create current icon.
62 62
      *
63 63
      * @param HtmlHelper $html
64
-     * @param string|int $title
64
+     * @param string|null $title
65 65
      * @param array $options
66 66
      * @return array
67 67
      */
Please login to merge, or discard this patch.
src/Nav.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@
 block discarded – undo
192 192
     /**
193 193
      * Clear menu items.
194 194
      *
195
-     * @param $menu
195
+     * @param string $menu
196 196
      * @throws \UnexpectedValueException
197 197
      */
198 198
     protected static function _clear($menu)
Please login to merge, or discard this patch.
src/Utility/Macros.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,8 +69,8 @@
 block discarded – undo
69 69
     /**
70 70
      * Add new value in list.
71 71
      *
72
-     * @param string|int $key
73
-     * @param string|int $val
72
+     * @param string $key
73
+     * @param string $val
74 74
      * @return $this
75 75
      */
76 76
     public function set($key, $val)
Please login to merge, or discard this patch.
plugin.manifest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,12 +29,12 @@  discard block
 block discarded – undo
29 29
         'description' => 'Core plugin for UnionCMS'
30 30
     ],
31 31
 
32
-    'Controller.initialize' => function (Controller $controller) {
32
+    'Controller.initialize' => function(Controller $controller) {
33 33
         $controller->loadComponent('RequestHandler');
34 34
         $controller->loadComponent('Flash');
35 35
     },
36 36
 
37
-    'View.initialize' => function (AppView $view) {
37
+    'View.initialize' => function(AppView $view) {
38 38
         $view->loadHelper('Core.Nav');
39 39
         $view->loadHelper('Core.Less');
40 40
         $view->loadHelper('Core.Assets');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $view->loadHelper('Html', ['className' => 'Core.Html']);
46 46
         $view->loadHelper('Form', [
47 47
             'className' => 'Core.Form',
48
-            'prepareBtnClass' => function (\Core\View\Helper\FormHelper $html, $options, $button) {
48
+            'prepareBtnClass' => function(\Core\View\Helper\FormHelper $html, $options, $button) {
49 49
                 $options = $html->addClass($options, 'waves-effect waves-light btn');
50 50
                 if (!empty($button)) {
51 51
                     $options = $html->addClass($options, Str::trim((string) $button));
Please login to merge, or discard this patch.
src/View/Helper/Traits/IncludeTrait.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@
 block discarded – undo
179 179
      * @param string|array $path
180 180
      * @param array $options
181 181
      * @param string $type
182
-     * @return bool|null|string
182
+     * @return string|null
183 183
      */
184 184
     protected function _include($path, array $options = [], $type = 'css')
185 185
     {
Please login to merge, or discard this patch.
src/Utility/Toolbar.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -142,7 +142,7 @@
 block discarded – undo
142 142
      * Finds an partial filename, returns false on failure.
143 143
      *
144 144
      * @param string $name
145
-     * @return bool|string
145
+     * @return string|false
146 146
      */
147 147
     protected function _getLayoutPartialPath($name)
148 148
     {
Please login to merge, or discard this patch.