| Conditions | 4 |
| Paths | 8 |
| Total Lines | 18 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 4.5923 |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | 6 | public static function create($realm, $strategy = false, $options = false) |
|
| 29 | { |
||
| 30 | 6 | $instance = self::retrieveOldInstance($realm); |
|
| 31 | |||
| 32 | 6 | if ($strategy) { |
|
| 33 | self::$strategy = $strategy; |
||
|
|
|||
| 34 | } |
||
| 35 | |||
| 36 | 6 | if ($options) { |
|
| 37 | self::$options = $options; |
||
| 38 | } |
||
| 39 | |||
| 40 | 6 | if (!$instance) { |
|
| 41 | 6 | $instance = self::newCacheInstance($realm); |
|
| 42 | 4 | } |
|
| 43 | |||
| 44 | 6 | return $instance; |
|
| 45 | } |
||
| 46 | |||
| 63 |
Our type inference engine has found an assignment to a property that is incompatible with the declared type of that property.
Either this assignment is in error or the assigned type should be added to the documentation/type hint for that property..