Passed
Push — master ( ef4849...3d6fe1 )
by Mihail
05:23
created
Private/Config/Routing.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php return [
2
-	'Alias' => [
3
-		'Front' => [
4
-			'/' => '/content/list/news'
5
-		]
6
-	]
2
+    'Alias' => [
3
+        'Front' => [
4
+            '/' => '/content/list/news'
5
+        ]
6
+    ]
7 7
 ];
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Front/User/FormRecovery.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
     public $captcha;
23 23
 
24 24
     /**
25
-    * Labels for visual display
26
-    */
25
+     * Labels for visual display
26
+     */
27 27
     public function labels()
28 28
     {
29 29
         return [
@@ -33,8 +33,8 @@  discard block
 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.
Apps/Model/Admin/User/FormUserGroupUpdate.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,8 +31,8 @@  discard block
 block discarded – undo
31 31
     }
32 32
 
33 33
     /**
34
-    * Parse public attribute values from input object data
35
-    */
34
+     * Parse public attribute values from input object data
35
+     */
36 36
     public function before()
37 37
     {
38 38
         $this->name = $this->_role->name;
@@ -42,9 +42,9 @@  discard block
 block discarded – undo
42 42
     }
43 43
 
44 44
     /**
45
-    * Display labels data
45
+     * Display labels data
46 46
      * @return array
47
-    */
47
+     */
48 48
     public function labels()
49 49
     {
50 50
         return [
Please login to merge, or discard this patch.
Apps/View/Admin/default/main/routing.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,5 +95,5 @@
 block discarded – undo
95 95
 </div>
96 96
 <?php if (count($staticItems) < 1 && count($dynamicItems) < 1): ?>
97 97
     <p class="alert alert-warning"><?= __('Custom routes is not yet found') ?></p>
98
-<?php endif ;?>
99
-<?= Url::link(['main/addroute'], '<i class="fa fa-plus"></i> ' . __('New route'), ['class' => 'btn btn-primary']) ?>
100 98
\ No newline at end of file
99
+<?php endif; ?>
100
+<?= Url::link(['main/addroute'], '<i class="fa fa-plus"></i> '.__('New route'), ['class' => 'btn btn-primary']) ?>
101 101
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Front/Sitemap/EntityBuildMap.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 use Ffcms\Core\App as MainApp;
6 6
 use Ffcms\Core\Arch\ActiveModel;
7 7
 use Ffcms\Core\Helper\Type\Arr;
8
-use Ffcms\Core\Helper\Type\Str;
9 8
 
10 9
 class Role extends ActiveModel
11 10
 {
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -52,16 +52,16 @@  discard block
 block discarded – undo
52 52
                 $this->data[$lang][] = [
53 53
                     'uri' => Url::standaloneUrl($uri, $lang),
54 54
                     'lastmod' => Date::convertToDatetime($lastmod, 'c'),
55
-                    'freq' => (string)$freq,
56
-                    'priority' => (float)$priority
55
+                    'freq' => (string) $freq,
56
+                    'priority' => (float) $priority
57 57
                 ];
58 58
             }
59 59
         } else { // only one language, multilanguage is disabled
60 60
             $this->data[App::$Properties->get('singleLanguage')][] = [
61 61
                 'uri' => Url::standaloneUrl($uri),
62 62
                 'lastmod' => Date::convertToDatetime($lastmod, 'c'),
63
-                'freq' => (string)$freq,
64
-                'priority' => (float)$priority
63
+                'freq' => (string) $freq,
64
+                'priority' => (float) $priority
65 65
             ];
66 66
         }
67 67
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
                 'items' => $items
87 87
             ]);
88 88
             
89
-            File::write(EntityIndexList::INDEX_PATH . '/' . $uniqueName . '.' . $lang . '.xml', $xml);
89
+            File::write(EntityIndexList::INDEX_PATH.'/'.$uniqueName.'.'.$lang.'.xml', $xml);
90 90
         }
91 91
         return true;
92 92
     }
Please login to merge, or discard this patch.
Apps/Model/Front/Sitemap/EntityIndexList.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -47,10 +47,10 @@  discard block
 block discarded – undo
47 47
         $scan = File::listFiles(static::INDEX_PATH, ['.xml'], true);
