@@ -96,7 +96,7 @@ discard block |
||
96 | 96 | |
97 | 97 | // Look for the key, creating nested keys if needed |
98 | 98 | while ($part = array_shift($segs)) { |
99 | - if($cacheKey != ''){ |
|
99 | + if ($cacheKey != '') { |
|
100 | 100 | $cacheKey .= '.'; |
101 | 101 | } |
102 | 102 | $cacheKey .= $part; |
@@ -106,14 +106,14 @@ discard block |
||
106 | 106 | $root = &$root[$part]; |
107 | 107 | |
108 | 108 | //Unset all old nested cache |
109 | - if(isset($this->cache[$cacheKey])){ |
|
109 | + if (isset($this->cache[$cacheKey])) { |
|
110 | 110 | unset($this->cache[$cacheKey]); |
111 | 111 | } |
112 | 112 | |
113 | 113 | //Unset all old nested cache in case of array |
114 | - if(count($segs) == 0){ |
|
114 | + if (count($segs) == 0) { |
|
115 | 115 | foreach ($this->cache as $cacheLocalKey => $cacheValue) { |
116 | - if(substr($cacheLocalKey, 0, strlen($cacheKey)) === $cacheKey){ |
|
116 | + if (substr($cacheLocalKey, 0, strlen($cacheKey)) === $cacheKey) { |
|
117 | 117 | unset($this->cache[$cacheLocalKey]); |
118 | 118 | } |
119 | 119 | } |