Passed
Push — master ( 347935...cc7747 )
by Mihail
05:42
created
Apps/ActiveRecord/Role.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      */
27 27
     public static function all($columns = ['*'])
28 28
     {
29
-        $cacheName = 'activerecords.role.all.' . implode('.', $columns);
29
+        $cacheName = 'activerecords.role.all.'.implode('.', $columns);
30 30
         $records = MemoryObject::instance()->get($cacheName);
31 31
         if ($records === null) {
32 32
             $records = parent::all($columns);
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public static function get($role_id)
45 45
     {
46
-        $role = MainApp::$Memory->get('user.role.cache.' . $role_id);
46
+        $role = MainApp::$Memory->get('user.role.cache.'.$role_id);
47 47
 
48 48
         // not founded in cache
49 49
         if ($role === null) {
50 50
             $role = self::find($role_id);
51
-            MainApp::$Memory->set('user.role.cache.' . $role_id, $role);
51
+            MainApp::$Memory->set('user.role.cache.'.$role_id, $role);
52 52
         }
53 53
         return $role;
54 54
     }
Please login to merge, or discard this patch.
Apps/ActiveRecord/ContentCategory.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      */
30 30
     public static function all($columns = ['*'])
31 31
     {
32
-        $cacheName = 'activerecord.contentcategory.all.' . implode('.', $columns);
32
+        $cacheName = 'activerecord.contentcategory.all.'.implode('.', $columns);
33 33
         $records = MemoryObject::instance()->get($cacheName);
34 34
         if ($records === null) {
35 35
             $records = parent::all($columns);
@@ -45,12 +45,12 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public static function getByPath($path = '')
47 47
     {
48
-        if (MainApp::$Memory->get('cache.content.category.path.' . $path) !== null) {
49
-            return MainApp::$Memory->get('cache.content.category.path.' . $path);
48
+        if (MainApp::$Memory->get('cache.content.category.path.'.$path) !== null) {
49
+            return MainApp::$Memory->get('cache.content.category.path.'.$path);
50 50
         }
51 51
 
52 52
         $record = self::where('path', '=', $path)->first();
53
-        MainApp::$Memory->set('cache.content.category.path.' . $path, $record);
53
+        MainApp::$Memory->set('cache.content.category.path.'.$path, $record);
54 54
         return $record;
55 55
     }
56 56
 
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
      */
62 62
     public static function getById($id)
63 63
     {
64
-        if (MainApp::$Memory->get('cache.content.category.id.' . $id) !== null) {
65
-            return MainApp::$Memory->get('cache.content.category.id.' . $id);
64
+        if (MainApp::$Memory->get('cache.content.category.id.'.$id) !== null) {
65
+            return MainApp::$Memory->get('cache.content.category.id.'.$id);
66 66
         }
67 67
 
68 68
         $record = self::find($id);
69
-        MainApp::$Memory->set('cache.content.category.id.' . $id, $record);
69
+        MainApp::$Memory->set('cache.content.category.id.'.$id, $record);
70 70
         return $record;
71 71
     }
72 72
 
@@ -94,12 +94,12 @@  discard block
 block discarded – undo
94 94
             } else {
95 95
                 // set level marker based on slashes count in pathway
96 96
                 $slashCount = Str::entryCount($path, '/');
97
-                for ($i=-1; $i <= $slashCount; $i++) {
97
+                for ($i = -1; $i <= $slashCount; $i++) {
98 98
                     $title .= '--';
99 99
                 }
100 100
             }
101 101
             // add canonical title from db
102
-            $title .= ' ' . Serialize::getDecodeLocale($data->title);
102
+            $title .= ' '.Serialize::getDecodeLocale($data->title);
103 103
             // set response as array [id => title, ... ]
104 104
             $response[$data->id] = $title;
105 105
         }
Please login to merge, or discard this patch.
Apps/ActiveRecord/ProfileField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public static function all($columns = ['*'])
30 30
     {
31
-        $cacheName = 'activerecord.profilefield.all.' . implode('.', $columns);
31
+        $cacheName = 'activerecord.profilefield.all.'.implode('.', $columns);
32 32
         $records = MemoryObject::instance()->get($cacheName);
33 33
         if ($records === null) {
34 34
             $records = parent::all($columns);
Please login to merge, or discard this patch.