Completed
Branch develop (09bad0)
by Дмитрий
06:39
created
Category
src/AnnotationCacheReader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
         $this->delegate = $reader;
46 46
         $this->cache = $cache;
47
-        $this->debug = (bool)$debug;
47
+        $this->debug = (bool) $debug;
48 48
     }
49 49
 
50 50
     /**
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
     public function getPropertyAnnotations(ReflectionProperty $property)
87 87
     {
88 88
         $class = $property->getDeclaringClass();
89
-        $cacheKey = $class->getName() . '$' . $property->getName();
89
+        $cacheKey = $class->getName().'$'.$property->getName();
90 90
 
91 91
         if (isset($this->loadedAnnotations[$cacheKey])) {
92 92
             return $this->loadedAnnotations[$cacheKey];
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
     public function getMethodAnnotations(ReflectionMethod $method)
121 121
     {
122 122
         $class = $method->getDeclaringClass();
123
-        $cacheKey = $class->getName() . '#' . $method->getName();
123
+        $cacheKey = $class->getName().'#'.$method->getName();
124 124
 
125 125
         if (isset($this->loadedAnnotations[$cacheKey])) {
126 126
             return $this->loadedAnnotations[$cacheKey];
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
     {
190 190
         $this->cache->save($cacheKey, $value);
191 191
         if ($this->debug) {
192
-            $this->cache->save('[C]' . $cacheKey, time());
192
+            $this->cache->save('[C]'.$cacheKey, time());
193 193
         }
194 194
     }
195 195
 
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
             return true;
209 209
         }
210 210
 
211
-        return $this->cache->fetch('[C]' . $cacheKey) >= $lastModification;
211
+        return $this->cache->fetch('[C]'.$cacheKey) >= $lastModification;
212 212
     }
213 213
 
214 214
     /**
Please login to merge, or discard this patch.