Passed
Push — master ( 3de7ee...b534e3 )
by Mihail
14:25
created
Loader/Cron/index.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -14,7 +14,7 @@  discard block
 block discarded – undo
14 14
 /** set default locale */
15 15
 $_GET['lang'] = 'en';
16 16
 
17
-require_once(root . '/Loader/Autoload.php');
17
+require_once(root.'/Loader/Autoload.php');
18 18
 
19 19
 // make fast-access alias \App::$Object
20 20
 // class_alias('Ffcms\Core\App', 'App');
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
     $logs = $cronManager->run();
46 46
     if (PHP_SAPI === 'cli') {
47 47
         if ($logs && \Ffcms\Core\Helper\Type\Any::isArray($logs) && count($logs) > 0) {
48
-            echo 'Run cron tasks: ' . PHP_EOL . implode(PHP_EOL, $logs);
48
+            echo 'Run cron tasks: '.PHP_EOL.implode(PHP_EOL, $logs);
49 49
         } else {
50 50
             echo 'No tasks runned';
51 51
         }
Please login to merge, or discard this patch.
Loader/Install/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
 define('env_name', 'Install');
10 10
 define('env_type', 'html');
11 11
 
12
-require_once(root . '/Loader/Autoload.php');
12
+require_once(root.'/Loader/Autoload.php');
13 13
 
14 14
 // make fast-access alias \App::$Object
15 15
 // class_alias('Ffcms\Core\App', 'App');
Please login to merge, or discard this patch.
Widgets/Front/Newcomment/Newcomment.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
         }
41 41
 
42 42
         if (!$this->cache) {
43
-            $this->cache = (int)$cfg['cache'];
43
+            $this->cache = (int) $cfg['cache'];
44 44
         }
45 45
 
46 46
         if (!$this->lang) {
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         }
49 49
 
50 50
 
51
-        $this->_cacheName = 'widget.newcomment.' . $this->createStringClassSnapshotHash();
51
+        $this->_cacheName = 'widget.newcomment.'.$this->createStringClassSnapshotHash();
52 52
     }
53 53
 
54 54
     /**
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     {
63 63
         // work with cache and make query
64 64
         $records = null;
65
-        if ((int)$this->cache > 0) {
65
+        if ((int) $this->cache > 0) {
66 66
             // process caching data
67 67
             $cache = App::$Cache->getItem($this->_cacheName);
68 68
             if (!$cache->isHit()) {
Please login to merge, or discard this patch.
Widgets/Front/Comments/Comments.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         parent::init();
22 22
 
23 23
         if (App::$Request->getLanguage() !== 'en') {
24
-            App::$Translate->append('/I18n/Front/' . App::$Request->getLanguage() . '/CommentWidget.php');
24
+            App::$Translate->append('/I18n/Front/'.App::$Request->getLanguage().'/CommentWidget.php');
25 25
         }
26 26
 
27 27
         if ($this->pathway === null) {
Please login to merge, or discard this patch.
Apps/View/Install/default/native/macro/notify.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,6 @@
 block discarded – undo
2 2
 /** @var $notify array */
3 3
 
4 4
 use Ffcms\Core\Helper\Type\Any;
5
-use Ffcms\Core\Helper\Type\Obj;
6 5
 
