| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 13 | 
| Code Lines | 9 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 7 | 
| CRAP Score | 4.0313 | 
| Changes | 1 | ||
| Bugs | 0 | Features | 1 | 
| 1 | <?php | ||
| 30 | 2 | public function getCurrentSchema() | |
| 31 |     { | ||
| 32 | 2 | $query = 'SELECT DATABASE() as current_schema'; | |
| 33 |         try { | ||
| 34 | 2 | $results = $this->adapter->query($query); | |
| 35 | 2 |             if (count($results) == 0 || $results[0]['current_schema'] === null) { | |
| 36 | 2 | return false; | |
| 37 | } | ||
| 38 | 2 |         } catch (\Exception $e) { | |
| 39 | throw new Exception\RuntimeException($e->getMessage()); | ||
| 40 | } | ||
| 41 | 2 | return $results[0]['current_schema']; | |
| 42 | } | ||
| 43 | } | ||
| 44 | 
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..