@@ -118,7 +118,7 @@ |
||
118 | 118 | { |
119 | 119 | $this->capacity = max( |
120 | 120 | self::MIN_CAPACITY, |
121 | - $this->capacity() * $this->getDecayFactor() |
|
121 | + $this->capacity() * $this->getDecayFactor() |
|
122 | 122 | ); |
123 | 123 | } |
124 | 124 |
@@ -295,7 +295,7 @@ discard block |
||
295 | 295 | private function lookupKey($key, &$hash = null) |
296 | 296 | { |
297 | 297 | $hash = $this->getHash($key); |
298 | - if (!array_key_exists($hash, $this->table)) { |
|
298 | + if ( ! array_key_exists($hash, $this->table)) { |
|
299 | 299 | return null; |
300 | 300 | } |
301 | 301 | |
@@ -503,11 +503,11 @@ discard block |
||
503 | 503 | $pairRef = new PairRef($pairIndex, $key, $value); |
504 | 504 | $this->pairRefs[$pairIndex] = $pairRef; |
505 | 505 | |
506 | - if (!array_key_exists($hash, $this->table)) { |
|
506 | + if ( ! array_key_exists($hash, $this->table)) { |
|
507 | 507 | $this->table[$hash] = $pairRef; |
508 | 508 | } else { |
509 | - $hashMatch =& $this->table[$hash]; |
|
510 | - if (!is_array($hashMatch)) { |
|
509 | + $hashMatch = & $this->table[$hash]; |
|
510 | + if ( ! is_array($hashMatch)) { |
|
511 | 511 | $this->table[$hash] = [$hashMatch, $pairRef]; |
512 | 512 | } else { |
513 | 513 | $hashMatch[] = $pairRef; |
@@ -579,7 +579,7 @@ discard block |
||
579 | 579 | |
580 | 580 | // Remove from lookup table. |
581 | 581 | |
582 | - $hashMatch =& $this->table[$hash]; |
|
582 | + $hashMatch = & $this->table[$hash]; |
|
583 | 583 | |
584 | 584 | if ($hashMatch instanceof PairRef) { |
585 | 585 | unset($this->table[$hash]); |