@@ -28,7 +28,7 @@ |
||
28 | 28 | if (function_exists('json_last_error_msg')) { |
29 | 29 | $error_message = json_last_error_msg(); |
30 | 30 | } else { |
31 | - $error_message = 'Syntax error'; |
|
31 | + $error_message = 'Syntax error'; |
|
32 | 32 | } |
33 | 33 | |
34 | 34 | if (json_last_error() !== JSON_ERROR_NONE) { |
@@ -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 | } |