Passed
Push — master ( ef8807...c1ca83 )
by Mihail
05:17
created
Apps/Model/Install/Main/EntityCheck.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
     public $chmodCheck = [];
21 21
 
22 22
     /**
23
-    * Get default server information and prepare chmod info
24
-    */
23
+     * Get default server information and prepare chmod info
24
+     */
25 25
     public function before()
26 26
     {
27 27
         $this->phpVersion = phpversion();
Please login to merge, or discard this patch.
Apps/Model/Admin/User/FormUserSettings.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@
 block discarded – undo
27 27
     }
28 28
 
29 29
     /**
30
-    * Load configs from app data
31
-    */
30
+     * Load configs from app data
31
+     */
32 32
     public function before()
33 33
     {
34 34
         if ($this->_config === null) {
Please login to merge, or discard this patch.
Apps/Model/Front/Content/FormNarrowContentUpdate.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@  discard block
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-    * Set default values from database record
48
-    */
47
+     * Set default values from database record
48
+     */
49 49
     public function before()
50 50
     {
51 51
         // set data from db record
@@ -85,9 +85,9 @@  discard block
 block discarded – undo
85 85
     }
86 86
 
87 87
     /**
88
-    * Form labels
89
-    * @return array
90
-    */
88
+     * Form labels
89
+     * @return array
90
+     */
91 91
     public function labels(): array
92 92
     {
93 93
         return [
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
     }
101 101
 
102 102
     /**
103
-    * Content update form validation rules
104
-    * @return array
105
-    */
103
+     * Content update form validation rules
104
+     * @return array
105
+     */
106 106
     public function rules(): array
107 107
     {
108 108
         $r = [
Please login to merge, or discard this patch.
Apps/Model/Admin/Main/FormSettings.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
     public $trustedProxy;
51 51
 
52 52
     /**
53
-    * Set property values from configurations
54
-    */
53
+     * Set property values from configurations
54
+     */
55 55
     public function before()
56 56
     {
57 57
         $properties = App::$Properties->getAll();
Please login to merge, or discard this patch.
Private/Config/Cron.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php return [
2
-	'instances' => [
3
-		'Apps\Controller\Front\Content::buildSitemapSchedule' => 3600,
4
-		'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800,
5
-		'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400
6
-	]
2
+    'instances' => [
3
+        'Apps\Controller\Front\Content::buildSitemapSchedule' => 3600,
4
+        'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800,
5
+        'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400
6
+    ]
7 7
 ];
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
Private/Config/Object.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,12 +71,14 @@
 block discarded – undo
71 71
             ->setUsername($mCfg['user']);
72 72
 
73 73
         // set auth password if exist
74
-        if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0)
75
-            $transport->setPassword($mCfg['password']);
74
+        if ($mCfg['password'] !== null && strlen($mCfg['password']) > 0) {
75
+                    $transport->setPassword($mCfg['password']);
76
+        }
76 77
 
77 78
         // set encryption method
78
-        if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl']))
79
-            $transport->setEncryption($mCfg['encrypt']);
79
+        if (\Ffcms\Core\Helper\Type\Arr::in($mCfg['encrypt'], ['tls', 'ssl'])) {
80
+                    $transport->setEncryption($mCfg['encrypt']);
81
+        }
80 82
 
81 83
         // initialize mailer instance
82 84
         $swift = (new Swift_Mailer($transport));
Please login to merge, or discard this patch.
Widgets/Front/Newcontent/Newcontent.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
76 76
         
77 77
         // render view
78 78
         return App::$View->render($this->tpl, [
79
-           'records' => $query
79
+            'records' => $query
80 80
         ]);
81 81
     }
82 82
     
Please login to merge, or discard this patch.
Apps/Model/Front/Content/EntityContentRead.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     /**
68 68
      * Prepare model attributes from passed objects
69 69
      * @throws ForbiddenException
70
-    */
70
+     */
71 71
     public function before()
72 72
     {
73 73
         // set class attributes from ActiveRecord objects
Please login to merge, or discard this patch.
Apps/View/Front/default/profile/show.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,8 @@  discard block
 block discarded – undo
58 58
                     </button>
59 59
                 </div>
60 60
             </div>
61
-            <?php else: ?>
61
+            <?php else {
62
+    : ?>
62 63
                 <div class="row">
63 64
                     <div class="col-md-8" style="padding-right: 0;">
64 65
                         <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>">
@@ -75,7 +76,9 @@  discard block
 block discarded – undo
75 76
                         <button class="btn btn-block btn-danger" id="reduceRating">-</button>
76 77
                     </div>
77 78
                 </div>
78
-            <?php endif; ?>
79
+            <?php endif;
80
+}
81
+?>
79 82
         <?php endif; ?>
80 83
         <?php
81 84
         $userMenu = $this->bootstrap()->nav('ul', ['class' => 'nav-tabs flex-column']);
Please login to merge, or discard this patch.