| Conditions | 7 | 
| Paths | 13 | 
| Total Lines | 25 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 21 |     public function status() { | 
            ||
| 22 |         if (stripos($this->driver, 'pgsql') !== false) { | 
            ||
| 23 |             try { | 
            ||
| 24 |                 $sss = $this->connection()->query('SELECT now() - pg_last_xact_replay_timestamp() AS replication_lag')->fetch(); | 
            ||
| 25 | return $this->setSlaveStatus(true, $sss['replication_lag']);  | 
            ||
| 
                                                                                                    
                        
                         | 
                |||
| 26 |             } catch (\Exception $e) { | 
            ||
| 27 | return $this->setSlaveStatus(false, null);  | 
            ||
| 28 | }  | 
            ||
| 29 |         } else { | 
            ||
| 30 |             try { | 
            ||
| 31 |                 $sss = $this->connection()->query('SHOW SLAVE STATUS')->fetch(); | 
            ||
| 32 |                 if ($sss['Slave_IO_Running'] === 'No' || $sss['Slave_SQL_Running'] === 'No') { | 
            ||
| 33 | // slave is STOPPED  | 
            ||
| 34 | return $this->setSlaveStatus(false, null);  | 
            ||
| 35 |                 } else { | 
            ||
| 36 | return $this->setSlaveStatus(true, $sss['Seconds_Behind_Master']);  | 
            ||
| 37 | }  | 
            ||
| 38 |             } catch (\Exception $e) { | 
            ||
| 39 |                 if (stripos($e->getMessage(), 'Access denied') !== false) { | 
            ||
| 40 | return $this->setSlaveStatus(true, 0);  | 
            ||
| 41 | }  | 
            ||
| 42 | return $this->setSlaveStatus(false, null);  | 
            ||
| 43 | }  | 
            ||
| 44 | }  | 
            ||
| 45 | }  | 
            ||
| 46 | |||
| 51 | }  | 
            
This check marks calls to methods that do not seem to exist on an object.
This is most likely the result of a method being renamed without all references to it being renamed likewise.