Skip to content

Commit 19bc300

Browse files
committed
Code cleanup
1 parent e010bbe commit 19bc300

File tree

215 files changed

+1721
-2045
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

215 files changed

+1721
-2045
lines changed

Tests/DefinitionTest.php

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
*/
1212
class DefinitionTest extends \PHPUnit\Framework\TestCase
1313
{
14-
1514
public function testGetSet() : void
1615
{
1716
$fixture = new \Tests\Fixtures\TypeTest();
@@ -61,7 +60,7 @@ public function testGetSet() : void
6160
$this->assertIsObject($fixture->class);
6261

6362
$json = $fixture->getJSON();
64-
$expectedJSON ='{
63+
$expectedJSON = '{
6564
"class": [],
6665
"integer": 123,
6766
"string": "A long string",
@@ -77,7 +76,7 @@ public function testGetSet() : void
7776
"ucEnum": "REMOVED"
7877
}';
7978
// normalize line endings
80-
$expectedJSON = str_replace("\r\n", "\n", $expectedJSON);
79+
$expectedJSON = \str_replace("\r\n", "\n", $expectedJSON);
8180
$this->assertEquals($expectedJSON, $json);
8281
}
8382

@@ -131,7 +130,7 @@ public function testBadArrayTypes() : void
131130
new \Tests\Fixtures\ClassTest(),
132131
new \Tests\Fixtures\ClassTest(),
133132
new \Tests\Fixtures\TypeTest(),
134-
];
133+
];
135134
}
136135

137136
public function testBadArrayOfTypeSize() : void
@@ -144,7 +143,7 @@ public function testBadArrayOfTypeSize() : void
144143
new \Tests\Fixtures\ClassTest(),
145144
new \Tests\Fixtures\ClassTest(),
146145
new \Tests\Fixtures\ClassTest(),
147-
];
146+
];
148147
}
149148

150149
public function testBadClassType() : void
@@ -172,7 +171,7 @@ public function testMaxLength() : void
172171
{
173172
$fixture = new \Tests\Fixtures\TypeTest();
174173
$this->expectException(\PHPFUI\ConstantContact\Exception\InvalidLength::class);
175-
$fixture->string = str_pad('', 100);
174+
$fixture->string = \str_pad('', 100);
176175
}
177176

178177
public function testGeneratedClass() : void
@@ -181,5 +180,4 @@ public function testGeneratedClass() : void
181180
$this->expectException(\PHPFUI\ConstantContact\Exception\InvalidType::class);
182181
$fixture->physical_address_in_footer = new \DateTime();
183182
}
184-
185183
}

Tests/Fixtures/TypeTest.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
class TypeTest extends \PHPFUI\ConstantContact\Definition\Base
66
{
7-
87
protected static array $fields = [
98
'boolean' => 'bool',
109
'integer' => 'int',
@@ -26,5 +25,4 @@ class TypeTest extends \PHPFUI\ConstantContact\Definition\Base
2625
protected static array $maxLength = [
2726
'string' => 50,
2827
];
29-
30-
}
28+
}

0 commit comments

Comments
 (0)