Completed
Push — master ( b58116...9afd96 )
by Cheren
08:23
created
plugin.manifest.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  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('Core.App');
34 34
         $controller->loadComponent('Core.Move');
35 35
         $controller->loadComponent('Core.Process');
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         ]);
40 40
     },
41 41
 
42
-    'View.initialize' => function (AppView $view) {
42
+    'View.initialize' => function(AppView $view) {
43 43
         $view->loadHelper('Core.Nav');
44 44
         $view->loadHelper('Core.Less');
45 45
         $view->loadHelper('Core.Assets');
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
         $view->loadHelper('Html', ['className' => 'Core.Html']);
50 50
         $view->loadHelper('Form', [
51 51
             'className' => 'Core.Form',
52
-            'prepareBtnClass' => function (\Core\View\Helper\FormHelper $html, $options, $button) {
52
+            'prepareBtnClass' => function(\Core\View\Helper\FormHelper $html, $options, $button) {
53 53
                 $options = $html->addClass($options, 'waves-effect waves-light btn');
54 54
                 if (!empty($button)) {
55 55
                     $options = $html->addClass($options, Str::trim((string) $button));
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('/', ['controller' => 'Root', 'action' => 'dashboard']);
23 23
     });
Please login to merge, or discard this patch.
src/Controller/Component/AppComponent.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
      * Redirect by request data.
63 63
      *
64 64
      * @param array $options
65
-     * @return \Cake\Http\Response|null
65
+     * @return \Cake\Network\Response|null
66 66
      */
67 67
     public function redirect(array $options = [])
68 68
     {
Please login to merge, or discard this patch.
src/Controller/Component/MoveComponent.php 1 patch
Doc Comments   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      * @param Table $table
48 48
      * @param int $id
49 49
      * @param int $step
50
-     * @return \Cake\Http\Response|null
50
+     * @return \Cake\Network\Response|null
51 51
      */
52 52
     public function down(Table $table, $id, $step = 1)
53 53
     {
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @param array|string $key
61 61
      * @param null|mixed $value
62 62
      * @param bool $merge
63
-     * @return mixed
63
+     * @return MoveComponent
64 64
      * @throws \Cake\Core\Exception\Exception When trying to set a key that is invalid.
65 65
      */
66 66
     public function setConfig($key, $value = null, $merge = true)
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param Table $table
83 83
      * @param int $id
84 84
      * @param int $step
85
-     * @return \Cake\Http\Response|null
85
+     * @return \Cake\Network\Response|null
86 86
      * @SuppressWarnings(PHPMD.ShortMethodName)
87 87
      */
88 88
     public function up(Table $table, $id, $step = 1)
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * @param string $type
98 98
      * @param int $id
99 99
      * @param int $step
100
-     * @return \Cake\Http\Response|null
100
+     * @return \Cake\Network\Response|null
101 101
      */
102 102
     protected function _move(Table $table, $id, $step = 1, $type = self::TYPE_UP)
103 103
     {
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
     /**
125 125
      * Process redirect.
126 126
      *
127
-     * @return \Cake\Http\Response|null
127
+     * @return \Cake\Network\Response|null
128 128
      */
129 129
     protected function _redirect()
130 130
     {
Please login to merge, or discard this patch.
src/Controller/Component/ProcessComponent.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param string $action
99 99
      * @param array $ids
100 100
      * @param array $options
101
-     * @return \Cake\Http\Response|null
101
+     * @return \Cake\Network\Response|null
102 102
      */
103 103
     public function make(Table $table, $action, array $ids = [], array $options = [])
104 104
     {
@@ -213,7 +213,7 @@  discard block
 block discarded – undo
213 213
      * Create and merge actual process options.
214 214
      *
215 215
      * @param array $options
216
-     * @param int|string $count
216
+     * @param integer $count
217 217
      * @return array
218 218
      */
219 219
     protected function _getOptions(array $options, $count)
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      * @param Data $messages
243 243
      * @param array $redirect
244 244
      * @param array $ids
245
-     * @return \Cake\Http\Response|null
245
+     * @return \Cake\Network\Response|null
246 246
      */
247 247
     protected function _process($action, Data $messages, array $redirect, array $ids)
248 248
     {
Please login to merge, or discard this patch.
src/View/Helper/DocumentHelper.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -79,11 +79,11 @@
 block discarded – undo
79 79
 
80 80
         $classes = [
81 81
             $prefix,
82
-            'theme-'    . Str::low($this->_View->theme),
83
-            'plugin-'   . Str::low($this->_View->plugin),
84
-            'view-'     . Str::low($this->_View->name),
85
-            'tmpl-'     . Str::low($this->_View->template),
86
-            'layout-'   . Str::low($this->_View->layout),
82
+            'theme-' . Str::low($this->_View->theme),
83
+            'plugin-' . Str::low($this->_View->plugin),
84
+            'view-' . Str::low($this->_View->name),
85
+            'tmpl-' . Str::low($this->_View->template),
86
+            'layout-' . Str::low($this->_View->layout),
87 87
         ];
88 88
 
89 89
         $pass = (array) $this->request->getParam('pass');
Please login to merge, or discard this patch.
src/Cms.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * Merge configure values by key.
50 50
      *
51 51
      * @param string $key
52
-     * @param array|string $config
52
+     * @param string $config
53 53
      * @return array|mixed
54 54
      */
55 55
     public static function mergeConfig($key, $config)
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
      */
68 68
     protected function _initialize()
69 69
     {
70
-        $this['path'] = function () {
70
+        $this['path'] = function() {
71 71
             return $this->_initPaths();
72 72
         };
73 73
     }
Please login to merge, or discard this patch.