| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | private function backup(): void |
||
| 39 | { |
||
| 40 | $cmd = sprintf( |
||
| 41 | 'PGPASSWORD="%s" pg_dump -Fc -U %s -h %s %s > %s/%s.dump', |
||
| 42 | $this->config->get('db.pass'), |
||
| 43 | $this->config->get('db.user'), |
||
| 44 | $this->config->get('db.host'), |
||
| 45 | $this->config->get('db.database'), |
||
| 46 | $this->config->get('db.backup_dir'), |
||
| 47 | date("d-m-Y", time()) |
||
| 48 | ); |
||
| 49 | |||
| 50 | system($cmd); |
||
| 51 | } |
||
| 53 |
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