Apply fixes from StyleCI (#12117)

* Apply fixes from StyleCI

* Disable style check
This commit is contained in:
Jellyfrog
2020-09-21 14:54:51 +02:00
committed by GitHub
parent 8ec9183df5
commit 77c531527c
752 changed files with 6238 additions and 5833 deletions

View File

@@ -34,13 +34,13 @@ class SchemaTest extends TestCase
"Columns" => [
["Field" => "bill_id", "Type" => "int(11)", "Null" => false, "Extra" => "auto_increment"],
],
"Indexes" => ["bill_id" => ["Name" => "bill_id", "Columns" => ["bill_id"], "Unique" => true, "Type" => "BTREE"]]
"Indexes" => ["bill_id" => ["Name" => "bill_id", "Columns" => ["bill_id"], "Unique" => true, "Type" => "BTREE"]],
],
"bill_ports" => [
"Columns" => [
["Field" => "bill_id", "Type" => "int(11)", "Null" => false, "Extra" => ""],
["Field" => "port_id", "Type" => "int(11)", "Null" => false, "Extra" => ""],
]
],
],
"devices" => [
"Columns" => [
@@ -49,7 +49,7 @@ class SchemaTest extends TestCase
],
"Indexes" => [
"PRIMARY" => ["Name" => "PRIMARY", "Columns" => ["device_id"], "Unique" => true, "Type" => "BTREE"],
]
],
],
"locations" => [
"Columns" => [
@@ -57,7 +57,7 @@ class SchemaTest extends TestCase
],
"Indexes" => [
"PRIMARY" => ["Name" => "PRIMARY", "Columns" => ["id"], "Unique" => true, "Type" => "BTREE"],
]
],
],
"ports" => [
"Columns" => [
@@ -66,7 +66,7 @@ class SchemaTest extends TestCase
],
"Indexes" => [
"PRIMARY" => ["Name" => "PRIMARY", "Columns" => ["port_id"], "Unique" => true, "Type" => "BTREE"],
]
],
],
"sensors" => [
"Columns" => [
@@ -75,17 +75,17 @@ class SchemaTest extends TestCase
],
"Indexes" => [
"PRIMARY" => ["Name" => "PRIMARY", "Columns" => ["sensor_id"], "Unique" => true, "Type" => "BTREE"],
]
],
],
"sensors_to_state_indexes" => [
"Columns" => [
["Field" => "sensors_to_state_translations_id", "Type" => "int(11)", "Null" => false, "Extra" => "auto_increment"],
["Field" => "sensor_id", "Type" => "int(11)", "Null" => false, "Extra" => ""],
["Field" => "state_index_id", "Type" => "int(11)", "Null" => false, "Extra" => ""]
["Field" => "state_index_id", "Type" => "int(11)", "Null" => false, "Extra" => ""],
],
"Indexes" => [
"PRIMARY" => ["Name" => "PRIMARY", "Columns" => ["sensors_to_state_translations_id"], "Unique" => true, "Type" => "BTREE"],
]
],
],
"state_indexes" => [
"Columns" => [
@@ -93,7 +93,7 @@ class SchemaTest extends TestCase
],
"Indexes" => [
"PRIMARY" => ["Name" => "PRIMARY", "Columns" => ["state_index_id"], "Unique" => true, "Type" => "BTREE"],
]
],
],
"state_translations" => [
"Columns" => [
@@ -102,8 +102,8 @@ class SchemaTest extends TestCase
],
"Indexes" => [
"PRIMARY" => ["Name" => "PRIMARY", "Columns" => ["state_translation_id"], "Unique" => true, "Type" => "BTREE"],
]
]
],
],
];
/**
@@ -123,7 +123,6 @@ class SchemaTest extends TestCase
return $schema;
}
public function testTableRelationships()
{
// mock getSchema