Skip to content

Commit 820010f

Browse files
authored
Apply fixes from StyleCI (#20)
1 parent 00b9440 commit 820010f

File tree

3 files changed

+5
-3
lines changed

3 files changed

+5
-3
lines changed

src/Assert.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ public static function assertJsonMatchesSchema($content, $schema = null)
5454

5555
if ($schema !== null) {
5656
$schemaObject = json_decode(file_get_contents($schema));
57-
self::$schemaStorage->addSchema( 'file://' . $schema, $schemaObject);
57+
self::$schemaStorage->addSchema('file://'.$schema, $schemaObject);
5858
}
5959

6060
$validator = new Validator(new Factory(self::$schemaStorage));
@@ -78,6 +78,7 @@ public static function assertJsonMatchesSchema($content, $schema = null)
7878
*
7979
* @param string|null $schema Path to the schema file
8080
* @param array|object $content JSON array or object
81+
*
8182
* @deprecated This will be removed in the next major version (4.x).
8283
*/
8384
public static function assertJsonMatchesSchemaDepr($schema, $content)

tests/AssertTraitImpl.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ public function setUp()
2727
/**
2828
* @param string $id
2929
* @param string $schema
30+
*
3031
* @return SchemaStorage
3132
*/
3233
public function testWithSchemaStore($id, $schema)

tests/AssertTraitTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,10 @@ public function testAssertWithSchemaStore()
109109
$obj = new AssertTraitImpl();
110110
$obj->setUp();
111111

112-
$schemastore = $obj->testWithSchemaStore('foobar', (object)['type' => 'string']);
112+
$schemastore = $obj->testWithSchemaStore('foobar', (object) ['type' => 'string']);
113113

114114
self::assertInstanceOf('JsonSchema\SchemaStorage', $schemastore);
115-
self::assertEquals($schemastore->getSchema('foobar'), (object)['type' => 'string']);
115+
self::assertEquals($schemastore->getSchema('foobar'), (object) ['type' => 'string']);
116116
}
117117

118118
public function assertJsonValueEqualsProvider()

0 commit comments

Comments
 (0)