Passed
Push — master ( a5ee5d...70890b )
by Mihail
05:01
created
Apps/Model/Admin/Main/FormSettings.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
     public $trustedProxy;
43 43
 
44 44
     /**
45
-    * Set property values from configurations
46
-    */
45
+     * Set property values from configurations
46
+     */
47 47
     public function before()
48 48
     {
49 49
         // set default values
Please login to merge, or discard this patch.
Widgets/Front/Contenttag/Contenttag.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -10,21 +10,21 @@  discard block
 block discarded – undo
10 10
 
11 11
 class Contenttag extends AbstractWidget
12 12
 {
13
-	use ClassTools;
13
+    use ClassTools;
14 14
 
15
-	public $count;
16
-	public $cache;
15
+    public $count;
16
+    public $cache;
17 17
 
18
-	public $tpl = 'widgets/contenttag/default';
18
+    public $tpl = 'widgets/contenttag/default';
19 19
 
20
-	private $_lang;
20
+    private $_lang;
21 21
     private $_cacheName;
22 22
 
23
-	/**
24
-	 * Set default configurations if not defined
25
-	 * {@inheritDoc}
26
-	 * @see \Ffcms\Core\Arch\Widget::init()
27
-	 */
23
+    /**
24
+     * Set default configurations if not defined
25
+     * {@inheritDoc}
26
+     * @see \Ffcms\Core\Arch\Widget::init()
27
+     */
28 28
     public function init()
29 29
     {
30 30
         $cfg = $this->getConfigs();
@@ -50,27 +50,27 @@  discard block
 block discarded – undo
50 50
      */
51 51
     public function display()
52 52
     {
53
-    	// get records rows from cache or directly from db
54
-    	$records = null;
55
-    	if ($this->cache === 0) {
56
-    	    $records = $this->makeQuery();
57
-    	} else {
58
-    	    $records = App::$Cache->get($this->_cacheName);
53
+        // get records rows from cache or directly from db
54
+        $records = null;
55
+        if ($this->cache === 0) {
56
+            $records = $this->makeQuery();
57
+        } else {
58
+            $records = App::$Cache->get($this->_cacheName);
59 59
             if ($records === null) {
60
-    	        $records = $this->makeQuery();
61
-    	        App::$Cache->set($this->_cacheName, $records, $this->cache);
62
-    	    }
63
-    	}
60
+                $records = $this->makeQuery();
61
+                App::$Cache->set($this->_cacheName, $records, $this->cache);
62
+            }
63
+        }
64 64
 
65
-    	// check if result is not empty
65
+        // check if result is not empty
66 66
         if ($records === null || $records->count() < 1) {
67 67
             return __('Content tags is not found');
68 68
         }
69 69
 
70 70
         // render view
71
-    	return App::$View->render($this->tpl, [
72
-    	    'records' => $records
73
-    	]);
71
+        return App::$View->render($this->tpl, [
72
+            'records' => $records
73
+        ]);
74 74
     }
75 75
 
76 76
     /**
@@ -80,12 +80,12 @@  discard block
 block discarded – undo
80 80
     private function makeQuery()
81 81
     {
82 82
         return TagRecord::select([
83
-    	    App::$Database->getConnection()->raw('SQL_CALC_FOUND_ROWS tag'),
84
-    	    App::$Database->getConnection()->raw('COUNT(*) AS count')
85
-    	])->where('lang', '=', $this->_lang)
83
+            App::$Database->getConnection()->raw('SQL_CALC_FOUND_ROWS tag'),
84
+            App::$Database->getConnection()->raw('COUNT(*) AS count')
85
+        ])->where('lang', '=', $this->_lang)
86 86
             ->groupBy('tag')
87
-        	->orderBy('count', 'DESC')
88
-        	->take($this->count)
89
-        	->get();
87
+            ->orderBy('count', 'DESC')
88
+            ->take($this->count)
89
+            ->get();
90 90
     }
91 91
 }
92 92
\ No newline at end of file
Please login to merge, or discard this patch.
Private/Config/Cron.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
-	'instances' => [
3
-		'Apps\Controller\Front\Content::buildSitemapSchedule' => 10800,
4
-		'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800,
5
-		'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400
6
-	]
2
+    'instances' => [
3
+        'Apps\Controller\Front\Content::buildSitemapSchedule' => 10800,
4
+        'Apps\Controller\Front\Profile::buildSitemapSchedule' => 10800,
5
+        'Apps\Controller\Front\Profile::cleanupTablesSchedule' => 86400
6
+    ]
7 7
 ];
8 8
\ No newline at end of file
Please login to merge, or discard this patch.
Private/Config/Default.php 1 patch
Indentation   +39 added lines, -39 removed lines patch added patch discarded remove patch
@@ -1,41 +1,41 @@
 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
-	'adminEmail' => '[email protected]',
8
-	'debug' => [
9
-		'all' => false,
10
-		'cookie' => [
11
-			'key' => 'fdebug_jepP2',
12
-			'value' => 'pOH1Kj18fHN7mk9a81F32eJbl9d3AeDjLC1g7poPGE22Ii6pI68P5B6O5hKMofnLPB0lFdpo2a2o78NhedjGA'
13
-		]
14
-	],
15
-	'userCron' => false,
16
-	'theme' => [
17
-		'Front' => 'default',
18
-		'Admin' => 'default'
19
-	],
20
-	'database' => [
21
-		'driver' => 'mysql',
22
-		'host' => '127.0.0.1',
23
-		'username' => 'mysql',
24
-		'password' => 'mysql',
25
-		'database' => 'ffcms',
26
-		'prefix' => 'ffcms_',
27
-		'charset' => 'utf8',
28
-		'collation' => 'utf8_unicode_ci'
29
-	],
30
-	'baseLanguage' => 'en',
31
-	'multiLanguage' => true,
32
-	'singleLanguage' => 'en',
33
-	'languages' => [
34
-		'en',
35
-		'ru'
36
-	],
37
-	'languageDomainAlias' => false,
38
-	'gaClientId' => '570934480862-son8fr180fr6u6tlt9iqpjpoesngro0o.apps.googleusercontent.com',
39
-	'gaTrackId' => false,
40
-	'trustedProxy' => false
2
+    'baseProto' => 'http',
3
+    'baseDomain' => 'ffcms.app',
4
+    'basePath' => '/',
5
+    'passwordSalt' => '$2a$07$2NJgci5A7NI9m2J9Ii92a1I3DiH6$',
6
+    'timezone' => 'Europe/Moscow',
7
+    'adminEmail' => '[email protected]',
8
+    'debug' => [
9
+        'all' => false,
10
+        'cookie' => [
11
+            'key' => 'fdebug_jepP2',
12
+            'value' => 'pOH1Kj18fHN7mk9a81F32eJbl9d3AeDjLC1g7poPGE22Ii6pI68P5B6O5hKMofnLPB0lFdpo2a2o78NhedjGA'
13
+        ]
14
+    ],
15
+    'userCron' => false,
16
+    'theme' => [
17
+        'Front' => 'default',
18
+        'Admin' => 'default'
19
+    ],
20
+    'database' => [
21
+        'driver' => 'mysql',
22
+        'host' => '127.0.0.1',
23
+        'username' => 'mysql',
24
+        'password' => 'mysql',
25
+        'database' => 'ffcms',
26
+        'prefix' => 'ffcms_',
27
+        'charset' => 'utf8',
28
+        'collation' => 'utf8_unicode_ci'
29
+    ],
30
+    'baseLanguage' => 'en',
31
+    'multiLanguage' => true,
32
+    'singleLanguage' => 'en',
33
+    'languages' => [
34
+        'en',
35
+        'ru'
36
+    ],
37
+    'languageDomainAlias' => false,
38
+    'gaClientId' => '570934480862-son8fr180fr6u6tlt9iqpjpoesngro0o.apps.googleusercontent.com',
39
+    'gaTrackId' => false,
40
+    'trustedProxy' => false
41 41
 ];
42 42
\ No newline at end of file
Please login to merge, or discard this patch.