Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 3
CRAP
0.00% covered (danger)
0.00%
0 / 1
remove_img_link
0.00% covered (danger)
0.00%
0 / 9
0.00% covered (danger)
0.00%
0 / 3
20
0.00% covered (danger)
0.00%
0 / 1
 effectively_installed
0.00% covered (danger)
0.00%
0 / 2
0.00% covered (danger)
0.00%
0 / 1
6
 depends_on
0.00% covered (danger)
0.00%
0 / 3
0.00% covered (danger)
0.00%
0 / 1
2
 update_data
0.00% covered (danger)
0.00%
0 / 4
0.00% covered (danger)
0.00%
0 / 1
2
1<?php
2
3/**
4 *
5 * This file is part of the phpBB Forum Software package.
6 *
7 * @copyright (c) phpBB Limited <https://www.phpbb.com>
8 * @license GNU General Public License, version 2 (GPL-2.0)
9 *
10 * For full copyright and license information, please see
11 * the docs/CREDITS.txt file.
12 *
13 */
14
15namespace phpbb\db\migration\data\v400;
16
17use phpbb\db\migration\migration;
18
19class remove_img_link extends migration
20{
21    public function effectively_installed()
22    {
23        return !$this->config->offsetExists('img_link_width')
24            && !$this->config->offsetExists('img_link_height');
25    }
26
27    public static function depends_on()
28    {
29        return [
30            '\phpbb\db\migration\data\v400\dev'
31        ];
32    }
33
34    public function update_data()
35    {
36        return [
37            ['config.remove', ['img_link_width']],
38            ['config.remove', ['img_link_height']],
39        ];
40    }
41}