7 6
 /**
8 7
  * Get html css class from notify response type
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@
 block discarded – undo
31 31
 if (Any::isArray($notify) && count($notify) > 0) {
32 32
     foreach ($notify as $type => $messages) {
33 33
         foreach ($messages as $message) {
34
-            echo '<p class="alert ' . type2html($type) . '">
34
+            echo '<p class="alert '.type2html($type).'">
35 35
             <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>'
36
-                . \Ffcms\Core\App::$Security->strip_tags($message) . '</p>';
36
+                . \Ffcms\Core\App::$Security->strip_tags($message).'</p>';
37 37
         }
38 38
     }
39 39
 }
Please login to merge, or discard this patch.
Apps/Controller/Front/Profile.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -227,12 +227,12 @@
 block discarded – undo
227 227
         // build sitemap from content items via business model
228 228
         $sitemap = new EntityBuildMap($langs);
229 229
         foreach ($profiles->get() as $user) {
230
-            $sitemap->add('profile/show/' . $user->user_id, $user->updated_at, 'weekly', 0.2);
230
+            $sitemap->add('profile/show/'.$user->user_id, $user->updated_at, 'weekly', 0.2);
231 231
         }
232 232
 
233 233
         try {
234 234
             $sitemap->save('profile');
235
-        } catch (SyntaxException $e){}
235
+        } catch (SyntaxException $e) {}
236 236
     }
237 237
 
238 238
     /**
Please login to merge, or discard this patch.
Apps/Controller/Front/Profile/ActionNotifications.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         }
43 43
 
44 44
         // get page index and current user object
45
-        $page = (int)$this->request->query->get('page', 0);
45
+        $page = (int) $this->request->query->get('page', 0);
46 46
         $offset = $page * $this->_notifyPerPage;
47 47
         $user = App::$User->identity();
48 48
 
Please login to merge, or discard this patch.
Apps/Controller/Front/Profile/ActionFeed.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -30,10 +30,10 @@
 block discarded – undo
30 30
         /** @var array $cfg */
31 31
         $cfg = $this->application->configs;
32 32
         // get pagination page id and calc offset
33
-        $page = (int)$this->request->query->get('page');
33
+        $page = (int) $this->request->query->get('page');
34 34
         $items = 10;
35
-        if ((int)$cfg['wallPostOnFeed'] >= 1) {
36
-            $items = (int)$cfg['wallPostOnFeed'];
35
+        if ((int) $cfg['wallPostOnFeed'] >= 1) {
36
+            $items = (int) $cfg['wallPostOnFeed'];
37 37
         }
38 38
 
39 39
         $offset = $page * $items;
Please login to merge, or discard this patch.
Apps/Controller/Front/Profile/ActionIndex.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
     {
31 31
         $records = null;
32 32
         // set current page and offset
33
-        $page = (int)$this->request->query->get('page', 0);
33
+        $page = (int) $this->request->query->get('page', 0);
34 34
         $cfgs = $this->application->configs;
35
-        $userPerPage = (int)$cfgs['usersOnPage'];
35
+        $userPerPage = (int) $cfgs['usersOnPage'];
36 36
         if ($userPerPage < 1) {
37 37
             $userPerPage = 1;
38 38
         }
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
         switch ($name) {
42 42
             case 'rating': // rating list, order by rating DESC
43 43
                 // check if rating is enabled
44
-                if ((int)$cfgs['rating'] !== 1) {
44
+                if ((int) $cfgs['rating'] !== 1) {
45 45
                     throw new NotFoundException();
46 46
                 }
47 47
                 $records = (new ProfileRecords())->orderBy('rating', 'DESC');
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
                 if (Str::likeEmpty($value)) {
51 51
                     throw new NotFoundException();
52 52
                 }
53
-                $records = (new ProfileRecords())->where('hobby', 'like', '%' . $value . '%');
53
+                $records = (new ProfileRecords())->where('hobby', 'like', '%'.$value.'%');
54 54
                 break;
55 55
             case 'city':
56 56
                 if (Str::likeEmpty($value)) {
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 if ($value === null || !Any::isInt($value)) {
63 63
                     throw new NotFoundException();
64 64
                 }
65
-                $records = (new ProfileRecords())->where('birthday', 'like', $value . '-%');
65
+                $records = (new ProfileRecords())->where('birthday', 'like', $value.'-%');
66 66
                 break;
67 67
             case 'all':
68 68
                 $records = (new ProfileRecords())->orderBy('id', 'DESC');
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
             'pagination' => $pagination,
93 93
             'id' => $name,
94 94
             'add' => $value,
95
-            'ratingOn' => (int)$cfgs['rating']
95
+            'ratingOn' => (int) $cfgs['rating']
96 96
         ]);
97 97
     }
98 98
 }
99 99
\ No newline at end of file
Please login to merge, or discard this patch.