Completed
Branch 5.0.0/release (216c08)
by Schlaefer
02:41
created
src/Lib/Saito/Posting/Decorator/AbstractPostingDecorator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
             return call_user_func_array([$this->_Posting, $method], $args);
25 25
         }
26 26
         throw new \RuntimeException(
27
-            'Undefined method ' . get_class($this->object) . '::' . $method
27
+            'Undefined method '.get_class($this->object).'::'.$method
28 28
         );
29 29
     }
30 30
 
Please login to merge, or discard this patch.
src/Lib/Saito/Posting/Basic/BasicPostingTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@  discard block
 block discarded – undo
12 12
      */
13 13
     public function isLocked()
14 14
     {
15
-        return (bool)$this->get('locked');
15
+        return (bool) $this->get('locked');
16 16
     }
17 17
 
18 18
     /**
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      */
31 31
     public function isPinned()
32 32
     {
33
-        return (bool)$this->get('fixed');
33
+        return (bool) $this->get('fixed');
34 34
     }
35 35
 
36 36
     /**
Please login to merge, or discard this patch.
src/Lib/Saito/User/Userlist/UserlistModel.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
      */
21 21
     public function get(): array
22 22
     {
23
-        return $this->remember('userlist', function () {
23
+        return $this->remember('userlist', function() {
24 24
             /** @var UsersTable $users */
25 25
             $users = TableRegistry::get('Users');
26 26
 
Please login to merge, or discard this patch.
src/Lib/Saito/User/Permission.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,11 +112,11 @@  discard block
 block discarded – undo
112 112
      */
113 113
     protected function _getRoles($role)
114 114
     {
115
-        $key = 'saito.core.permission.' . $role;
115
+        $key = 'saito.core.permission.'.$role;
116 116
 
117 117
         return $this->rememberStatic(
118 118
             $key,
119
-            function () use ($role) {
119
+            function() use ($role) {
120 120
                 if (!isset($this->groups[$role])) {
121 121
                     return false;
122 122
                 }
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
         Stopwatch::start('Permission::__construct()');
147 147
         $this->resources = Cache::remember(
148 148
             'saito.core.permission.resources',
149
-            function () {
149
+            function() {
150 150
                 $this->_bootstrapCategories();
151 151
 
152 152
                 return $this->resources;
Please login to merge, or discard this patch.
src/Lib/Saito/Contact/SaitoEmailContact.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
             $Users = TableRegistry::get('Users');
50 50
             $contact = $Users->find()
51 51
                 ->select(['id', 'username', 'user_email'])
52
-                ->where(['id' => (int)$contact])
52
+                ->where(['id' => (int) $contact])
53 53
                 ->first();
54 54
         }
55 55
 
Please login to merge, or discard this patch.
src/Lib/Saito/Exception/Logger/ExceptionLogger.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
         $requestMethod = $request ? $request->getMethod() : false;
57 57
         if ($url && $requestMethod) {
58
-            $url .= ' ' . $requestMethod;
58
+            $url .= ' '.$requestMethod;
59 59
         }
60 60
         if ($url) {
61 61
             $this->_add($url, 'Request URL');
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
             $i++;
156 156
         }
157 157
 
158
-        return "\n" . implode("\n", $message);
158
+        return "\n".implode("\n", $message);
159 159
     }
160 160
 
161 161
     /**
Please login to merge, or discard this patch.
src/Lib/Saito/Cache/ItemCache.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -60,8 +60,8 @@  discard block
 block discarded – undo
60 60
 
61 61
         if ($this->_settings['maxItems']) {
62 62
             $this->_gcFuzzy = $this->_settings['maxItemsFuzzy'];
63
-            $this->_gcMax = (int)($this->_settings['maxItems'] * (1 + $this->_gcFuzzy));
64
-            $this->_gcMin = (int)($this->_gcMax * (1 - $this->_gcFuzzy));
63
+            $this->_gcMax = (int) ($this->_settings['maxItems'] * (1 + $this->_gcFuzzy));
64
+            $this->_gcMin = (int) ($this->_gcMax * (1 - $this->_gcFuzzy));
65 65
         }
66 66
     }
67 67
 
@@ -273,7 +273,7 @@  discard block
 block discarded – undo
273 273
         // keep items which were last used/updated
274 274
         uasort(
275 275
             $this->_cache,
276
-            function ($a, $b) {
276
+            function($a, $b) {
277 277
                 if ($a['metadata']['content_last_updated'] === $b['metadata']['content_last_updated']) {
278 278
                     return 0;
279 279
                 }
Please login to merge, or discard this patch.
src/Lib/Saito/Cache/CacheSupport.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
     public function __construct()
35 35
     {
36 36
         foreach ($this->_buildInCaches as $_name) {
37
-            $name = 'Saito\Cache\\' . $_name;
37
+            $name = 'Saito\Cache\\'.$_name;
38 38
             $this->add(new $name);
39 39
         }
40 40
         EventManager::instance()->on($this);
Please login to merge, or discard this patch.
src/Lib/Saito/Test/AssertTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@  discard block
 block discarded – undo
83 83
     {
84 84
         $this->assertContainsTag(
85 85
             $expected,
86
-            (string)$this->_controller->response->getBody()
86
+            (string) $this->_controller->response->getBody()
87 87
         );
88 88
     }
89 89
 
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
     {
158 158
         $document = new \DOMDocument;
159 159
         libxml_use_internal_errors(true);
160
-        $document->loadHTML('<!DOCTYPE html>' . $html);
160
+        $document->loadHTML('<!DOCTYPE html>'.$html);
161 161
         $xpath = new \DOMXPath($document);
162 162
         libxml_clear_errors();
163 163
 
Please login to merge, or discard this patch.