Passed
Push — master ( d021a5...a13070 )
by Sam
03:47 queued 12s
created

m150829_085133_drop_disable_frodo_warning   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
c 1
b 0
f 0
dl 0
loc 14
rs 10
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A up() 0 4 1
A down() 0 5 1
1
<?php
2
3
class m150829_085133_drop_disable_frodo_warning extends CDbMigration
4
{
5
6
	public function up()
7
	{
8
		$this->delete('settings', 'name = :name', array(
9
			':name' => 'disableFrodoWarning'));
10
	}
11
12
	public function down()
13
	{
14
		$this->insert('settings', array(
15
			'name' => 'disableFrodoWarning',
16
			'value' => '0'));
17
	}
18
19
}
20