Passed
Push — master ( 734a7e...9d7fc3 )
by Mihail
04:51
created
Apps/View/Front/default/feedback/create.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
 <?php if ($useCaptcha === true) {
32 32
     if (\App::$Captcha->isFull()) {
33
-        echo '<div class="col-md-offset-3 col-md-9">' . \App::$Captcha->get() . '</div>';
33
+        echo '<div class="col-md-offset-3 col-md-9">'.\App::$Captcha->get().'</div>';
34 34
     } else {
35 35
         echo $form->field('captcha', 'captcha', ['class' => 'form-control'], __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload'));
36 36
     }
Please login to merge, or discard this patch.
Apps/View/Front/default/content/tag.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
     /** @var \Apps\ActiveRecord\Content $item*/
24 24
     $items[] = [
25 25
         'text' => Serialize::getDecodeLocale($item->title),
26
-        'link' => \App::$Alias->baseUrl . '/content/read/' . $item->getPath()
26
+        'link' => \App::$Alias->baseUrl.'/content/read/'.$item->getPath()
27 27
     ];
28 28
 }
29 29
 ?>
Please login to merge, or discard this patch.
Apps/View/Front/default/content/_rate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -7,8 +7,8 @@
 block discarded – undo
7 7
 $numericRating = 0;
8 8
 if ($rating > 0) {
9 9
     $cssRatingClass = 'label-success';
10
-    $numericRating = '+' . $rating;
11
-} elseif($rating < 0) {
10
+    $numericRating = '+'.$rating;
11
+} elseif ($rating < 0) {
12 12
     $cssRatingClass = 'label-danger';
13 13
     $numericRating = $rating;
14 14
 }
Please login to merge, or discard this patch.
Apps/View/Install/default/native/macro/notify.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@
 block discarded – undo
30 30
 if (Obj::isArray($notify) && count($notify) > 0) {
31 31
     foreach ($notify as $type => $messages) {
32 32
         foreach ($messages as $message) {
33
-            echo '<p class="alert ' . type2html($type) . '">
33
+            echo '<p class="alert '.type2html($type).'">
34 34
             <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>'
35
-                . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>';
35
+                . \Ffcms\Core\App::$Security->strip_tags($message).'</p>';
36 36
         }
37 37
     }
38 38
 }
Please login to merge, or discard this patch.
Apps/View/Install/default/layout/main.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     <?php
17 17
     $customCssCode = \App::$View->showPlainCode('css');
18 18
     if ($customCssCode !== null) {
19
-        echo '<style>' . $customCssCode . '</style>';
19
+        echo '<style>'.$customCssCode.'</style>';
20 20
     } ?>
21 21
     <script>
22 22
         window.jQ = [];
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     <?php
63 63
     $customJsCode = \App::$View->showPlainCode('js');
64 64
     if ($customJsCode !== null) {
65
-        echo '<script>' . $customJsCode . '</script>';
65
+        echo '<script>'.$customJsCode.'</script>';
66 66
     }
67 67
     ?>
68 68
 </body>
Please login to merge, or discard this patch.
Apps/Model/Admin/Main/FormAddRoute.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $configData = [
59 59
             ucfirst(Str::lowerCase($this->type)) => [
60 60
                 ucfirst(Str::lowerCase($this->loader)) => [
61
-                    '/' . trim($this->source, '/') => '/' . trim($this->target, '/')
61
+                    '/'.trim($this->source, '/') => '/'.trim($this->target, '/')
62 62
                 ]
63 63
             ]
64 64
         ];
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
 
22 22
 
23 23
     /**
24
-    * Load default properties into the model
25
-    */
24
+     * Load default properties into the model
25
+     */
26 26
     public function before()
27 27
     {
28 28
         $this->cfg = App::$Properties->getAll('Routing');
Please login to merge, or discard this patch.
Apps/Model/Admin/Main/EntityDeleteRoute.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
 
49 49
         // prepare source path
50 50
         if ($this->type === 'Alias') {
51
-            $this->source = '/' . trim($this->source, '/');
51
+            $this->source = '/'.trim($this->source, '/');
52 52
         } else {
53 53
             $this->source = ucfirst($this->source);
54 54
         }
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormSettings.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     */
57 57
     public function labels()
58 58
     {
59
-        $labels =  [
59
+        $labels = [
60 60
             'nick' => __('Nickname'),
61 61
             'sex' => __('Sex'),
62 62
             'birthday' => __('Birthday'),
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
 
69 69
         // labels for custom fields
70 70
         foreach (ProfileField::getAll() as $custom) {
71
-            $labels['custom_data.' . $custom->id] = Serialize::getDecodeLocale($custom->name);
71
+            $labels['custom_data.'.$custom->id] = Serialize::getDecodeLocale($custom->name);
72 72
         }
73 73
 
74 74
         return $labels;
@@ -93,12 +93,12 @@  discard block
 block discarded – undo
93 93
         // custom profile fields
94 94
         foreach (ProfileField::getAll() as $custom) {
95 95
             $rules[] = [
96
-                'custom_data.' . $custom->id,
96
+                'custom_data.'.$custom->id,
97 97
                 'used'
98 98
             ];
99 99
             $rules[] = [
100
-                'custom_data.' . $custom->id,
101
-                (int)$custom->reg_cond === 1 ? 'direct_match' : 'reverse_match',
100
+                'custom_data.'.$custom->id,
101
+                (int) $custom->reg_cond === 1 ? 'direct_match' : 'reverse_match',
102 102
                 $custom->reg_exp
103 103
             ];
104 104
         }
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-    * Set default data
42
-    */
41
+     * Set default data
42
+     */
43 43
     public function before()
44 44
     {
45 45
         $profile = $this->_user->getProfile()->toArray(); // object to array (property's is protected of access)
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
     }
61 61
 
62 62
     /**
63
-    * Form display labels
64
-    */
63
+     * Form display labels
64
+     */
65 65
     public function labels()
66 66
     {
67 67
         $labels =  [
@@ -83,8 +83,8 @@  discard block
 block discarded – undo
83 83
     }
84 84
 
85 85
     /**
86
-    * Rules for validation
87
-    */
86
+     * Rules for validation
87
+     */
88 88
     public function rules()
89 89
     {
90 90
         $rules = [
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormAvatarUpload.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     public function copyFile(iUser $user)
48 48
     {
49 49
         // move file to original folder
50
-        $upload = $this->file->move(root . '/upload/user/avatar/original/', $user->id . '.' . $this->file->guessExtension());
50
+        $upload = $this->file->move(root.'/upload/user/avatar/original/', $user->id.'.'.$this->file->guessExtension());
51 51
 
52 52
         try {
53 53
             // big image
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
         }
83 83
 
84 84
         $image = new Image();
85
-        $image->setCacheDir(root . '/Private/Cache/images');
85
+        $image->setCacheDir(root.'/Private/Cache/images');
86 86
 
87 87
         $image->open($original->getPathname())
88 88
             ->cropResize($sizeConvert[$size][0], $sizeConvert[$size][1])
89
-            ->save(root . '/upload/user/avatar/' . $size . '/' . $user_id . '.jpg', 'jpg', static::COMPRESS_QUALITY);
89
+            ->save(root.'/upload/user/avatar/'.$size.'/'.$user_id.'.jpg', 'jpg', static::COMPRESS_QUALITY);
90 90
 
91 91
         return null;
92 92
     }
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
     const COMPRESS_QUALITY = 90;
21 21
 
22 22
     /**
23
-    * Form text helper data with translation
24
-    */
23
+     * Form text helper data with translation
24
+     */
25 25
     public function labels()
26 26
     {
27 27
         return [
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-    * Validation rules for avatar uploading
34
-    */
33
+     * Validation rules for avatar uploading
34
+     */
35 35
     public function rules()
36 36
     {
37 37
         return [
Please login to merge, or discard this patch.