Passed
Push — master ( 0d9957...3a195a )
by Mihail
04:49
created
Apps/View/Admin/default/application/turn.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
         [['text' => __('Name')], ['text' => $app->getLocaleName()]],
29 29
         [['text' => __('System name')], ['text' => $app->sys_name]],
30 30
         [['text' => __('Last update')], ['text' => Date::convertToDatetime($app->updated_at, Date::FORMAT_TO_SECONDS)]],
31
-        [['text' => __('Status')], ['text' => !(bool)$app->disabled ? 'On' : 'Off'], 'properties' => ['class' =>  !(bool)$app->disabled ? 'alert-success' : 'alert-danger']]
31
+        [['text' => __('Status')], ['text' => !(bool) $app->disabled ? 'On' : 'Off'], 'properties' => ['class' =>  !(bool) $app->disabled ? 'alert-success' : 'alert-danger']]
32 32
     ])->display() ?>
33 33
 </div>
34 34
 
Please login to merge, or discard this patch.
Apps/View/Admin/default/_core/javascript/submit_selectize_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 /** @var array $url */
8 8
 /** @var array $properties */
9 9
 
10
-$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999);
10
+$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999);
11 11
 $properties['id'] = $rndId;
12 12
 
13 13
 echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) {
Please login to merge, or discard this patch.
Apps/Controller/Admin/User/ActionInviteList.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
         $record = new Invite();
24 24
 
25 25
         // set current page num and offset
26
-        $page = (int)$this->request->query->get('page', 0);
26
+        $page = (int) $this->request->query->get('page', 0);
27 27
         $offset = $page * self::ITEM_PER_PAGE;
28 28
 
29 29
         // prepare pagination data
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/javascript/submit_selectize_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 /** @var array $url */
8 8
 /** @var array $properties */
9 9
 
10
-$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999);
10
+$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999);
11 11
 $properties['id'] = $rndId;
12 12
 
13 13
 echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) {
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/exceptions/forbidden.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,6 +1,6 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-$this->layout('_layouts/default',[
3
+$this->layout('_layouts/default', [
4 4
     'title' => 'Access forbidden'
5 5
 ]);
6 6
 
Please login to merge, or discard this patch.
Apps/View/Install/default/_core/javascript/submit_selectize_table.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,7 @@
 block discarded – undo
7 7
 /** @var array $url */
8 8
 /** @var array $properties */
9 9
 
10
-$rndId = 'btn_selectize_submit_' . mt_rand(999, 999999);
10
+$rndId = 'btn_selectize_submit_'.mt_rand(999, 999999);
11 11
 $properties['id'] = $rndId;
12 12
 
13 13
 echo (new \Ffcms\Templex\Helper\Html\Dom())->button(function() use ($text) {
Please login to merge, or discard this patch.
Apps/View/Install/default/main/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
 OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
89 89
 SOFTWARE.</textarea>
90 90
 <br />
91
-<?php if($model->checkAll()): ?>
91
+<?php if ($model->checkAll()): ?>
92 92
     <div class="row">
93 93
         <div class="col-3" style="padding-top: 5px;padding-left: 25px;">
94 94
             <input type="checkbox" id="agree-license" /> <label for="agree-license"><?= __('Accept license') ?></label>
Please login to merge, or discard this patch.
Apps/Console/MainInstallCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $allCfg['adminEmail'] = $email;
125 125
         $allCfg['baseDomain'] = $domain;
126 126
         $output->writeln('Generate security cookies for debug panel');
127
-        $allCfg['debug']['cookie']['key'] = 'fdebug_' . Crypt::randomString(mt_rand(8, 32));
127
+        $allCfg['debug']['cookie']['key'] = 'fdebug_'.Crypt::randomString(mt_rand(8, 32));
128 128
         $allCfg['debug']['cookie']['value'] = Crypt::randomString(mt_rand(32, 128));
129 129
         // write config data
130 130
         $writeCfg = Console::$Properties->writeConfig('default', $allCfg);
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
             return;
134 134
         }
135 135
         File::write('/Private/Install/install.lock', 'Install is locked');
136
-        $output->writeln('Congratulations! FFCMS are successful installed. Used version: ' . Version::VERSION . ' since ' . Version::DATE);
136
+        $output->writeln('Congratulations! FFCMS are successful installed. Used version: '.Version::VERSION.' since '.Version::DATE);
137 137
         $output->writeln('');
138 138
         $output->writeln('> Please, use "php console.php main:adduser" to add admin account(set role=4) or you are unavailable to manage cms.');
139 139
     }
Please login to merge, or discard this patch.
Apps/Model/Install/Main/FormInstall.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -105,14 +105,14 @@
 block discarded – undo
105 105
         $cfg['baseDomain'] = $this->baseDomain;
106 106
         $cfg['database'] = $this->db;
107 107
         $cfg['singleLanguage'] = $this->singleLanguage;
108
-        $cfg['multiLanguage'] = (bool)$this->multiLanguage;
109
-        $cfg['passwordSalt'] = '$2a$07$' . Str::randomLatinNumeric(mt_rand(21, 30)) . '$';
110
-        $cfg['debug']['cookie']['key'] = 'fdebug_' . Crypt::randomString(mt_rand(4, 16));
108
+        $cfg['multiLanguage'] = (bool) $this->multiLanguage;
109
+        $cfg['passwordSalt'] = '$2a$07$'.Str::randomLatinNumeric(mt_rand(21, 30)).'$';
110
+        $cfg['debug']['cookie']['key'] = 'fdebug_'.Crypt::randomString(mt_rand(4, 16));
111 111
         $cfg['debug']['cookie']['value'] = Crypt::randomString(mt_rand(32, 128));
112 112
         $cfg['mail'] = $this->mail;
113 113
 
114 114
         // initialize migrations table
115
-        App::$Database->getConnection('install')->getSchemaBuilder()->create('migrations', function ($table) {
115
+        App::$Database->getConnection('install')->getSchemaBuilder()->create('migrations', function($table) {
116 116
             $table->increments('id');
117 117
             $table->string('migration', 128)->unique();
118 118
             $table->timestamps();
Please login to merge, or discard this patch.