Passed
Push — master ( 8a9029...1e484e )
by Mihail
03:29
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/form/fieldset/captcha.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,14 @@
 block discarded – undo
13 13
 
14 14
 <?php if (App::$Captcha->isFull()): ?>
15 15
     <div class="col-md-9 offset-md-3"><?= $html ?></div>
16
-<?php else: ?>
16
+<?php else {
17
+    : ?>
17 18
     <div class="row">
18 19
         <div class="col-md-9 offset-md-3">
19 20
             <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" />
20 21
         </div>
21 22
     </div>
22 23
     <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?>
23
-<?php endif; ?>
24 24
\ No newline at end of file
25
+<?php endif;
26
+}
27
+?>
25 28
\ No newline at end of file
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/View/Admin/default/user/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,10 +42,10 @@
 block discarded – undo
42 42
         ['text' => $user->login],
43 43
         ['text' => $user->role->name],
44 44
         ['text' => Date::convertToDatetime($user->created_at, Date::FORMAT_TO_DAY)],
45
-        ['text' => Url::a(['user/update', [$user->id]], '<i class="fa fa-pencil fa-lg"></i>', ['html' => true]) .
45
+        ['text' => Url::a(['user/update', [$user->id]], '<i class="fa fa-pencil fa-lg"></i>', ['html' => true]).
46 46
             Url::a(['user/delete', [$user->id]], ' <i class="fa fa-trash-o fa-lg"></i>', ['html' => true]),
47 47
             'properties' => ['class' => 'text-center'], 'html' => true],
48
-        'properties' => ['class' => 'checkbox-row' . ($user->approve_token !== null ? ' bg-warning' : null)]
48
+        'properties' => ['class' => 'checkbox-row'.($user->approve_token !== null ? ' bg-warning' : null)]
49 49
 
50 50
     ]);
51 51
 }
Please login to merge, or discard this patch.
Apps/View/Front/default/_core/form/fieldset/captcha.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,11 +13,14 @@
 block discarded – undo
13 13
 
14 14
 <?php if (App::$Captcha->isFull()): ?>
15 15
     <div class="col-md-9 offset-md-3"><?= $html ?></div>
16
-<?php else: ?>
16
+<?php else {
17
+    : ?>
17 18
     <div class="row">
18 19
         <div class="col-md-9 offset-md-3">
19 20
             <img src="<?= $html ?>" alt="captcha" onClick="this.src='<?=$html?>&rnd='+Math.random()" />
20 21
         </div>
21 22
     </div>
22 23
     <?= $form->fieldset()->text($name, null, __('Enter data from security image to prove that you are human. If you can\'t read symbols - click on image to reload')) ?>
23
-<?php endif; ?>
24 24
\ No newline at end of file
25
+<?php endif;
26
+}
27
+?>
25 28
\ No newline at end of file
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.
Private/Migrations/Updates/update_cms_310-2017-07-29-11-00-00.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@
 block discarded – undo
14 14
      */
15 15
     public function up()
16 16
     {
17
-        $this->getSchema()->table('users', function($table){
17
+        $this->getSchema()->table('users', function($table) {
18 18
             $table->string('approve_token', 128)->nullable()->default(null)->change();
19 19
         });
20 20
         // set approve_token = null where it like '0' str or ''
Please login to merge, or discard this patch.
Extend/Core/Arch/AdminController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -91,18 +91,18 @@  discard block
 block discarded – undo
91 91
         $user = App::$User->identity();
92 92
         // user is not authed ?
93 93
         if ($user === null || !App::$User->isAuth()) {
94
-            $redirectUrl = App::$Alias->scriptUrl . '/user/login';
94
+            $redirectUrl = App::$Alias->scriptUrl.'/user/login';
95 95
             App::$Response->redirect($redirectUrl, true);
96 96
             exit();
97 97
         }
98 98
 
99
-        $permission = env_name . '/' . App::$Request->getController() . '/' . App::$Request->getAction();
99
+        $permission = env_name.'/'.App::$Request->getController().'/'.App::$Request->getAction();
100 100
 
101 101
         // doesn't have permission? get the f*ck out
102 102
         if (!$user->role->can($permission)) {
103 103
             App::$Session->invalidate();
104 104
 
105
-            $redirectUrl = App::$Alias->scriptUrl . '/user/login';
105
+            $redirectUrl = App::$Alias->scriptUrl.'/user/login';
106 106
             App::$Response->redirect($redirectUrl, true);
107 107
             exit();
108 108
         }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function getConfigs(): ?array
153 153
     {
154
-        $configs = $this->type === 'widget' ? (array)$this->widget->configs : (array)$this->application->configs;
154
+        $configs = $this->type === 'widget' ? (array) $this->widget->configs : (array) $this->application->configs;
155 155
         foreach ($configs as $cfg => $value) {
156 156
             if (Any::isInt($value)) {
157 157
                 $configs[$cfg] = $value;
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.