| Conditions | 5 |
| Paths | 5 |
| Total Lines | 22 |
| Code Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 62 | public function getAmountString(): string |
||
| 63 | { |
||
| 64 | // switch statement for $transaction->type |
||
| 65 | switch ($this->type) { |
||
| 66 | case Table::TYPE_CREDIT: |
||
| 67 | $prefix = '-'; |
||
| 68 | break; |
||
| 69 | case Table::TYPE_DEBIT: |
||
| 70 | $prefix = '+'; |
||
| 71 | break; |
||
| 72 | case Table::TYPE_BLOCK: |
||
| 73 | $prefix = '<<'; |
||
| 74 | break; |
||
| 75 | case Table::TYPE_UNBLOCK: |
||
| 76 | $prefix = '>>'; |
||
| 77 | break; |
||
| 78 | default: |
||
| 79 | $prefix = ''; |
||
| 80 | break; |
||
| 81 | } |
||
| 82 | |||
| 83 | return $prefix . $this->amount; |
||
| 84 | } |
||
| 86 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths