Completed
Branch master (0d0a0e)
by Alexander
05:40 queued 02:48
created
app/modules/Cms/Form/ConfigurationForm.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 
9 9
 use Application\Form\Form;
10 10
 use Phalcon\Forms\Element\Check;
11
-use Phalcon\Forms\Element\Select;
12 11
 use Phalcon\Forms\Element\Text;
13 12
 
14 13
 class ConfigurationForm extends Form
Please login to merge, or discard this patch.
app/modules/Cms/Form/JavascriptForm.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,6 @@
 block discarded – undo
8 8
 
9 9
 use Application\Form\Form;
10 10
 use Phalcon\Forms\Element\TextArea;
11
-use Phalcon\Forms\Element\Hidden;
12 11
 
13 12
 class JavascriptForm extends Form
14 13
 {
Please login to merge, or discard this patch.
app/modules/Menu/Model/Menu.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@
 block discarded – undo
143 143
     }
144 144
 
145 145
     /**
146
-     * @return mixed
146
+     * @return integer
147 147
      */
148 148
     public function getDepth()
149 149
     {
Please login to merge, or discard this patch.
app/modules/Publication/Controller/AdminController.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -146,6 +146,9 @@
 block discarded – undo
146 146
         $this->helper->title($this->helper->at('Unpublishing'), true);
147 147
     }
148 148
 
149
+    /**
150
+     * @param Publication|null $model
151
+     */
149 152
     private function uploadImage($model)
150 153
     {
151 154
         if ($this->request->isPost()) {
Please login to merge, or discard this patch.
app/modules/Publication/Model/Type.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
     }
250 250
 
251 251
     /**
252
-     * @return mixed
252
+     * @return integer
253 253
      */
254 254
     public function getLimit()
255 255
     {
@@ -325,7 +325,7 @@  discard block
 block discarded – undo
325 325
     }
326 326
 
327 327
     /**
328
-     * @param mixed $display_date
328
+     * @param integer $display_date
329 329
      */
330 330
     public function setDisplayDate($display_date)
331 331
     {
Please login to merge, or discard this patch.
app/modules/Seo/Controller/ManagerController.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 namespace Seo\Controller;
8 8
 
9 9
 use Application\Mvc\Controller;
10
-use Seo\Form\ManagerAddForm;
11 10
 use Seo\Form\ManagerForm;
12 11
 use Seo\Model\Manager;
13 12
 
Please login to merge, or discard this patch.
app/modules/Seo/Plugin/SeoManager.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -35,6 +35,9 @@
 block discarded – undo
35 35
         }
36 36
     }
37 37
 
38
+    /**
39
+     * @param string|null $url
40
+     */
38 41
     private function matchingUrl($url)
39 42
     {
40 43
         $urls = Manager::urls();
Please login to merge, or discard this patch.
app/plugins/Acl.php 2 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -53,6 +53,10 @@  discard block
 block discarded – undo
53 53
 
54 54
     }
55 55
 
56
+    /**
57
+     * @param string $resourceKey
58
+     * @param string $resourceVal
59
+     */
56 60
     private function accessDenied($role, $resourceKey = null, $resourceVal = null, View $view)
57 61
     {
58 62
         if (in_array($role, ['guest', 'member'])) {
@@ -71,6 +75,9 @@  discard block
 block discarded – undo
71 75
         exit;
72 76
     }
73 77
 
78
+    /**
79
+     * @param string $resourceKey
80
+     */
74 81
     private function resourceNotFound($resourceKey, View $view)
75 82
     {
76 83
         $view->setViewsDir(__DIR__ . '/../modules/Index/views/');
@@ -84,6 +91,9 @@  discard block
 block discarded – undo
84 91
         exit;
85 92
     }
86 93
 
94
+    /**
95
+     * @param string $url
96
+     */
87 97
     private function redirect($url, $code = 302)
88 98
     {
89 99
         switch ($code) {
Please login to merge, or discard this patch.
Unused Use Statements   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -8,10 +8,10 @@
 block discarded – undo
8 8
 
9 9
 namespace YonaCMS\Plugin;
10 10
 
11
-use Phalcon\Mvc\Dispatcher,
12
-    Phalcon\Mvc\User\Plugin,
13
-    Phalcon\Mvc\View,
14
-    Application\Acl\DefaultAcl;
11
+use Phalcon\Mvc\Dispatcher;
12
+use Phalcon\Mvc\User\Plugin;
13
+use Phalcon\Mvc\View;
14
+use Application\Acl\DefaultAcl;
15 15
 
16 16
 class Acl extends Plugin
17 17
 {
Please login to merge, or discard this patch.
app/modules/Tree/Model/Category.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@
 block discarded – undo
47 47
     {
48 48
         $validator = new Validation();
49 49
         $validator->add('slug', new UniquenessValidator(
50
-           [
51
-               "model"   => $this,
52
-               "message" => "Category with slug '" . $this->slug . "' is already exists. Take another title"
53
-           ]
50
+            [
51
+                "model"   => $this,
52
+                "message" => "Category with slug '" . $this->slug . "' is already exists. Take another title"
53
+            ]
54 54
         ));
55 55
         return $this->validate($validator);
56 56
     }
Please login to merge, or discard this patch.