Passed
Push — master ( c86e8c...1b1f16 )
by Mihail
04:54
created
Apps/View/Admin/default/feedback/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,4 +10,4 @@
 block discarded – undo
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['feedback/settings']]
11 11
     ],
12 12
     'activeOrder' => 'action'
13
-]);?>
14 13
\ No newline at end of file
14
+]); ?>
15 15
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -27,11 +27,11 @@
 block discarded – undo
27 27
 foreach ($records as $profile) {
28 28
     $items[] = [
29 29
         ['text' => $profile->id],
30
-        ['text' => $profile->user->login . '/' . $profile->user->email],
30
+        ['text' => $profile->user->login.'/'.$profile->user->email],
31 31
         ['text' => $profile->nick],
32 32
         ['text' => Str::startsWith('0000-', $profile->birthday) ? __('None') : Date::convertToDatetime($profile->birthday)],
33
-        ['text' => ($profile->rating > 0 ? '+' : null) . $profile->rating],
34
-        ['text' => Url::link(['profile/update', $profile->id], '<i class="fa fa-pencil fa-lg"></i> ') .
33
+        ['text' => ($profile->rating > 0 ? '+' : null).$profile->rating],
34
+        ['text' => Url::link(['profile/update', $profile->id], '<i class="fa fa-pencil fa-lg"></i> ').
35 35
             Url::link(['user/delete', $profile->user->id], '<i class="fa fa-trash-o fa-lg"></i>'),
36 36
             'html' => true, 'property' => ['class' => 'text-center']]
37 37
     ];
Please login to merge, or discard this patch.
Apps/View/Admin/default/profile/field_list.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
 <hr />
23 23
     <div class="row">
24 24
         <div class="col-md-12">
25
-            <?= Url::link(['profile/fieldupdate', 0], '<i class="fa fa-plus"></i> ' . __('Add field'), ['class' => 'btn btn-primary pull-right']) ?>
25
+            <?= Url::link(['profile/fieldupdate', 0], '<i class="fa fa-plus"></i> '.__('Add field'), ['class' => 'btn btn-primary pull-right']) ?>
26 26
         </div>
27 27
     </div>
28 28
 <?php if ($records->count() > 0):
@@ -37,10 +37,10 @@  discard block
 block discarded – undo
37 37
         $items[] = [
38 38
             ['text' => $row->id],
39 39
             ['text' => $row->getLocaled('name')],
40
-            ['text' => '<span class="' . $labelClass . '">' . $row->type . '</span>', 'html' => true],
41
-            ['text' => '<code>' . ($row->reg_cond == 0 ? '!' : null) . 'preg_match("' . $row->reg_exp . '", input)' . '</code>', 'html' => true],
40
+            ['text' => '<span class="'.$labelClass.'">'.$row->type.'</span>', 'html' => true],
41
+            ['text' => '<code>'.($row->reg_cond == 0 ? '!' : null).'preg_match("'.$row->reg_exp.'", input)'.'</code>', 'html' => true],
42 42
             [
43
-                'text' => Url::link(['profile/fieldupdate', $row->id], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]) .
43
+                'text' => Url::link(['profile/fieldupdate', $row->id], '<i class="fa fa-pencil fa-lg"></i> ', ['html' => true]).
44 44
                 Url::link(['profile/fielddelete', $row->id], '<i class="fa fa-trash-o fa-lg"></i>', ['html' => true]),
45 45
                 'html' => true,
46 46
                 'property' => ['class' => 'text-center']
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,6 +65,9 @@
 block discarded – undo
65 65
     ]
66 66
 ]);
67 67
     ?>
68
-<?php else: ?>
68
+<?php else {
69
+    : ?>
69 70
     <p class="alert alert-warning"><?= __('No additional fields is add yet!') ?></p>
70
-<?php endif; ?>
71 71
\ No newline at end of file
72
+<?php endif;
73
+}
74
+?>
72 75
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Install/default/main/index.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -79,7 +79,7 @@
 block discarded – undo
79 79
 
80 80
 <br />
81 81
 
82
-<?php if($model->checkAll()): ?>
82
+<?php if ($model->checkAll()): ?>
83 83
     <div class="row">
84 84
         <div class="col-xs-3" style="padding-top: 5px;padding-left: 25px;">
85 85
             <input type="checkbox" id="agree-license" /> <label for="agree-license"><?= __('Accept license') ?></label>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -88,9 +88,12 @@
 block discarded – undo
88 88
             <a href="#license" class="btn btn-success btn-block" id="install-link" disabled="disabled"><?= __('Start install') ?></a>
89 89
         </div>
90 90
     </div>
