| Total Complexity | 5 |
| Total Lines | 48 |
| Duplicated Lines | 0 % |
| Changes | 2 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 7 | class FixLongPmaVersions extends AbstractMigration |
||
| 8 | { |
||
| 9 | |||
| 10 | /** |
||
| 11 | * This migration strips the phpMyAdmin version of Debian, |
||
| 12 | * Ubuntu and other suffixes in version strings |
||
| 13 | * |
||
| 14 | */ |
||
| 15 | public function up() |
||
| 16 | { |
||
| 17 | // Strip phpMyAdmin versions in `reports` table |
||
| 18 | $count = $this->_sanitizeVersionsInTable('reports'); |
||
| 19 | Log::debug($count . ' reports updated'); |
||
| 20 | |||
| 21 | // Strip phpMyAdmin versions in `incidents` table |
||
| 22 | $count = $this->_sanitizeVersionsInTable('incidents'); |
||
| 23 | Log::debug($count . ' incidents updated'); |
||
| 24 | } |
||
| 25 | |||
| 26 | public function down() |
||
| 28 | // Once applied, this migration can't be reversed |
||
| 29 | // but the migration itself is idempotent |
||
| 30 | } |
||
| 31 | |||
| 32 | private function _sanitizeVersionsInTable($table) |
||
| 57 |
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