Passed
Push — master ( 241ad5...b90dc4 )
by Mihail
09:38 queued 03:57
created
Apps/Model/Front/Content/EntityContentRead.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@
 block discarded – undo
67 67
     /**
68 68
      * Prepare model attributes from passed objects
69 69
      * @throws ForbiddenException
70
-    */
70
+     */
71 71
     public function before()
72 72
     {
73 73
         // set class attributes from ActiveRecord objects
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
         $this->id = $this->_content->id;
89 89
         $this->title = $this->_content->getLocaled('title');
90 90
         $this->text = $this->_content->getLocaled('text');
91
-        $this->display = (bool)$this->_content->display;
91
+        $this->display = (bool) $this->_content->display;
92 92
 
93 93
         $this->metaTitle = $this->_content->getLocaled('meta_title');
94 94
         $this->metaDescription = $this->_content->getLocaled('meta_description');
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
         }
108 108
 
109 109
         $this->source = $this->_content->source;
110
-        $this->views = $this->_content->views+1;
110
+        $this->views = $this->_content->views + 1;
111 111
         $this->rating = $this->_content->rating;
112 112
 
113 113
         // update views count
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
 
134 134
         $ignoredRate = App::$Session->get('content.rate.ignore');
135 135
         $this->canRate = true;
136
-        if (Any::isArray($ignoredRate) && Arr::in((string)$this->id, $ignoredRate)) {
136
+        if (Any::isArray($ignoredRate) && Arr::in((string) $this->id, $ignoredRate)) {
137 137
             $this->canRate = false;
138 138
         }
139 139
         if (!App::$User->isAuth()) {
@@ -149,15 +149,15 @@  discard block
 block discarded – undo
149 149
     private function prepareGallery()
150 150
     {
151 151
         // get gallery images and poster data
152
-        $galleryPath = '/upload/gallery/' . $this->_content->id;
152
+        $galleryPath = '/upload/gallery/'.$this->_content->id;
153 153
         // check if gallery folder is exist
154 154
         if (Directory::exist($galleryPath)) {
155
-            $originImages = File::listFiles($galleryPath . '/orig/', ['.jpg', '.png', '.gif', '.jpeg', '.bmp', '.webp'], true);
155
+            $originImages = File::listFiles($galleryPath.'/orig/', ['.jpg', '.png', '.gif', '.jpeg', '.bmp', '.webp'], true);
156 156
             // generate poster data
157 157
             if (Arr::in($this->_content->poster, $originImages)) {
158 158
                 // original poster
159 159
                 $posterName = $this->_content->poster;
160
-                $this->posterFull = $galleryPath . '/orig/' . $posterName;
160
+                $this->posterFull = $galleryPath.'/orig/'.$posterName;
161 161
                 if (!File::exist($this->posterFull)) {
162 162
                     $this->posterFull = null;
163 163
                 }
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                 $posterSplit = explode('.', $posterName);
167 167
                 array_pop($posterSplit);
168 168
                 $posterCleanName = implode('.', $posterSplit);
169
-                $this->posterThumb = $galleryPath . '/thumb/' . $posterCleanName . '.jpg';
169
+                $this->posterThumb = $galleryPath.'/thumb/'.$posterCleanName.'.jpg';
170 170
                 if (!File::exist($this->posterThumb)) {
171 171
                     $this->posterThumb = null;
172 172
                 }
@@ -182,9 +182,9 @@  discard block
 block discarded – undo
182 182
                     continue;
183 183
                 }
184 184
 
185
-                $thumbPath = $galleryPath . '/thumb/' . $imageClearName . '.jpg';
185
+                $thumbPath = $galleryPath.'/thumb/'.$imageClearName.'.jpg';
186 186
                 if (File::exist($thumbPath)) {
187
-                    $this->galleryItems[$thumbPath] = $galleryPath . '/orig/' . $image;
187
+                    $this->galleryItems[$thumbPath] = $galleryPath.'/orig/'.$image;
188 188
                 }
189 189
             }
190 190
         }
Please login to merge, or discard this patch.
Apps/Controller/Admin/User/ActionIndex.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
         $record = new UserRecord();
29 29
 
30 30
         // set current page num and offset
31
-        $page = (int)$this->request->query->get('page', 0);
31
+        $page = (int) $this->request->query->get('page', 0);
32 32
         $offset = $page * self::ITEM_PER_PAGE;
33 33
 
34 34
         // build pagination object
Please login to merge, or discard this patch.
Apps/View/Front/default/_layouts/default.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
 <main role="main" class="container">
58 58
     <div class="row">
59 59
         <div class="col-md-9">
60
-            <?php if($this->section('body')): ?>
60
+            <?php if ($this->section('body')): ?>
61 61
                 <?= $this->section('body') ?>
62 62
             <?php else: ?>
63 63
                 <p>Page not found!</p>
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,9 +59,12 @@
 block discarded – undo
59 59
         <div class="col-md-9">
60 60
             <?php if($this->section('body')): ?>
61 61
                 <?= $this->section('body') ?>
62
-            <?php else: ?>
62
+            <?php else {
63
+    : ?>
63 64
                 <p>Page not found!</p>
64
-            <?php endif; ?>
65
+            <?php endif;
66
+}
67
+?>
65 68
         </div>
66 69
         <div class="col-md">
67 70
             <div class="card">
Please login to merge, or discard this patch.
Private/Config/Default.php 1 patch
Indentation   +45 added lines, -45 removed lines patch added patch discarded remove patch
@@ -1,48 +1,48 @@
 block discarded – undo
1 1
 <?php return [
2
-	'baseProto' => 'http',
3
-	'baseDomain' => 'ffcms.app',
4
-	'basePath' => '/',
5
-	'passwordSalt' => '$2a$07$2NJgci5A7NI9m2J9Ii92a1I3DiH6$',
6
-	'timezone' => 'Europe/Moscow',
7
-	'mail' => [
8
-        	'host' => 'localhost',
9
-        	'port' => 21,
10
-        	'user' => '[email protected]',
11
-        	'password' => 'sEcur3pwd',
12
-        	'encrypt' => 'tls'
13
-    	],
14
-	'debug' => [
15
-		'all' => false,
16
-		'cookie' => [
17
-			'key' => 'fdebug_jepP2',
18
-			'value' => 'pOH1Kj18fHN7mk9a81F32eJbl9d3AeDjLC1g7poPGE22Ii6pI68P5B6O5hKMofnLPB0lFdpo2a2o78NhedjGA'
19
-		]
20
-	],
21
-	'userCron' => false,
22
-	'theme' => [
23
-		'Front' => 'default',
24
-		'Admin' => 'default'
25
-	],
26
-	'database' => [
27
-		'driver' => 'mysql',
28
-		'host' => '127.0.0.1',
29
-		'username' => 'mysql',
30
-		'password' => 'mysql',
31
-		'database' => 'ffcms',
32
-		'prefix' => 'ffcms_',
33
-		'charset' => 'utf8',
34
-		'collation' => 'utf8_unicode_ci'
35
-	],
2
+    'baseProto' => 'http',
3
+    'baseDomain' => 'ffcms.app',
4
+    'basePath' => '/',
5
+    'passwordSalt' => '$2a$07$2NJgci5A7NI9m2J9Ii92a1I3DiH6$',
6
+    'timezone' => 'Europe/Moscow',
7
+    'mail' => [
8
+            'host' => 'localhost',
9
+            'port' => 21,
10
+            'user' => '[email protected]',
11
+            'password' => 'sEcur3pwd',
12
+            'encrypt' => 'tls'
13
+        ],
14
+    'debug' => [
15
+        'all' => false,
16
+        'cookie' => [
17
+            'key' => 'fdebug_jepP2',
18
+            'value' => 'pOH1Kj18fHN7mk9a81F32eJbl9d3AeDjLC1g7poPGE22Ii6pI68P5B6O5hKMofnLPB0lFdpo2a2o78NhedjGA'
19
+        ]
20
+    ],
21
+    'userCron' => false,
22
+    'theme' => [
23
+        'Front' => 'default',
24
+        'Admin' => 'default'
25
+    ],
26
+    'database' => [
27
+        'driver' => 'mysql',
28
+        'host' => '127.0.0.1',
29
+        'username' => 'mysql',
30
+        'password' => 'mysql',
31
+        'database' => 'ffcms',
32
+        'prefix' => 'ffcms_',
33
+        'charset' => 'utf8',
34
+        'collation' => 'utf8_unicode_ci'
35
+    ],
36 36
     'testSuite' => false,
37
-	'baseLanguage' => 'en',
38
-	'multiLanguage' => true,
39
-	'singleLanguage' => 'en',
40
-	'languages' => [
41
-		'en',
42
-		'ru'
43
-	],
44
-	'languageDomainAlias' => false,
45
-	'gaClientId' => '570934480862-son8fr180fr6u6tlt9iqpjpoesngro0o.apps.googleusercontent.com',
46
-	'gaTrackId' => false,
47
-	'trustedProxy' => false
37
+    'baseLanguage' => 'en',
38
+    'multiLanguage' => true,
39
+    'singleLanguage' => 'en',
40
+    'languages' => [
41
+        'en',
42
+        'ru'
43
+    ],
44
+    'languageDomainAlias' => false,
45
+    'gaClientId' => '570934480862-son8fr180fr6u6tlt9iqpjpoesngro0o.apps.googleusercontent.com',
46
+    'gaTrackId' => false,
47
+    'trustedProxy' => false
48 48
 ];
Please login to merge, or discard this patch.