Passed
Push — master ( bda6ce...afc50f )
by Mihail
05:03
created
tests/_support/AcceptanceTester.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     use _generated\WebGuyActions;
22 22
 
23
-   /**
24
-    * Define custom actions here
25
-    */
23
+    /**
24
+     * Define custom actions here
25
+     */
26 26
 }
Please login to merge, or discard this patch.
tests/_support/Crawler.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
 {
21 21
     use _generated\WebGuyActions;
22 22
 
23
-   /**
24
-    * Define custom actions here
25
-    */
23
+    /**
24
+     * Define custom actions here
25
+     */
26 26
 }
Please login to merge, or discard this patch.
Widgets/Front/Newcontent/Newcontent.php 3 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     
79 79
     /**
80 80
      * Make query to database
81
-     * @return object
81
+     * @return string
82 82
      */
83 83
     private function makeQuery()
84 84
     {
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
         
73 73
         // render view
74 74
         return App::$View->render($this->tpl, [
75
-           'records' => $query 
75
+            'records' => $query 
76 76
         ]);
77 77
     }
78 78
     
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -32,11 +32,11 @@  discard block
 block discarded – undo
32 32
         }
33 33
         // check cache is defined
34 34
         if ($this->cache === null || !Obj::isLikeInt($this->cache)) {
35
-            $this->cache = (int)$cfg['cache'];
35
+            $this->cache = (int) $cfg['cache'];
36 36
         }
37 37
         // check item count is defined
38 38
         if ($this->count === null || !Obj::isLikeInt($this->count)) {
39
-            $this->count = (int)$cfg['count'];
39
+            $this->count = (int) $cfg['count'];
40 40
         }
41 41
     }
42 42
     
@@ -56,12 +56,12 @@  discard block
 block discarded – undo
56 56
             $query = $this->makeQuery();
57 57
         } else {
58 58
             // try get query result from cache
59
-            $query = App::$Cache->get('widget.newcontent.' . $cacheHash);
59
+            $query = App::$Cache->get('widget.newcontent.'.$cacheHash);
60 60
             if ($query === null) {
61 61
                 // if query is not cached make it
62 62
                 $query = $this->makeQuery();
63 63
                 // and save result to cache
64
-                App::$Cache->set('widget.newcontent.' . $cacheHash, $query, $this->cache);
64
+                App::$Cache->set('widget.newcontent.'.$cacheHash, $query, $this->cache);
65 65
             }
66 66
         }
67 67
         
Please login to merge, or discard this patch.
Apps/Model/Admin/Newcontent/FormSettings.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
     }
26 26
 
27 27
     /**
28
-    * Set default values from configs
29
-    */
28
+     * Set default values from configs
29
+     */
30 30
     public function before()
31 31
     {
32 32
         $this->categories = Serialize::decode($this->_configs['categories']);
@@ -35,8 +35,8 @@  discard block
 block discarded – undo
35 35
     }
36 36
 
37 37
     /**
38
-    * Labels for form
39
-    */
38
+     * Labels for form
39
+     */
40 40
     public function labels()
