| Conditions | 4 |
| Paths | 5 |
| Total Lines | 13 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 2 |
| CRAP Score | 4 |
| Changes | 0 | ||
| 1 | <?php |
||
| 77 | 1 | public function record() |
|
| 78 | { |
||
| 79 | try { |
||
| 80 | 1 | return $this->storage->save($this->data); |
|
| 81 | // @codeCoverageIgnoreStart |
||
| 82 | } catch (\Exception $exception) { |
||
| 83 | $this->logger ? $this->logger->error($exception->getMessage()) : false; |
||
| 84 | $this->logger ? $this->logger->debug($exception->getTraceAsString()) : false; |
||
| 85 | |||
| 86 | return false; |
||
| 87 | } |
||
| 88 | // @codeCoverageIgnoreStart |
||
| 89 | } |
||
| 90 | } |
||
| 91 |
This check looks for a call to a parent method whose name is different than the method from which it is called.
Consider the following code:
The
getFirstName()method in theSoncalls the wrong method in the parent class.