| Conditions | 9 |
| Paths | 5 |
| Total Lines | 12 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 23 | public function calculate($var1, $operation, $var2) |
||
| 24 | { |
||
| 25 | if ($operation == 'plus' || $operation == '+') { |
||
| 26 | return $var1 + $var2; |
||
| 27 | } elseif ($operation == 'minus' || $operation == '-') { |
||
| 28 | return $var1 - $var2; |
||
| 29 | } elseif ($operation == 'multiply' || $operation == '*') { |
||
| 30 | return $var1 * $var2; |
||
| 31 | } elseif ($operation == 'divide' || $operation == '/') { |
||
| 32 | return $var1 / $var2; |
||
| 33 | } else { |
||
| 34 | return 'Invalid Operation'; |
||
| 35 | } |
||
| 43 |
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