91
-<?php else: ?>
91
+<?php else {
92
+    : ?>
92 93
     <?= \Ffcms\Core\Helper\Url::link('main/index', __('Check again'), ['class' => 'btn btn-warning btn-block']) ?>
93
-<?php endif; ?>
94
+<?php endif;
95
+}
96
+?>
94 97
 <script>
95 98
     $(document).ready(function () {
96 99
         $('#agree-license').change(function () {
Please login to merge, or discard this patch.
Apps/Console/GeneratorModelCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,12 +52,12 @@
 block discarded – undo
52 52
             throw new \Exception('Wrong definition for loader. You shoud use front, admin, api');
53 53
         }
54 54
 
55
-        $namespace = 'Apps\Model\\' . $loader . '\\' . $controller;
55
+        $namespace = 'Apps\Model\\'.$loader.'\\'.$controller;
56 56
         $tpl = File::read('/Private/Carcase/Model.tphp');
57 57
         $code = Str::replace(['%namespace%', '%name%'], [$namespace, $name], $tpl);
58
-        $path = '/Apps/Model/' . $loader . '/' . $controller . '/' . $name . '.php';
58
+        $path = '/Apps/Model/'.$loader.'/'.$controller.'/'.$name.'.php';
59 59
         File::write($path, $code);
60
-        $output->writeln('Model are successful created: ' . $path);
60
+        $output->writeln('Model are successful created: '.$path);
61 61
     }
62 62
 
63 63
 }
64 64
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Console/GeneratorActiveRecordCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,8 +41,8 @@
 block discarded – undo
41 41
         $tpl = File::read('/Private/Carcase/ActiveRecord.tphp');
42 42
         $code = Str::replace('%name%', $name, $tpl);
43 43
 
44
-        $path = '/Apps/ActiveRecord/' . $name . '.php';
44
+        $path = '/Apps/ActiveRecord/'.$name.'.php';
45 45
         File::write($path, $code);
46
-        $output->writeln('ActiveRecord are successful created: ' . $path);
46
+        $output->writeln('ActiveRecord are successful created: '.$path);
47 47
     }
48 48
 }
49 49
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Console/MainPermCommand.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,17 +53,17 @@
 block discarded – undo
53 53
             preg_match_all('/public function action(\w*?)\(/', $byte, $matches); // matches[0] contains all methods ;)
54 54
             if (Any::isArray($matches[1]) && count($matches[1]) > 0) {
55 55
                 foreach ($matches[1] as $perm) {
56
-                    $fullPerm = 'Admin/' . $className . '/' . $perm;
56
+                    $fullPerm = 'Admin/'.$className.'/'.$perm;
57 57
                     $permissions[] = $fullPerm;
58
-                    $output->writeln("\tAdd permission: " . $fullPerm);
58
+                    $output->writeln("\tAdd permission: ".$fullPerm);
59 59
                 }
60 60
             }
61 61
         }
62 62
         // prepare save string
63
-        $stringSave = "<?php \n\nreturn " . Arr::exportVar($permissions) . ';';
63
+        $stringSave = "<?php \n\nreturn ".Arr::exportVar($permissions).';';
64 64
         File::write('/Private/Config/Permissions.php', $stringSave);
65 65
 
66
-        $output->writeln('Permissions configuration is successful updated! Founded permissions: ' . count($permissions));
66
+        $output->writeln('Permissions configuration is successful updated! Founded permissions: '.count($permissions));
67 67
     }
68 68
 
69 69
 }
70 70
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Console/GeneratorControllerCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,12 +50,12 @@
 block discarded – undo
50 50
         }
51 51
 
52 52
         // prepare code & write
53
-        $template = File::read('/Private/Carcase/' . $loader . '/Controller.tphp');
53
+        $template = File::read('/Private/Carcase/'.$loader.'/Controller.tphp');
54 54
         $code = Str::replace(['%name%'], [$name], $template);
55 55
 
56
-        $savePath = '/Apps/Controller/' . $loader . '/' . $name . '.php';
56
+        $savePath = '/Apps/Controller/'.$loader.'/'.$name.'.php';
57 57
         File::write($savePath, $code);
58 58
 
59
-        $output->write('Controller are successful created: ' . $savePath);
59
+        $output->write('Controller are successful created: '.$savePath);
60 60
     }
61 61
 }
62 62
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Console/MigrationInstallCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
             $output->write('Migration table is always exists!');
37 37
             return;
38 38
         }
39
-        DatabaseManager::schema($this->dbConnection)->create('migrations', function ($table){
39
+        DatabaseManager::schema($this->dbConnection)->create('migrations', function($table) {
40 40
             $table->increments('id');
41 41
             $table->string('migration', 127)->unique();
42 42
             $table->timestamps();
Please login to merge, or discard this patch.