Completed
Push — master ( 93a570...1a3b3b )
by Alexander
03:57
created
app/modules/Admin/Model/AdminUser.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 
7 7
 namespace Admin\Model;
8 8
 use Phalcon\Validation;
9
-use Phalcon\Validation\Validator\Email as EmailValidator;
10 9
 use Phalcon\Validation\Validator\Uniqueness as UniquenessValidator;
11 10
 use stdClass;
12 11
 
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -45,20 +45,20 @@
 block discarded – undo
45 45
     public function validation()
46 46
     {
47 47
 
48
-       $validator = new Validation();
49
-       $validator->add('login', new UniquenessValidator(
50
-           [
51
-               "model"   => $this,
52
-               "message" => $this->getDi()->get('helper')->translate("The Login must be unique")
53
-           ]
54
-       ));
55
-       $validator->add('email', new UniquenessValidator(
56
-           [
57
-               "model"   => $this,
58
-               "message" => $this->getDi()->get('helper')->translate("The Email must be unique")
59
-           ]
60
-       ));
61
-       return $this->validate($validator);
48
+        $validator = new Validation();
49
+        $validator->add('login', new UniquenessValidator(
50
+            [
51
+                "model"   => $this,
52
+                "message" => $this->getDi()->get('helper')->translate("The Login must be unique")
53
+            ]
54
+        ));
55
+        $validator->add('email', new UniquenessValidator(
56
+            [
57
+                "model"   => $this,
58
+                "message" => $this->getDi()->get('helper')->translate("The Email must be unique")
59
+            ]
60
+        ));
61
+        return $this->validate($validator);
62 62
     }
63 63
 
64 64
     public function getId()
Please login to merge, or discard this patch.
app/modules/Publication/Model/Publication.php 3 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -252,6 +252,9 @@
 block discarded – undo
252 252
         }
253 253
     }
254 254
 
255
+    /**
256
+     * @param integer $preview_inner
257
+     */
255 258
     public function setPreviewInner($preview_inner)
256 259
     {
257 260
         $this->preview_inner = $preview_inner;
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Publication\Model;
4 4
 
5 5
 use Application\Mvc\Model\Model;
6
-use Phalcon\Validation;
7 6
 use Phalcon\Validation\Validator\Uniqueness as UniquenessValidator;
8 7
 use Application\Localization\Transliterator;
9 8
 
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@
 block discarded – undo
62 62
 
63 63
     public function validation()
64 64
     {
65
-      $validator->add('slug', new UniquenessValidator(
66
-          [
67
-              "model"   => $this,
68
-              "message" => $this->getDi()->get('helper')->translate("Publishcation with slug is already exists")
69
-          ]
70
-      ));
71
-      return $this->validate($validator);
65
+        $validator->add('slug', new UniquenessValidator(
66
+            [
67
+                "model"   => $this,
68
+                "message" => $this->getDi()->get('helper')->translate("Publishcation with slug is already exists")
69
+            ]
70
+        ));
71
+        return $this->validate($validator);
72 72
     }
73 73
 
74 74
     public function afterValidation()
Please login to merge, or discard this patch.
app/modules/Page/Model/Page.php 2 patches
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -54,13 +54,13 @@
 block discarded – undo
54 54
 
55 55
     public function validation()
56 56
     {
57
-      $validator->add('slug', new UniquenessValidator(
58
-          [
59
-              "model"   => $this,
60
-              "message" => $this->getDi()->get('helper')->translate("Page with slug is already exists")
61
-          ]
62
-      ));
63
-      return $this->validate($validator);
57
+        $validator->add('slug', new UniquenessValidator(
58
+            [
59
+                "model"   => $this,
60
+                "message" => $this->getDi()->get('helper')->translate("Page with slug is already exists")
61
+            ]
62
+        ));
63
+        return $this->validate($validator);
64 64
     }
65 65
 
66 66
     public static function findCachedBySlug($slug)
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,6 @@
 block discarded – undo
3 3
 namespace Publication\Model;
4 4
 
5 5
 use Application\Mvc\Model\Model;
6
-use Phalcon\Validation;
7 6
 use Phalcon\Validation\Validator\Uniqueness as UniquenessValidator;
8 7
 use Application\Localization\Transliterator;
9 8
 
Please login to merge, or discard this patch.