Passed
Push — master ( 28a360...d194a0 )
by Mihail
11:20
created
Apps/Controller/Admin/Contenttag.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
         
32 32
         // render view output
33 33
         return App::$View->render('index', [
34
-           'model' => $model->filter()
34
+            'model' => $model->filter()
35 35
         ]);
36 36
     }
37 37
 }
38 38
\ No newline at end of file
Please login to merge, or discard this patch.
Private/Config/Cron.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php return [
2
-	'instances' => [
3
-		'Apps\Controller\Front\Content::rest' => 60,
4
-		'Apps\Controller\Front\Content::test' => 60
5
-	],
6
-	'log' => [
7
-		'Apps\Controller\Front\Content::rest' => 1463907816,
8
-		'Apps\Controller\Front\Content::test' => 1463907816
9
-	]
2
+    'instances' => [
3
+        'Apps\Controller\Front\Content::rest' => 60,
4
+        'Apps\Controller\Front\Content::test' => 60
5
+    ],
6
+    'log' => [
7
+        'Apps\Controller\Front\Content::rest' => 1463907816,
8
+        'Apps\Controller\Front\Content::test' => 1463907816
9
+    ]
10 10
 ];
11 11
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Admin/Search/FormSettings.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,8 @@  discard block
 block discarded – undo
29 29
     }
30 30
 
31 31
     /**
32
-    * Labels for admin settings form
33
-    */
32
+     * Labels for admin settings form
33
+     */
34 34
     public function labels()
35 35
     {
36 36
         return [
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
     }
41 41
 
42 42
     /**
43
-    * Validation rules
44
-    */
43
+     * Validation rules
44
+     */
45 45
     public function rules()
46 46
     {
47 47
         return [
Please login to merge, or discard this patch.
Widgets/Front/Contenttag/Contenttag.php 1 patch
Indentation   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -10,18 +10,18 @@  discard block
 block discarded – undo
10 10
 
11 11
 class Contenttag extends AbstractWidget
12 12
 {
13
-	use OopTools;
13
+    use OopTools;
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
-	/**
21
-	 * Set default configurations if not defined
22
-	 * {@inheritDoc}
23
-	 * @see \Ffcms\Core\Arch\Widget::init()
24
-	 */
20
+    /**
21
+     * Set default configurations if not defined
22
+     * {@inheritDoc}
23
+     * @see \Ffcms\Core\Arch\Widget::init()
24
+     */
25 25
     public function init()
26 26
     {
27 27
         $cfg = $this->getConfigs();
@@ -43,29 +43,29 @@  discard block
 block discarded – undo
43 43
     public function display()
44 44
     {
45 45
         // get special properties hash
46
-    	$classHash = $this->createStringClassSnapshotHash();
46
+        $classHash = $this->createStringClassSnapshotHash();
47 47
 
48
-    	// get records rows from cache or directly from db
49
-    	$records = null;
50
-    	if ($this->cache === 0) {
51
-    	    $records = $this->makeQuery();
52
-    	} else {
53
-    	    $records = App::$Cache->get('widget.contenttag.' . $classHash);
54
-    	    if ($records === null) {
55
-    	        $records = $this->makeQuery();
56
-    	        App::$Cache->set('widget.contenttag' . $classHash, $records, $this->cache);
57
-    	    }
58
-    	}
48
+        // get records rows from cache or directly from db
49
+        $records = null;
50
+        if ($this->cache === 0) {
51
+            $records = $this->makeQuery();
52
+        } else {
53
+            $records = App::$Cache->get('widget.contenttag.' . $classHash);
54
+            if ($records === null) {
55
+                $records = $this->makeQuery();
56
+                App::$Cache->set('widget.contenttag' . $classHash, $records, $this->cache);
57
+            }
58
+        }
59 59
 
60
-    	// check if result is not empty
60
+        // check if result is not empty
61 61
         if ($records === null || $records->count() < 1) {
62 62
             return __('Content tags is not found');
63 63
         }
64 64
 
65 65
         // render view
66
-    	return App::$View->render($this->tpl, [
67
-    	    'records' => $records
68
-    	]);
66
+        return App::$View->render($this->tpl, [
67
+            'records' => $records
68
+        ]);
69 69
     }
70 70
 
71 71
     /**
@@ -75,11 +75,11 @@  discard block
 block discarded – undo
75 75
     private function makeQuery()
76 76
     {
77 77
         return TagRecord::select([
78
-    	    App::$Database->getConnection()->raw('SQL_CALC_FOUND_ROWS tag'),
79
-    	    App::$Database->getConnection()->raw('COUNT(*) AS count')
80
-    	])->groupBy('tag')
81
-        	->orderBy('count', 'DESC')
82
-        	->take($this->count)
83
-        	->get();
78
+            App::$Database->getConnection()->raw('SQL_CALC_FOUND_ROWS tag'),
79
+            App::$Database->getConnection()->raw('COUNT(*) AS count')
80
+        ])->groupBy('tag')
81
+            ->orderBy('count', 'DESC')
82
+            ->take($this->count)
83
+            ->get();
84 84
     }
85 85
 }
86 86
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/Model/Front/Profile/FormAvatarUpload.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@  discard block
 block discarded – undo
20 20
     const COMPRESS_QUALITY = 90;
21 21
 
22 22
     /**
23
-    * Form text helper data with translation
24
-    */
23
+     * Form text helper data with translation
24
+     */
25 25
     public function labels()
26 26
     {
27 27
         return [
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     }
31 31
 
32 32
     /**
33
-    * Validation rules for avatar uploading
34
-    */
33
+     * Validation rules for avatar uploading
34
+     */
35 35
     public function rules()
36 36
     {
37 37
         return [
Please login to merge, or discard this patch.
Apps/Model/Front/User/FormSocialAuth.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,8 +44,8 @@
 block discarded – undo
44 44
     }
45 45
 
46 46
     /**
47
-    * Parse user identifier to attributes
48
-    */
47
+     * Parse user identifier to attributes
48
+     */
49 49
     public function before()
50 50
     {
51 51
         // set unique user id from provider response
Please login to merge, or discard this patch.