Passed
Push — master ( 66552f...f7aa08 )
by Mihail
05:29
created
Apps/View/Admin/default/profile/_tabs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,4 +9,4 @@
 block discarded – undo
9 9
         ['type' => 'link', 'text' => __('Group management'), 'link' => ['user/grouplist']],
10 10
         ['type' => 'link', 'text' => __('Settings'), 'link' => ['user/settings']]
11 11
     ]
12
-]);?>
13 12
\ No newline at end of file
13
+]); ?>
14 14
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Front/default/content/list.php 3 patches
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,7 +59,8 @@  discard block
 block discarded – undo
59 59
                 </a>
60 60
             </div>
61 61
         </div>
62
-        <?php else: ?>
62
+        <?php else {
63
+    : ?>
63 64
         <div class="row">
64 65
             <div class="col-md-8" style="padding-right: 0;">
65 66
                 <a href="javascript:void(0);" class="btn btn-block <?= $rateClass ?>">
@@ -76,7 +77,9 @@  discard block
 block discarded – undo
76 77
                 <a href="javascript:void(0);" class="btn btn-block btn-danger" id="reduceRating">-</a>
77 78
             </div>
78 79
         </div>
79
-        <?php endif; ?>
80
+        <?php endif;
81
+}
82
+?>
80 83
         <?php endif; ?>
81 84
         <?php
82 85
         $userMenu = null;
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -100,12 +100,12 @@
 block discarded – undo
100 100
         </div>
101 101
         <div class="meta">
102 102
         	<?php if ((int)$catConfigs['showRating'] === 1) {
103
-        	    echo \App::$View->render('content/_rate', [
104
-        	        'id' => $item['id'],
105
-        	        'canRate' => $item['canRate'],
106
-        	        'rating' => $item['rating']
107
-        	    ]);
108
-        	} ?>
103
+                echo \App::$View->render('content/_rate', [
104
+                    'id' => $item['id'],
105
+                    'canRate' => $item['canRate'],
106
+                    'rating' => $item['rating']
107
+                ]);
108
+            } ?>
109 109
         	
110 110
         	<span class="spaced hidden-xs"><i class="fa fa-comments"></i>
111 111
                 <a href="#"><?= __('Comments') ?>: <span itemprop="commentCount">0</span></a>
Please login to merge, or discard this patch.
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 
16 16
 $catConfigs = [];
17 17
 foreach ($model->category['configs'] as $key=>$value) {
18
-    $catConfigs[$key] = (int)$value === 1;
18
+    $catConfigs[$key] = (int) $value === 1;
19 19
 }
20 20
 