41 41
     {
42 42
         return [
@@ -47,8 +47,8 @@  discard block
 block discarded – undo
47 47
     }
48 48
 
49 49
     /**
50
-    * Validation rules
51
-    */
50
+     * Validation rules
51
+     */
52 52
     public function rules()
53 53
     {
54 54
         return [
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,8 +30,8 @@  discard block
 block discarded – undo
30 30
     public function before()
31 31
     {
32 32
         $this->categories = Serialize::decode($this->_configs['categories']);
33
-        $this->count = (int)$this->_configs['count'];
34
-        $this->cache = (int)$this->_configs['cache'];
33
+        $this->count = (int) $this->_configs['count'];
34
+        $this->cache = (int) $this->_configs['cache'];
35 35
     }
36 36
 
37 37
     /**
@@ -64,8 +64,8 @@  discard block
 block discarded – undo
64 64
     public function getResult()
65 65
     {
66 66
         return [
67
-            'count' => (int)$this->count,
68
-            'cache' => (int)$this->cache,
67
+            'count' => (int) $this->count,
68
+            'cache' => (int) $this->cache,
69 69
             'categories' => Serialize::encode($this->categories)
70 70
         ];
71 71
     }
Please login to merge, or discard this patch.
Private/Database/Tables/App.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
 ]);
47 47
 
48 48
 $configs->newcontent = serialize([
49
-    'categories' => serialize(['2','3']),
49
+    'categories' => serialize(['2', '3']),
50 50
     'count' => '5',
51 51
     'cache' => '60'
52 52
 ]);
Please login to merge, or discard this patch.
Private/Config/Object.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@  discard block
 block discarded – undo
11 11
 date_default_timezone_set('Europe/Moscow');
12 12
 
13 13
 return [
14
-    'Database' => function () {
14
+    'Database' => function() {
15 15
         $capsule = new Capsule;
16 16
         if (env_name !== 'Install') {
17 17
             try {
@@ -34,10 +34,10 @@  discard block
 block discarded – undo
34 34
         try {
35 35
             $pdo = \App::$Database->connection()->getPdo();
36 36
             $handler = new PdoSessionHandler($pdo, [
37
-                'db_table' => App::$Properties->get('database')['prefix'] . 'sessions'
37
+                'db_table' => App::$Properties->get('database')['prefix'].'sessions'
38 38
             ]);
39 39
         } catch (Exception $e) {
40
-            $handler = new NativeFileSessionHandler(root . '/Private/Sessions');
40
+            $handler = new NativeFileSessionHandler(root.'/Private/Sessions');
41 41
         }
42 42
 
43 43
         $storage = new NativeSessionStorage([
@@ -48,18 +48,18 @@  discard block
 block discarded – undo
48 48
 
49 49
         return new Session($storage);
50 50
     },
51
-    'User' => function () {
51
+    'User' => function() {
52 52
         return new Apps\ActiveRecord\User();
53 53
     },
54
-    'Mailer' => function () {
54
+    'Mailer' => function() {
55 55
         $swiftTransport = Swift_MailTransport::newInstance();
56 56
         return Swift_Mailer::newInstance($swiftTransport);
57 57
     },
58
-    'Captcha' => function () {
58
+    'Captcha' => function() {
59 59
         return new Extend\Core\Captcha\Gregwar();
60 60
     },
61
-    'Cache' => function () {
62
-        phpFastCache::setup('path', root . '/Private/Cache');
61
+    'Cache' => function() {
62
+        phpFastCache::setup('path', root.'/Private/Cache');
63 63
         return \phpFastCache();
64 64
     }
65 65
 ];
66 66
\ No newline at end of file
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/group_list.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
 
25 25
 <?php
26 26
 $items = [];
27
-foreach($records as $role) {
27
+foreach ($records as $role) {
28 28
     $permissions = explode(';', $role->permissions);
29 29
     $permissionsLabel = null;
30 30
     foreach ($permissions as $perm) {
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
         } else {
37 37
             $labelMark = 'label-default';
38 38
         }
39
-        $permissionsLabel .= '<span class="label ' . $labelMark . '">' . $perm . '</span> ';
39
+        $permissionsLabel .= '<span class="label '.$labelMark.'">'.$perm.'</span> ';
40 40
     }
41 41
     $items[] = [
42 42
         ['text' => $role->id],
Please login to merge, or discard this patch.
Apps/View/Admin/default/user/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,12 +25,12 @@
 block discarded – undo
25 25
     $items = [];
26 26
     foreach ($records as $user) {
27 27
         $items[] = [
28
-            ['text' => $user->id . ($user->approve_token != '0' ? ' <strong class="text-danger">*</strong>' : null), 'html' => true],
28
+            ['text' => $user->id.($user->approve_token != '0' ? ' <strong class="text-danger">*</strong>' : null), 'html' => true],
29 29
             ['text' => $user->email],
30 30
             ['text' => $user->login],
31 31
             ['text' => $user->getRole()->name],
32 32
             ['text' => Date::convertToDatetime($user->created_at, Date::FORMAT_TO_DAY)],
33
-            ['text' => Url::link(['user/update', $user->id], '<i class="fa fa-pencil fa-lg"></i>') .
33
+            ['text' => Url::link(['user/update', $user->id], '<i class="fa fa-pencil fa-lg"></i>').
34 34
                 Url::link(['user/delete', $user->id], ' <i class="fa fa-trash-o fa-lg"></i>'),
35 35
                 'html' => true, 'property' => ['class' => 'text-center']]
36 36
         ];
Please login to merge, or discard this patch.
Apps/View/Admin/default/native/macro/widget_actions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,6 +2,6 @@
 block discarded – undo
2 2
 use Ffcms\Core\Helper\Url;
3 3
 
4 4
 if (isset($controller)): ?>
5
-<a href="<?= Url::to($controller . '/index') ?>"><i class="fa fa-cogs"></i></a>&nbsp;
5
+<a href="<?= Url::to($controller.'/index') ?>"><i class="fa fa-cogs"></i></a>&nbsp;
6 6
 <a href="<?= Url::to('widget/turn', $controller) ?>"><i class="fa fa-power-off"></i></a>
7 7
 <?php endif; ?>
8 8
\ No newline at end of file
Please login to merge, or discard this patch.