@@ -78,7 +78,7 @@ discard block |
||
78 | 78 | ] |
79 | 79 | ]); |
80 | 80 | |
81 | - $finalConfig = new TestConfig(['name' => $name . 'final', 'resolve' => function () { return []; }], $object, true); |
|
81 | + $finalConfig = new TestConfig(['name' => $name.'final', 'resolve' => function() { return []; }], $object, true); |
|
82 | 82 | $this->assertEquals($finalConfig->getType(), null); |
83 | 83 | |
84 | 84 | $rules['resolve']['required'] = true; |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | */ |
99 | 99 | public function testFinalRule() |
100 | 100 | { |
101 | - ConfigValidator::getInstance()->assertValidateConfig(new TestConfig(['name' => 'Test' . 'final'], null, true)); |
|
101 | + ConfigValidator::getInstance()->assertValidateConfig(new TestConfig(['name' => 'Test'.'final'], null, true)); |
|
102 | 102 | } |
103 | 103 | |
104 | 104 | /** |
@@ -47,7 +47,7 @@ |
||
47 | 47 | if (isset($this->values[$id])) { |
48 | 48 | unset($this->values[$id]); |
49 | 49 | } |
50 | - $this->keyset[$id] = true; |
|
50 | + $this->keyset[$id] = true; |
|
51 | 51 | } |
52 | 52 | |
53 | 53 | public function remove($id) |
@@ -93,7 +93,7 @@ discard block |
||
93 | 93 | */ |
94 | 94 | |
95 | 95 | /** |
96 | - * @param $name |
|
96 | + * @param string $name |
|
97 | 97 | * |
98 | 98 | * @return Field |
99 | 99 | */ |
@@ -125,6 +125,9 @@ discard block |
||
125 | 125 | return $this->fields; |
126 | 126 | } |
127 | 127 | |
128 | + /** |
|
129 | + * @param string $name |
|
130 | + */ |
|
128 | 131 | public function removeField($name) |
129 | 132 | { |
130 | 133 | if ($this->hasField($name)) { |
@@ -53,7 +53,7 @@ |
||
53 | 53 | public function testSetVariableParseJson() |
54 | 54 | { |
55 | 55 | $variables = '{"foo": "bar"}'; |
56 | - $expectedVariableArray = [ 'foo' => 'bar' ]; |
|
56 | + $expectedVariableArray = ['foo' => 'bar']; |
|
57 | 57 | |
58 | 58 | $request = new Request([], $variables); |
59 | 59 | $this->assertEquals($expectedVariableArray, $request->getVariables()); |