Passed
Push — master ( bc905b...ef8807 )
by Mihail
04:40
created
Apps/Controller/Front/Content/ScheduledActions.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
         }
40 40
 
41 41
         // build sitemap items using iteration - 5000 rows per each one
42
-        $iterations = (int)($contentCount / self::$contentRowsEachRun);
42
+        $iterations = (int) ($contentCount / self::$contentRowsEachRun);
43 43
         for ($i = 0; $i <= $iterations; $i++) {
44 44
             // check if lifetime is expired for current sitemap index
45
-            $xmlTime = File::mTime('/upload/sitemap/content.' . $i . '.' . $langs[0] . '.xml');
45
+            $xmlTime = File::mTime('/upload/sitemap/content.'.$i.'.'.$langs[0].'.xml');
46 46
             $updateDelay = self::$updateSitemapDelay * 60;
47 47
             $updateDelay += mt_rand(0, 1800); // +- 0-30 rand min for caching update
48 48
             // do not process if cache time is not expired
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
                 /** @var \Apps\ActiveRecord\Content $content */
63 63
                 $uri = '/content/read/';
64 64
                 if (!Str::likeEmpty($content->category->path)) {
65
-                    $uri .= $content->category->path . '/';
65
+                    $uri .= $content->category->path.'/';
66 66
                 }
67 67
                 $uri .= $content->path;
68 68
                 $sitemap->add($uri, $content->created_at, 'weekly', 0.7);
@@ -70,13 +70,13 @@  discard block
 block discarded – undo
70 70
             // add categories
71 71
             $categories = ContentCategory::all();
72 72
             foreach ($categories as $item) {
73
-                if ((bool)$item->getProperty('showCategory')) {
74
-                    $uri = '/content/list/' . $item->path;
73
+                if ((bool) $item->getProperty('showCategory')) {
74
+                    $uri = '/content/list/'.$item->path;
75 75
                     $sitemap->add($uri, date('c'), 'daily', 0.9);
76 76
                 }
77 77
             }
78 78
             // save data to xml file
79
-            $sitemap->save('content.' . $i);
79
+            $sitemap->save('content.'.$i);
80 80
         }
81 81
     }
82 82
 }
Please login to merge, or discard this patch.
Apps/Controller/Admin/User/ActionIndex.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -30,14 +30,14 @@
 block discarded – undo
30 30
         // check if search query passed
31 31
         $query = $this->request->query->get('search', null);
32 32
         if ($query && Any::isStr($query) && Str::length($query) > 1) {
33
-            $record = $record->where(function ($db) use ($query) {
34
-                $db->where('login', 'like', '%' . $query . '%')
35
-                    ->orWhere('email', 'like', '%' . $query . '%');
33
+            $record = $record->where(function($db) use ($query) {
34
+                $db->where('login', 'like', '%'.$query.'%')
35
+                    ->orWhere('email', 'like', '%'.$query.'%');
36 36
             });
37 37
         }
38 38
 
39 39
         // set current page num and offset
40
-        $page = (int)$this->request->query->get('page', 0);
40
+        $page = (int) $this->request->query->get('page', 0);
41 41
         $offset = $page * self::ITEM_PER_PAGE;
42 42
 
43 43
         // prepare pagination data
Please login to merge, or discard this patch.