Passed
Push — develop ( 319bd8...330c7a )
by Neill
16:41 queued 15s
created
neon/daedalus/migrations/m170904_201142_dds_multichoice_creation.php 2 patches
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -4,26 +4,26 @@
 block discarded – undo
4 4
 
5 5
 class m170904_201142_dds_multichoice_creation extends Migration
6 6
 {
7
-    public function safeUp()
8
-    {
9
-	    $sql =<<<EOQ
7
+	public function safeUp()
8
+	{
9
+		$sql =<<<EOQ
10 10
 SET foreign_key_checks = 0;
11 11
 REPLACE INTO `dds_data_type` (`data_type_ref`, `label`, `description`, `definition`, `storage_ref`, `deleted`)
12 12
 VALUES
13 13
 ('choice_multiple','Multiple Choice','For storing multiple choice keys','{"size":10000}','text',0);
14 14
 SET foreign_key_checks = 1;
15 15
 EOQ;
16
-	    $this->execute($sql);
16
+		$this->execute($sql);
17 17
 
18
-    }
18
+	}
19 19
 
20
-    public function safeDown()
21
-    {
22
-	    $sql =<<<EOQ
20
+	public function safeDown()
21
+	{
22
+		$sql =<<<EOQ
23 23
 SET foreign_key_checks=0;
24 24
 DELETE FROM `dds_data_type` WHERE `data_type_ref`='choice_multiple';
25 25
 SET foreign_key_checks=1;
26 26
 EOQ;
27
-	    $this->execute($sql);
28
-    }
27
+		$this->execute($sql);
28
+	}
29 29
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
 {
7 7
     public function safeUp()
8 8
     {
9
-	    $sql =<<<EOQ
9
+	    $sql = <<<EOQ
10 10
 SET foreign_key_checks = 0;
11 11
 REPLACE INTO `dds_data_type` (`data_type_ref`, `label`, `description`, `definition`, `storage_ref`, `deleted`)
12 12
 VALUES
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     public function safeDown()
21 21
     {
22
-	    $sql =<<<EOQ
22
+	    $sql = <<<EOQ
23 23
 SET foreign_key_checks=0;
24 24
 DELETE FROM `dds_data_type` WHERE `data_type_ref`='choice_multiple';
25 25
 SET foreign_key_checks=1;
Please login to merge, or discard this patch.
neon/daedalus/migrations/m161111_161448__dds_removal_of_ids.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,8 +4,8 @@  discard block
 block discarded – undo
4 4
 
5 5
 class m161111_161448__dds_removal_of_ids extends Migration
6 6
 {
7
-    public function safeUp()
8
-    {
7
+	public function safeUp()
8
+	{
9 9
 		// delete ids
10 10
 		$this->dropColumn('dds_class', 'id');
11 11
 		$this->dropColumn('dds_data_type', 'id');
@@ -14,10 +14,10 @@  discard block
 block discarded – undo
14 14
 
15 15
 		// add a uuid to object tables
16 16
 		$this->execute('ALTER TABLE `dds_object` ADD `_uuid` CHAR(36) NOT NULL FIRST, ADD PRIMARY KEY (`_uuid`)');
17
-    }
17
+	}
18 18
 
19
-    public function safeDown()
20
-    {
19
+	public function safeDown()
20
+	{
21 21
 		// remove the uuid
22 22
 		$this->dropColumn('dds_object', '_uuid');
23 23
 		// add ids back again
@@ -25,5 +25,5 @@  discard block
 block discarded – undo
25 25
 		$this->execute('ALTER TABLE `dds_data_type` ADD `id` INT UNSIGNED NOT NULL AUTO_INCREMENT FIRST, ADD PRIMARY KEY (`id`)');
26 26
 		$this->execute('ALTER TABLE `dds_member` ADD `id` INT UNSIGNED NOT NULL AUTO_INCREMENT FIRST, ADD PRIMARY KEY (`id`)');
27 27
 		$this->execute('ALTER TABLE `dds_object` ADD `_id` INT UNSIGNED NOT NULL AUTO_INCREMENT FIRST, ADD PRIMARY KEY (`_id`)');
28
-    }
28
+	}
29 29
 }
Please login to merge, or discard this patch.
neon/daedalus/migrations/m161018_154331__dds_add_definition_to_class.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 class m161018_154331__dds_add_definition_to_class extends Migration
6 6
 {
7
-    public function safeUp()
8
-    {
9
-    	$this->addColumn('dds_class', 'definition', $this->text(10000) . " DEFAULT NULL COMMENT 'A definition for use by other modules, but not understood by DDS'");
10
-    }
7
+	public function safeUp()
8
+	{
9
+		$this->addColumn('dds_class', 'definition', $this->text(10000) . " DEFAULT NULL COMMENT 'A definition for use by other modules, but not understood by DDS'");
10
+	}
11 11
 
12
-    public function safeDown()
13
-    {
14
-    	$this->dropColumn('dds_class', 'definition');
15
-    }
12
+	public function safeDown()
13
+	{
14
+		$this->dropColumn('dds_class', 'definition');
15
+	}
16 16
 }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@
 block discarded – undo
6 6
 {
7 7
     public function safeUp()
8 8
     {
9
-    	$this->addColumn('dds_class', 'definition', $this->text(10000) . " DEFAULT NULL COMMENT 'A definition for use by other modules, but not understood by DDS'");
9
+    	$this->addColumn('dds_class', 'definition', $this->text(10000)." DEFAULT NULL COMMENT 'A definition for use by other modules, but not understood by DDS'");
10 10
     }
11 11
 
12 12
     public function safeDown()
Please login to merge, or discard this patch.
migrations/deprecatedMigrations/m170724_112209_dds_link_table_creation.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@  discard block
 block discarded – undo
9 9
  */
10 10
 class m170724_112209_dds_link_table_creation extends Migration
11 11
 {
12
-    public function safeUp()
13
-    {
12
+	public function safeUp()
13
+	{
14 14
 		// create a linking table for links
15 15
 		$tableOptions = null;
16 16
 		if ($this->db->driverName === 'mysql') {
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
40 40
 
41 41
 	}
42 42
 
43
-    public function safeDown()
44
-    {
43
+	public function safeDown()
44
+	{
45 45
 		$this->dropTable('dds_link');
46 46
 		$connection = neon()->db;
47 47
 		$sql =<<<EOQ
@@ -52,5 +52,5 @@  discard block
 block discarded – undo
52 52
 		$this->execute($sql);
53 53
 		$this->dropColumn('dds_member', 'link_class');
54 54
 
55
-    }
55
+	}
56 56
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 		], $tableOptions);
27 27
 
28 28
 		// create the new link and link datatypes
29
-		$sql =<<<EOQ
29
+		$sql = <<<EOQ
30 30
 SET foreign_key_checks = 0;
31 31
 REPLACE INTO `dds_data_type` (`data_type_ref`, `label`, `description`, `definition`, `storage_ref`, `deleted`)
32 32
 VALUES
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     {
45 45
 		$this->dropTable('dds_link');
46 46
 		$connection = neon()->db;
47
-		$sql =<<<EOQ
47
+		$sql = <<<EOQ
48 48
 SET foreign_key_checks=0;
49 49
 DELETE FROM `dds_data_type` WHERE `data_type_ref`='link';
50 50
 SET foreign_key_checks=1;
Please login to merge, or discard this patch.
deprecatedMigrations/m161201_170340_dds_add_map_field_to_members.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -5,14 +5,14 @@
 block discarded – undo
5 5
 class m161201_170340_dds_add_map_field_to_members extends Migration
6 6
 {
7 7
 
8
-    public function safeUp()
9
-    {
8
+	public function safeUp()
9
+	{
10 10
 		$this->addColumn('dds_member', 'map_field', "TINYINT(1) NOT NULL DEFAULT 0 COMMENT 'If true, then this is field data used in defining maps' AFTER `definition`");
11
-    }
11
+	}
12 12
 
13
-    public function safeDown()
14
-    {
13
+	public function safeDown()
14
+	{
15 15
 		$this->dropColumn('dds_member', 'map_field');
16
-    }
16
+	}
17 17
 
18 18
 }
Please login to merge, or discard this patch.
neon/daedalus/migrations/m161130_132511_dds_uuid_change_to_22_chars.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -4,13 +4,13 @@
 block discarded – undo
4 4
 
5 5
 class m161130_132511_dds_uuid_change_to_22_chars extends Migration
6 6
 {
7
-    public function safeUp()
8
-    {
7
+	public function safeUp()
8
+	{
9 9
 		$this->alterColumn('dds_object', '_uuid', "CHAR(22) NOT NULL COMMENT 'A universally unique identifier for this object'");
10
-    }
10
+	}
11 11
 
12
-    public function safeDown()
13
-    {
12
+	public function safeDown()
13
+	{
14 14
 		$this->alterColumn('dds_object', '_uuid', "CHAR(36) NOT NULL");
15
-    }
15
+	}
16 16
 }
Please login to merge, or discard this patch.
neon/daedalus/migrations/newMigrations/m160902_204642_dds_init.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		$connection = \Yii::$app->getDb();
16 16
 
17 17
 		// create the various tables for dds
18
-		$sql=<<<EOQ
18
+		$sql = <<<EOQ
19 19
 -- --------------------------------------------------------
20 20
 
21 21
 --
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		$command = $connection->createCommand($sql);
143 143
 		$command->execute();
144 144
 
145
-		$sql=<<<EOQ
145
+		$sql = <<<EOQ
146 146
 --
147 147
 -- Dumping data for table `dds_storage`
148 148
 --
Please login to merge, or discard this patch.
neon/daedalus/migrations/m160902_204642_dds_init.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 		$connection = \Yii::$app->getDb();
16 16
 
17 17
 		// create the various tables for dds
18
-		$sql=<<<EOQ
18
+		$sql = <<<EOQ
19 19
 -- --------------------------------------------------------
20 20
 
21 21
 --
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 		$command = $connection->createCommand($sql);
143 143
 		$command->execute();
144 144
 
145
-		$sql=<<<EOQ
145
+		$sql = <<<EOQ
146 146
 --
147 147
 -- Dumping data for table `dds_storage`
148 148
 --
Please login to merge, or discard this patch.
neon/daedalus/migrations/m170103_151935_dds_new_data_types.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
 
11 11
 		$this->alterColumn('dds_storage', 'type', "enum('INTEGER_TINY','INTEGER_SHORT','INTEGER','INTEGER_LONG','FLOAT','DOUBLE','DATE','DATETIME','TEXT_SHORT','TEXT','TEXT_LONG','BINARY_SHORT','BINARY','BINARY_LONG','CHAR','TIME') COLLATE utf8mb4_unicode_ci NOT NULL COMMENT 'the storage type'");
12 12
 
13
-		$sql =<<<EOQ
13
+		$sql = <<<EOQ
14 14
 SET foreign_key_checks = 0;
15 15
 REPLACE INTO {{%dds_storage}} (`storage_ref`, `label`, `type`, `description`)
16 16
 VALUES
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 		$connection->createCommand($sql)->execute();
22 22
 
23 23
 
24
-		$sql =<<<EOQ
24
+		$sql = <<<EOQ
25 25
 SET foreign_key_checks = 0;
26 26
 REPLACE INTO {{%dds_data_type}} (`data_type_ref`, `label`, `description`, `definition`, `storage_ref`, `deleted`)
27 27
 VALUES
Please login to merge, or discard this patch.