Passed
Push — master ( 57f692...abb7a8 )
by Mihail
04:20
created
Apps/Model/Install/Main/FormInstall.php 3 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Apps\ActiveRecord\Profile;
6 6
 use Apps\ActiveRecord\User;
7
-use Apps\Controller\Console\Db;
8 7
 use Ffcms\Core\App;
9 8
 use Ffcms\Core\Arch\Model;
10 9
 use Ffcms\Core\Helper\FileSystem\File;
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     }
26 26
 
27 27
     /**
28
-    * Labels for installation form
29
-    */
28
+     * Labels for installation form
29
+     */
30 30
     public function labels()
31 31
     {
32 32
         return [
@@ -46,8 +46,8 @@  discard block
 block discarded – undo
46 46
     }
47 47
 
48 48
     /**
49
-    * Installation post data validation
50
-    */
49
+     * Installation post data validation
50
+     */
51 51
     public function rules()
52 52
     {
53 53
         return [
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
         $cfg['database'] = $this->db;
71 71
         $cfg['adminEmail'] = $this->email;
72 72
         $cfg['singleLanguage'] = $this->singleLanguage;
73
-        $cfg['multiLanguage'] = (bool)$this->multiLanguage;
73
+        $cfg['multiLanguage'] = (bool) $this->multiLanguage;
74 74
         $cfg['passwordSalt'] = '$2a$07$' . Str::randomLatinNumeric(mt_rand(21, 30)) . '$';
75 75
         $cfg['debug']['cookie']['key'] = 'fdebug_' . Str::randomLatinNumeric(mt_rand(4, 16));
76 76
         $cfg['debug']['cookie']['value'] = Str::randomLatinNumeric(mt_rand(32, 128));
Please login to merge, or discard this patch.
Apps/View/Install/layout/main.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,5 @@
 block discarded – undo
1 1
 <?php
2 2
 /** @var $body string */
3
-use Ffcms\Core\Helper\HTML\Listing;
4 3
 use Ffcms\Core\Helper\Type\Obj;
5 4
 ?>
6 5
 <!DOCTYPE html>
Please login to merge, or discard this patch.
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/View/Install/main/index.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
 ]);
55 55
 ?>
56 56
 
57
-<?php if($model->checkAll()): ?>
57
+<?php if ($model->checkAll()): ?>
58 58
     <?= \Ffcms\Core\Helper\Url::link('main/install', __('Start install'), ['class' => 'btn btn-success btn-block']) ?>
59 59
 <?php else: ?>
60 60
     <?= \Ffcms\Core\Helper\Url::link('main/index', __('Check again'), ['class' => 'btn btn-warning btn-block']) ?>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -56,7 +56,10 @@
 block discarded – undo
56 56
 
57 57
 <?php if($model->checkAll()): ?>
58 58
     <?= \Ffcms\Core\Helper\Url::link('main/install', __('Start install'), ['class' => 'btn btn-success btn-block']) ?>
59
-<?php else: ?>
59
+<?php else {
60
+    : ?>
60 61
     <?= \Ffcms\Core\Helper\Url::link('main/index', __('Check again'), ['class' => 'btn btn-warning btn-block']) ?>
61
-<?php endif; ?>
62
+<?php endif;
63
+}
64
+?>
62 65
 
Please login to merge, or discard this patch.
Private/Config/Permissions.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -1,41 +1,41 @@
 block discarded – undo
1 1
 <?php 
2 2
 
3 3
 return array (
4
-  0 => 'global/write',
5
-  1 => 'global/modify',
6
-  2 => 'global/file',
7
-  3 => 'global/all',
8
-  4 => 'Admin/Application/Index',
9
-  5 => 'Admin/Application/Turn',
10
-  6 => 'Admin/Content/Index',
11
-  7 => 'Admin/Content/Update',
12
-  8 => 'Admin/Content/Delete',
13
-  9 => 'Admin/Content/Restore',
14
-  10 => 'Admin/Content/Clear',
15
-  11 => 'Admin/Content/Categories',
16
-  12 => 'Admin/Content/Categorydelete',
17
-  13 => 'Admin/Content/Categoryupdate',
18
-  14 => 'Admin/Content/Settings',
19
-  15 => 'Admin/Main/Index',
20
-  16 => 'Admin/Main/Settings',
21
-  17 => 'Admin/Main/Files',
22
-  18 => 'Admin/Main/Antivirus',
23
-  19 => 'Admin/Main/Debugcookie',
24
-  20 => 'Admin/Main/Routing',
25
-  21 => 'Admin/Main/Addroute',
26
-  22 => 'Admin/Main/Deleteroute',
27
-  23 => 'Admin/Profile/Index',
28
-  24 => 'Admin/Profile/Delete',
29
-  25 => 'Admin/Profile/Update',
30
-  26 => 'Admin/Profile/Fieldlist',
31
-  27 => 'Admin/Profile/Fieldupdate',
32
-  28 => 'Admin/Profile/Fielddelete',
33
-  29 => 'Admin/Profile/Settings',
34
-  30 => 'Admin/User/Index',
35
-  31 => 'Admin/User/Update',
36
-  32 => 'Admin/User/Delete',
37
-  33 => 'Admin/User/Grouplist',
38
-  34 => 'Admin/User/GroupUpdate',
39
-  35 => 'Admin/User/Settings',
40
-  36 => 'Admin/User/Invite',
4
+    0 => 'global/write',
5
+    1 => 'global/modify',
6
+    2 => 'global/file',
7
+    3 => 'global/all',
8
+    4 => 'Admin/Application/Index',
9
+    5 => 'Admin/Application/Turn',
10
+    6 => 'Admin/Content/Index',
11
+    7 => 'Admin/Content/Update',
12
+    8 => 'Admin/Content/Delete',
13
+    9 => 'Admin/Content/Restore',
14
+    10 => 'Admin/Content/Clear',
15
+    11 => 'Admin/Content/Categories',
16
+    12 => 'Admin/Content/Categorydelete',
17
+    13 => 'Admin/Content/Categoryupdate',
18
+    14 => 'Admin/Content/Settings',
19
+    15 => 'Admin/Main/Index',
20
+    16 => 'Admin/Main/Settings',
21
+    17 => 'Admin/Main/Files',
22
+    18 => 'Admin/Main/Antivirus',
23
+    19 => 'Admin/Main/Debugcookie',
24
+    20 => 'Admin/Main/Routing',
25
+    21 => 'Admin/Main/Addroute',
26
+    22 => 'Admin/Main/Deleteroute',
27
+    23 => 'Admin/Profile/Index',
28
+    24 => 'Admin/Profile/Delete',
29
+    25 => 'Admin/Profile/Update',
30
+    26 => 'Admin/Profile/Fieldlist',
31
+    27 => 'Admin/Profile/Fieldupdate',
32
+    28 => 'Admin/Profile/Fielddelete',
33
+    29 => 'Admin/Profile/Settings',
34
+    30 => 'Admin/User/Index',
35
+    31 => 'Admin/User/Update',
36
+    32 => 'Admin/User/Delete',
37
+    33 => 'Admin/User/Grouplist',
38
+    34 => 'Admin/User/GroupUpdate',
39
+    35 => 'Admin/User/Settings',
40
+    36 => 'Admin/User/Invite',
41 41
 );
42 42
\ No newline at end of file
Please login to merge, or discard this patch.