48 48
         if (Obj::isArray($scan)) {
49 49
             foreach ($scan as $file) {
50
-                if (!Str::contains('.' . $this->_lang, $file)) {
50
+                if (!Str::contains('.'.$this->_lang, $file)) {
51 51
                     continue;
52 52
                 }
53
-                $this->files[] = static::INDEX_PATH . '/' . $file;
53
+                $this->files[] = static::INDEX_PATH.'/'.$file;
54 54
             }
55 55
         }
56 56
     }
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         // build file information data
68 68
         foreach ($this->files as $file) {
69 69
             $this->info[] = [
70
-                'loc' => App::$Alias->scriptUrl . $file,
70
+                'loc' => App::$Alias->scriptUrl.$file,
71 71
                 'lastmod' => Date::convertToDatetime(File::mTime($file), 'c')
72 72
             ];
73 73
         }
Please login to merge, or discard this patch.
Private/Config/Default.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,40 +1,40 @@
 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
-	'debug' => [
8
-		'all' => false,
9
-		'cookie' => [
10
-			'key' => 'fdebug_jepP2',
11
-			'value' => 'pOH1Kj18fHN7mk9a81F32eJbl9d3AeDjLC1g7poPGE22Ii6pI68P5B6O5hKMofnLPB0lFdpo2a2o78NhedjGA'
12
-		]
13
-	],
14
-	'theme' => [
15
-		'Front' => 'default',
16
-		'Admin' => 'default'
17
-	],
18
-	'database' => [
19
-		'driver' => 'mysql',
20
-		'host' => '127.0.0.1',
21
-		'username' => 'mysql',
22
-		'password' => 'mysql',
23
-		'database' => 'ffcms',
24
-		'prefix' => 'ffcms_',
25
-		'charset' => 'utf8',
26
-		'collation' => 'utf8_unicode_ci'
27
-	],
28
-	'adminEmail' => '[email protected]',
29
-	'baseLanguage' => 'en',
30
-	'multiLanguage' => false,
31
-	'singleLanguage' => 'ru',
32
-	'languages' => [
33
-		'en',
34
-		'ru'
35
-	],
36
-	'languageDomainAlias' => false,
37
-	'gaClientId' => '570934480862-son8fr180fr6u6tlt9iqpjpoesngro0o.apps.googleusercontent.com',
38
-	'gaTrackId' => false,
39
-	'trustedProxy' => false
2
+    'baseProto' => 'http',
3
+    'baseDomain' => 'ffcms.app',
4
+    'basePath' => '/',
5
+    'passwordSalt' => '$2a$07$2NJgci5A7NI9m2J9Ii92a1I3DiH6$',
6
+    'timezone' => 'Europe/Moscow',
7
+    'debug' => [
8
+        'all' => false,
9
+        'cookie' => [
10
+            'key' => 'fdebug_jepP2',
11
+            'value' => 'pOH1Kj18fHN7mk9a81F32eJbl9d3AeDjLC1g7poPGE22Ii6pI68P5B6O5hKMofnLPB0lFdpo2a2o78NhedjGA'
12
+        ]
13
+    ],
14
+    'theme' => [
15
+        'Front' => 'default',
16
+        'Admin' => 'default'
17
+    ],
18
+    'database' => [
19
+        'driver' => 'mysql',
20
+        'host' => '127.0.0.1',
21
+        'username' => 'mysql',
22
+        'password' => 'mysql',
23
+        'database' => 'ffcms',
24
+        'prefix' => 'ffcms_',
25
+        'charset' => 'utf8',
26
+        'collation' => 'utf8_unicode_ci'
27
+    ],
28
+    'adminEmail' => '[email protected]',
29
+    'baseLanguage' => 'en',
30
+    'multiLanguage' => false,
31
+    'singleLanguage' => 'ru',
32
+    'languages' => [
33
+        'en',
34
+        'ru'
35
+    ],
36
+    'languageDomainAlias' => false,
37
+    'gaClientId' => '570934480862-son8fr180fr6u6tlt9iqpjpoesngro0o.apps.googleusercontent.com',
38
+    'gaTrackId' => false,
39
+    'trustedProxy' => false
40 40
 ];
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
Private/Config/Cron.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php return [
2
-	'instances' => [
3
-		'Apps\Controller\Front\Content::buildSitemapSchedule' => 10800
4
-	]
2
+    'instances' => [
3
+        'Apps\Controller\Front\Content::buildSitemapSchedule' => 10800
4
+    ]
5 5
 ];
6 6
\ No newline at end of file
Please login to merge, or discard this patch.