21 21
 $catMeta = [
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
 <?php foreach ($model->items as $item): ?>
57 57
     <article class="article-item" itemscope="itemscope" itemtype="https://schema.org/NewsArticle">
58 58
         <h2 itemprop="name">
59
-            <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>">
59
+            <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>">
60 60
                 <?= $item['title'] ?>
61 61
             </a>
62 62
         </h2>
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
                 <?php
84 84
                 $ownerNick = $item['author']->getProfile()->getNickname();
85 85
                 if ($item['author']->getId() < 1) {
86
-                    echo '<s>' . $ownerNick . '</s>';
86
+                    echo '<s>'.$ownerNick.'</s>';
87 87
                 } else {
88 88
                     echo Url::link(['profile/show', $item['author']->getId()], $ownerNick, ['itemprop' => 'author']);
89 89
                 }
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
         <div class="row">
101 101
             <div class="col-md-12">
102 102
                 <?php if ($catConfigs['showPoster'] === true && $item['thumb'] !== null): ?>
103
-                <img src="<?= \App::$Alias->scriptUrl . $item['thumb'] ?>" class="image_poster img-thumbnail hidden-xs" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" />
103
+                <img src="<?= \App::$Alias->scriptUrl.$item['thumb'] ?>" class="image_poster img-thumbnail hidden-xs" alt="<?= __('Poster for') ?>: <?= Str::lowerCase($item['title']) ?>" />
104 104
                 <?php endif; ?>
105 105
                 <div itemprop="text articleBody">
106 106
                     <?= $item['text'] ?>
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             </div>
109 109
         </div>
110 110
         <div class="meta">
111
-        	<?php if ((int)$catConfigs['showRating'] === 1) {
111
+        	<?php if ((int) $catConfigs['showRating'] === 1) {
112 112
         	    echo \App::$View->render('content/_rate', [
113 113
         	        'id' => $item['id'],
114 114
         	        'canRate' => $item['canRate'],
@@ -120,12 +120,12 @@  discard block
 block discarded – undo
120 120
                 <a href="#"><?= __('Comments') ?>: <span itemprop="commentCount" id="comment-count-<?= $item['id'] ?>">0</span></a>
121 121
             </span>
122 122
             <span class="pull-right">
123
-            <?php if ((int)$configs['keywordsAsTags'] === 1 && $item['tags'] !== null && Obj::isArray($item['tags'])): ?>
123
+            <?php if ((int) $configs['keywordsAsTags'] === 1 && $item['tags'] !== null && Obj::isArray($item['tags'])): ?>
124 124
                 <span class="spaced"><i class="fa fa-tags hidden-xs"></i>
125 125
                 <?php
126 126
                     foreach ($item['tags'] as $tag) {
127 127
                         $tag = \App::$Security->strip_tags(trim($tag));
128
-                        echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default']) . "&nbsp;";
128
+                        echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default'])."&nbsp;";
129 129
                     }
130 130
                 ?>
131 131
                 </span>
Please login to merge, or discard this patch.
Private/Config/Default.php 1 patch
Indentation   +32 added lines, -32 removed lines patch added patch discarded remove patch
@@ -1,34 +1,34 @@
 block discarded – undo
1 1
 <?php return [
2
-	'basePath' => '/',
3
-	'passwordSalt' => '$2a$10$1o81mUjA4NhQp8nSeaFmN8',
4
-	'debug' => [
5
-		'all' => false,
6
-		'cookie' => [
7
-			'key' => 'fdebug',
8
-			'value' => 'jiSpq941Am'
9
-		]
10
-	],
11
-	'theme' => [
12
-		'Front' => 'default',
13
-		'Admin' => 'default'
14
-	],
15
-	'database' => [
16
-		'driver' => 'mysql',
17
-		'host' => '127.0.0.1',
18
-		'database' => 'ffcms3',
19
-		'username' => 'mysql',
20
-		'password' => 'mysql',
21
-		'charset' => 'utf8',
22
-		'collation' => 'utf8_unicode_ci',
23
-		'prefix' => 'ffcms_'
24
-	],
25
-	'adminEmail' => '[email protected]',
26
-	'baseLanguage' => 'en',
27
-	'multiLanguage' => true,
28
-	'singleLanguage' => 'en',
29
-	'languages' => [
30
-		'en',
31
-		'ru'
32
-	],
33
-	'languageDomainAlias' => false
2
+    'basePath' => '/',
3
+    'passwordSalt' => '$2a$10$1o81mUjA4NhQp8nSeaFmN8',
4
+    'debug' => [
5
+        'all' => false,
6
+        'cookie' => [
7
+            'key' => 'fdebug',
8
+            'value' => 'jiSpq941Am'
9
+        ]
10
+    ],
11
+    'theme' => [
12
+        'Front' => 'default',
13
+        'Admin' => 'default'
14
+    ],
15
+    'database' => [
16
+        'driver' => 'mysql',
17
+        'host' => '127.0.0.1',
18
+        'database' => 'ffcms3',
19
+        'username' => 'mysql',
20
+        'password' => 'mysql',
21
+        'charset' => 'utf8',
22
+        'collation' => 'utf8_unicode_ci',
23
+        'prefix' => 'ffcms_'
24
+    ],
25
+    'adminEmail' => '[email protected]',
26
+    'baseLanguage' => 'en',
27
+    'multiLanguage' => true,
28
+    'singleLanguage' => 'en',
29
+    'languages' => [
30
+        'en',
31
+        'ru'
32
+    ],
33
+    'languageDomainAlias' => false
34 34
 ];
35 35
\ No newline at end of file
Please login to merge, or discard this patch.
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   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,14 +71,14 @@
 block discarded – undo
71 71
         $cfg['database'] = $this->db;
72 72
         $cfg['adminEmail'] = $this->email;
73 73
         $cfg['singleLanguage'] = $this->singleLanguage;
74
-        $cfg['multiLanguage'] = (bool)$this->multiLanguage;
75
-        $cfg['passwordSalt'] = '$2a$07$' . Str::randomLatinNumeric(mt_rand(21, 30)) . '$';
76
-        $cfg['debug']['cookie']['key'] = 'fdebug_' . Str::randomLatinNumeric(mt_rand(4, 16));
74
+        $cfg['multiLanguage'] = (bool) $this->multiLanguage;
75
+        $cfg['passwordSalt'] = '$2a$07$'.Str::randomLatinNumeric(mt_rand(21, 30)).'$';
76
+        $cfg['debug']['cookie']['key'] = 'fdebug_'.Str::randomLatinNumeric(mt_rand(4, 16));
77 77
         $cfg['debug']['cookie']['value'] = Str::randomLatinNumeric(mt_rand(32, 128));
78 78
 
79 79
         // import database tables
80 80
         $connectName = 'install';
81
-        include(root . '/Private/Database/install.php');
81
+        include(root.'/Private/Database/install.php');
82 82
 
83 83
         // insert admin user
84 84
         $user = new User();
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/default/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/Database/Tables/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3 3
 Illuminate\Database\Capsule\Manager::schema($connectName)->create('sessions', function($table) {
4
-    $table->string('sess_id', 128)->index()->primary()  ;
4
+    $table->string('sess_id', 128)->index()->primary();
5 5
     $table->binary('sess_data');
6 6
     $table->string('sess_lifetime', 16); // shutout to laravel, if i make it like "integer" it automaticlly add "primary" key for it, hate this!!!
7 7
     $table->string('sess_time', 16);
Please login to merge, or discard this patch.
Apps/View/Front/default/content/read.php 3 patches
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -67,17 +67,23 @@
 block discarded – undo
67 67
         <?php if ($properties['author'] === true): ?>
68 68
             <?php if ($model->authorId !== null && $model->authorId > 0): ?>
69 69
                 <span><i class="fa fa-user"></i><?= Url::link(['profile/show', $model->authorId], $model->authorName, ['itemprop' => 'author']) ?></span>
70
-            <?php else: ?>
70
+            <?php else {
71
+    : ?>
71 72
                 <span><i class="fa fa-user"></i><s><?= $model->authorName ?></s></span>
72
-            <?php endif; ?>
73
+            <?php endif;
74
+}
75
+?>
73 76
         <?php endif; ?>
74 77
         <?php if ($properties['views'] === true): ?>
75 78
         <span><i class="fa fa-eye"></i><?= $model->views ?></span>
76 79
         <?php endif ?>
77 80
     </div>
78
-    <?php else: ?>
81
+    <?php else {
82
+    : ?>
79 83
     <hr />
80
-    <?php endif; ?>
84
+    <?php endif;
85
+}
86
+?>
81 87
     <?php if ($trash): ?>
82 88
     <p class="alert alert-danger"><i class="fa fa-trash-o"></i> <?= __('This content is placed in trash') ?></p>
83 89
     <?php endif; ?>
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -159,12 +159,12 @@
 block discarded – undo
159 159
     	<div class="col-md-12">
160 160
     		<div class="pull-left">
161 161
         	<?php if ($properties['rating']) {
162
-        	    echo \App::$View->render('content/_rate', [
163
-        	        'id' => $model->id,
164
-        	        'rating' => $model->rating,
165
-        	        'canRate' => $model->canRate
166
-        	    ]);
167
-        	} ?>
162
+                echo \App::$View->render('content/_rate', [
163
+                    'id' => $model->id,
164
+                    'rating' => $model->rating,
165
+                    'canRate' => $model->canRate
166
+                ]);
167
+            } ?>
168 168
         	<?= \App::$View->render('content/_rateJs') ?>
169 169
     		</div>
170 170
     		<div class="pull-right">
Please login to merge, or discard this patch.
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -35,21 +35,21 @@  discard block
 block discarded – undo
35 35
                 $breadcrumbs[Url::to('content/list', $cat['path'], null, [], false)] = $cat['name'];
36 36
             }
37 37
         }
38
-        $breadcrumbs[] = __('Content') . ': ' . Str::sub($this->title, 0, 40);
38
+        $breadcrumbs[] = __('Content').': '.Str::sub($this->title, 0, 40);
39 39
     }
40 40
 
41 41
     $this->breadcrumbs = $breadcrumbs;
42 42
 }
43 43
 
44 44
 $properties = [
45
-    'date' => (int)$model->getCategory()->getProperty('showDate') === 1,
46
-    'author' => (int)$model->getCategory()->getProperty('showAuthor') === 1,
47
-    'views' => (int)$model->getCategory()->getProperty('showViews') === 1,
48
-    'category' => (int)$model->getCategory()->getProperty('showCategory') === 1,
49
-    'rating' => (int)$model->getCategory()->getProperty('showRating') === 1
45
+    'date' => (int) $model->getCategory()->getProperty('showDate') === 1,
46
+    'author' => (int) $model->getCategory()->getProperty('showAuthor') === 1,
47
+    'views' => (int) $model->getCategory()->getProperty('showViews') === 1,
48
+    'category' => (int) $model->getCategory()->getProperty('showCategory') === 1,
49
+    'rating' => (int) $model->getCategory()->getProperty('showRating') === 1
50 50
 ];
51
-$showComments = (int)$model->getCategory()->getProperty('showComments') === 1;
52
-$showPoster = (int)$model->getCategory()->getProperty('showPoster') === 1;
51
+$showComments = (int) $model->getCategory()->getProperty('showComments') === 1;
52
+$showPoster = (int) $model->getCategory()->getProperty('showPoster') === 1;
53 53
 
54 54
 \App::$Cache->set('test.me.baby.1', ['key' => 'value']);
55 55
 ?>
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         <span class="spaced"><i class="fa fa-eye"></i><?= $model->views ?></span>
76 76
         <?php endif ?>
77 77
         <?php if (\App::$User->isAuth() && \App::$User->identity()->getRole()->can('Admin/Content/Update')): ?>
78
-        <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl . '/admin/content/update/' . $model->id ?>" target="_blank"><i class="fa fa-pencil" style="color: #ff0000;"></i></a></span>
78
+        <span class="pull-right"><a href="<?= \App::$Alias->scriptUrl.'/admin/content/update/'.$model->id ?>" target="_blank"><i class="fa fa-pencil" style="color: #ff0000;"></i></a></span>
79 79
         <?php endif; ?>
80 80
     </div>
81 81
     <?php else: ?>
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
     <div id="content-text">
88 88
         <?php if ($showPoster === true && $model->posterFull !== null && $model->posterThumb !== null): ?>
89 89
             <a href="#showPoster" data-toggle="modal" data-target="#showPoster">
90
-                <img alt="<?= __('Poster for') ?>: <?= Str::lowerCase(\App::$Security->strip_tags($model->title)) ?>" src="<?= \App::$Alias->scriptUrl . $model->posterThumb ?>" class="image_poster img-thumbnail" />
90
+                <img alt="<?= __('Poster for') ?>: <?= Str::lowerCase(\App::$Security->strip_tags($model->title)) ?>" src="<?= \App::$Alias->scriptUrl.$model->posterThumb ?>" class="image_poster img-thumbnail" />
91 91
             </a>
92 92
 
93 93
             <!-- Modal poster pop-up -->
@@ -99,19 +99,19 @@  discard block
 block discarded – undo
99 99
                             <h4 class="modal-title" id="myModalLabel"><?= __('View poster') ?></h4>
100 100
                         </div>
101 101
                         <div class="modal-body">
102
-                            <img class="img-responsive" src="<?= \App::$Alias->scriptUrl . $model->posterFull ?>" alt="<?= __('Poster image') ?>" style="margin: 0 auto;" />
102
+                            <img class="img-responsive" src="<?= \App::$Alias->scriptUrl.$model->posterFull ?>" alt="<?= __('Poster image') ?>" style="margin: 0 auto;" />
103 103
                         </div>
104 104
                     </div>
105 105
                 </div>
106 106
             </div>
107
-        <?php endif ;?>
107
+        <?php endif; ?>
108 108
         <?= $model->text ?>
109 109
     </div>
110 110
     <?php if ($model->galleryItems !== null && Obj::isArray($model->galleryItems)): ?>
111 111
         <div class="row">
112 112
         <?php foreach ($model->galleryItems as $thumbPic => $fullPic): ?>
113 113
             <div class="col-md-2 well">
114
-                <a href="#showGallery" class="modalGallery" content="<?= \App::$Alias->scriptUrl . $fullPic ?>"><img src="<?= \App::$Alias->scriptUrl . $thumbPic ?>" class="img-responsive image-item" /></a>
114
+                <a href="#showGallery" class="modalGallery" content="<?= \App::$Alias->scriptUrl.$fullPic ?>"><img src="<?= \App::$Alias->scriptUrl.$thumbPic ?>" class="img-responsive image-item" /></a>
115 115
             </div>
116 116
         <?php endforeach; ?>
117 117
         </div>
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
                         <h4 class="modal-title" id="showModalLabel"><?= __('View picture') ?></h4>
124 124
                     </div>
125 125
                     <div class="modal-body" id="modal-gallery-body">
126
-                        <img class="img-responsive" src="<?= \App::$Alias->scriptUrl . $model->posterFull ?>" alt="<?= __('Gallery picture') ?>" style="margin: 0 auto;" />
126
+                        <img class="img-responsive" src="<?= \App::$Alias->scriptUrl.$model->posterFull ?>" alt="<?= __('Gallery picture') ?>" style="margin: 0 auto;" />
127 127
                     </div>
128 128
                 </div>
129 129
             </div>
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                 </div>
145 145
                 <div id="similar<?= $idx ?>" class="panel-collapse collapse">
146 146
                     <div class="panel-body">
147
-                        <a href="<?= \App::$Alias->baseUrl . $item['uri'] ?>">
147
+                        <a href="<?= \App::$Alias->baseUrl.$item['uri'] ?>">
148 148
                             <?= $item['snippet'] ?>
149 149
                         </a>
150 150
                     </div>
@@ -168,14 +168,14 @@  discard block
 block discarded – undo
168 168
         	<?= \App::$View->render('content/_rateJs') ?>
169 169
     		</div>
170 170
     		<div class="pull-right">
171
-    		    <?php if ((int)$configs['keywordsAsTags'] === 1): ?>
171
+    		    <?php if ((int) $configs['keywordsAsTags'] === 1): ?>
172 172
                 <div id="content-tags">
173 173
                     <?php
174 174
                     if (Obj::isArray($model->metaKeywords) && count($model->metaKeywords) > 0 && Str::length($model->metaKeywords[0]) > 0) {
175 175
                         echo '<i class="fa fa-tags hidden-xs"></i> ';
176 176
                         foreach ($model->metaKeywords as $tag) {
177 177
                             $tag = \App::$Security->strip_tags(trim($tag));
178
-                            echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default']) . "&nbsp;";
178
+                            echo Url::link(['content/tag', $tag], $tag, ['class' => 'label label-default'])."&nbsp;";
179 179
                         }
180 180
                     }
181 181
                     ?>
Please login to merge, or discard this patch.
Apps/Model/Admin/Application/FormInstall.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -33,8 +33,8 @@
 block discarded – undo
33 33
     }
34 34
 
35 35
     /**
36
-    * Validation rules
37
-    */
36
+     * Validation rules
37
+     */
38 38
     public function rules()
39 39
     {
40 40
         return [
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     public function before()
40 40
     {
41 41
         foreach ($this->_apps as $app) {
42
-            $this->_definedControllers[] = (string)$app->sys_name;
42
+            $this->_definedControllers[] = (string) $app->sys_name;
43 43
         }
44 44
 
45 45
         parent::before();
@@ -70,14 +70,14 @@  discard block
 block discarded – undo
70 70
     public function make()
71 71
     {
72 72
         $cName = ucfirst(Str::lowerCase($this->sysname));
73
-        $cPath = 'Apps\Controller\Admin\\' . $cName;
73
+        $cPath = 'Apps\Controller\Admin\\'.$cName;
74 74
         // if object class is not loaded - prevent install
75
-        if (!class_exists($cPath) || !defined($cPath . '::VERSION')) {
75
+        if (!class_exists($cPath) || !defined($cPath.'::VERSION')) {
76 76
             return false;
77 77
         }
78 78
 
79 79
         // get ext version
80
-        $cVersion = (float)constant($cPath . '::VERSION');
80
+        $cVersion = (float) constant($cPath.'::VERSION');
81 81
         if ($cVersion < 0.1) {
82 82
             $cVersion = 0.1;
83 83
         }
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
 
94 94
         // callback to install method in extension
95 95
         if (method_exists($cPath, 'install')) {
96
-            call_user_func($cPath . '::install');
96
+            call_user_func($cPath.'::install');
97 97
         }
98 98
 
99 99
         return true;
Please login to merge, or discard this patch.