Passed
Push — master ( 1cd2c2...fa1786 )
by Mihail
07:12
created
Apps/Model/Front/Content/EntityContentSearch.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
     /**
26 26
      * EntityContentSearch constructor. Pass search terms (query string) to model and used items to skip it by id.
27 27
      * @param $terms
28
-     * @param int|array $skipIds
28
+     * @param integer $skipIds
29 29
      */
30 30
     public function __construct($terms, $skipIds = 0)
31 31
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@
 block discarded – undo
77 77
             $this->items[] = [
78 78
                 'title' => $item->getLocaled('title'),
79 79
                 'snippet' => Text::snippet($text),
80
-                'uri' => '/content/read/' . $item->getPath(),
80
+                'uri' => '/content/read/'.$item->getPath(),
81 81
                 'thumb' => $item->getPosterThumbUri()
82 82
             ];
83 83
         }
Please login to merge, or discard this patch.
Private/Config/Routing.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php return [
2
-	'Alias' => [
3
-		'Front' => [
4
-			'/about' => '/content/read/page/about-page'
5
-		]
6
-	],
7
-	'Callback' => [
8
-		'Front' => [
9
-			'Demo' => '\Apps\Controller\Front\Main'
10
-		]
11
-	]
2
+    'Alias' => [
3
+        'Front' => [
4
+            '/about' => '/content/read/page/about-page'
5
+        ]
6
+    ],
7
+    'Callback' => [
8
+        'Front' => [
9
+            'Demo' => '\Apps\Controller\Front\Main'
10
+        ]
11
+    ]
12 12
 ];
13 13
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Admin/Comments/FormSettings.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-    * Labels for form
46
-    */
45
+     * Labels for form
46
+     */
47 47
     public function labels()
48 48
     {
49 49
         return [
@@ -57,8 +57,8 @@  discard block
 block discarded – undo
57 57
     }
58 58
 
59 59
     /**
60
-    * Validation rules for comments settings
61
-    */
60
+     * Validation rules for comments settings
61
+     */
62 62
     public function rules()
63 63
     {
64 64
         return [
Please login to merge, or discard this patch.
Apps/Model/Api/Comments/CommentPostAdd.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function check()
57 57
     {
58 58
         // check if user is auth'd or guest name is defined
59
-        if (!App::$User->isAuth() && ((int)$this->_configs['guestAdd'] !== 1 || Str::length($this->guestName) < 2)) {
59
+        if (!App::$User->isAuth() && ((int) $this->_configs['guestAdd'] !== 1 || Str::length($this->guestName) < 2)) {
60 60
             throw new JsonException(__('Guest name is not defined'));
61 61
         }
62 62
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         }
67 67
 
68 68
         // check if message length is correct
69
-        if (Str::length($this->message) < (int)$this->_configs['minLength'] || Str::length($this->message) > (int)$this->_configs['maxLength']) {
69
+        if (Str::length($this->message) < (int) $this->_configs['minLength'] || Str::length($this->message) > (int) $this->_configs['maxLength']) {
70 70
             throw new JsonException(__('Message length is incorrect. Current: %cur% , min - %min%, max - %max%', [
71 71
                 'cur' => Str::length($this->message),
72 72
                 'min' => $this->_configs['minLength'],
Please login to merge, or discard this patch.
Apps/Model/Api/Comments/CommentAnswerAdd.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function check()
57 57
     {
58 58
         // check if user is auth'd or guest name is defined
59
-        if (!App::$User->isAuth() && ((int)$this->_configs['guestAdd'] !== 1 || Str::length($this->guestName) < 2)) {
59
+        if (!App::$User->isAuth() && ((int) $this->_configs['guestAdd'] !== 1 || Str::length($this->guestName) < 2)) {
60 60
             throw new JsonException(__('Guest name is not defined'));
61 61
         }
62 62
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         }
67 67
 
68 68
         // check if message length is correct
69
-        if (Str::length($this->message) < (int)$this->_configs['minLength'] || Str::length($this->message) > (int)$this->_configs['maxLength']) {
69
+        if (Str::length($this->message) < (int) $this->_configs['minLength'] || Str::length($this->message) > (int) $this->_configs['maxLength']) {
70 70
             throw new JsonException(__('Message length is incorrect. Current: %cur% , min - %min%, max - %max%', [
71 71
                 'cur' => Str::length($this->message),
72 72
                 'min' => $this->_configs['minLength'],
Please login to merge, or discard this patch.
Apps/View/Admin/default/feedback/update.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -1,8 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Ffcms\Core\Helper\Date;
4 3
 use Ffcms\Core\Helper\HTML\Form;
5
-use Ffcms\Core\Helper\HTML\Table;
6 4
 use Ffcms\Core\Helper\Url;
7 5
 
8 6
 /** @var \Apps\Model\Admin\Feedback\FormUpdate $model */
Please login to merge, or discard this patch.
Apps/Model/Admin/Feedback/FormUpdate.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,8 +34,8 @@  discard block
 block discarded – undo
34 34
     }
35 35
 
36 36
     /**
37
-    * Labels to display edit form
38
-    */
37
+     * Labels to display edit form
38
+     */
39 39
     public function labels()
40 40
     {
41 41
         return [
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-    * Rules to validate changes
50
-    */
49
+     * Rules to validate changes
50
+     */
51 51
     public function rules()
52 52
     {
53 53
         return [
Please login to merge, or discard this patch.
Apps/Model/Front/Feedback/FormAnswerAdd.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-    * Labels for display form
51
-    */
50
+     * Labels for display form
51
+     */
52 52
     public function labels()
53 53
     {
54 54
         return [
@@ -59,8 +59,8 @@  discard block
 block discarded – undo
59 59
     }
60 60
 
61 61
     /**
62
-    * Form validation rules
63
-    */
62
+     * Form validation rules
63
+     */
64 64
     public function rules()
65 65
     {
66 66
         return [
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function __construct($recordPost, $userId = 0)
30 30
     {
31 31
         $this->_post = $recordPost;
32
-        $this->_userId = (int)$userId;
32
+        $this->_userId = (int) $userId;
33 33
         parent::__construct();
34 34
     }
35 35
 
Please login to merge, or discard this patch.
Apps/Model/Front/Feedback/FormFeedbackAdd.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
 
27 27
 
28 28
     /**
29
-    * Set user data if he is logged in
30
-    */
29
+     * Set user data if he is logged in
30
+     */
31 31
     public function before()
32 32
     {
33 33
         if (App::$User->isAuth()) {
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    * Labels to display form
42
-    */
41
+     * Labels to display form
42
+     */
43 43
     public function labels()
44 44
     {
45 45
         return [
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
     }
52 52
 
53 53
     /**
54
-    * Rules to validate send form
55
-    */
54
+     * Rules to validate send form
55
+     */
56 56
     public function rules()
57 57
     {
58 58
         $rules = [
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 
21 21
     public function __construct($captcha = true)
22 22
     {
23
-        $this->_useCaptcha = (bool)$captcha;
23
+        $this->_useCaptcha = (bool) $captcha;
24 24
         parent::__construct();
25 25
     }
26 26
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@
 block discarded – undo
95 95
 
96 96
     /**
97 97
      * Send email notification after feedback request creation
98
-     * @param $record
98
+     * @param FeedbackPost $record
99 99
      * @throws \Ffcms\Core\Exception\SyntaxException
100 100
      */
101 101
     private function sendEmail($record)
Please login to merge, or discard this patch.