| Total Complexity | 4 | 
| Total Lines | 56 | 
| Duplicated Lines | 0 % | 
| Changes | 0 | ||
| 1 | <?php | ||
| 13 | class m4_indexes extends \phpbb\db\migration\migration | ||
|  | |||
| 14 | { | ||
| 15 | /** | ||
| 16 | 	 * {@inheritDoc} | ||
| 17 | */ | ||
| 18 | public function effectively_installed() | ||
| 21 | } | ||
| 22 | |||
| 23 | /** | ||
| 24 | 	 * {@inheritDoc} | ||
| 25 | */ | ||
| 26 | public static function depends_on() | ||
| 27 | 	{ | ||
| 28 | return array( | ||
| 29 | '\phpbb\ads\migrations\v10x\m1_initial_schema', | ||
| 30 | '\phpbb\ads\migrations\v10x\m3_template_locations_schema', | ||
| 31 | ); | ||
| 32 | } | ||
| 33 | |||
| 34 | /** | ||
| 35 | * Add the indexes | ||
| 36 | * | ||
| 37 | * @return array Array of altered table schema | ||
| 38 | * @access public | ||
| 39 | */ | ||
| 40 | public function update_schema() | ||
| 41 | 	{ | ||
| 42 | return array( | ||
| 43 | 'add_index' => array( | ||
| 44 | $this->table_prefix . 'ads' => array( | ||
| 45 | 					'ad_enabled'	=> array('ad_enabled'), // index used in ad\manager::get_ads | ||
| 46 | ), | ||
| 47 | $this->table_prefix . 'ad_locations' => array( | ||
| 48 | 					'location_id'	=> array('location_id'), // index used in ad\manager::get_ads | ||
| 49 | ), | ||
| 50 | ), | ||
| 51 | ); | ||
| 52 | } | ||
| 53 | |||
| 54 | /** | ||
| 55 | * Drop the indexes | ||
| 56 | * | ||
| 57 | * @return array Array of altered table schema | ||
| 58 | * @access public | ||
| 59 | */ | ||
| 60 | public function revert_schema() | ||
| 69 | ), | ||
| 70 | ), | ||
| 71 | ); | ||
| 74 | 
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