Skip to content

Commit

Permalink
Fix styling
Browse files Browse the repository at this point in the history
  • Loading branch information
romalytvynenko authored and github-actions[bot] committed Oct 16, 2024
1 parent a3662fb commit 9193ff1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions src/Support/Generator/Types/MixedType.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

namespace Dedoc\Scramble\Support\Generator\Types;

use JsonSerializable;

class MixedType extends Type
{
public function __construct()
Expand All @@ -14,6 +12,6 @@ public function __construct()
public function toArray()
{
// Yes. It is not an array. I live with it.
return (object)[];
return (object) [];
}
}
2 changes: 1 addition & 1 deletion tests/TypeToSchemaTransformerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
[new LiteralStringType('wow'), ['type' => 'string', 'example' => 'wow']],
[new LiteralFloatType(157.50), ['type' => 'number', 'example' => 157.5]],
[new BooleanType, ['type' => 'boolean']],
[new MixedType, (object)[]],
[new MixedType, (object) []],
[new ArrayType(value: new StringType), ['type' => 'array', 'items' => ['type' => 'string']]],
[new KeyedArrayType([
new ArrayItemType_('key', new IntegerType),
Expand Down

0 comments on commit 9193ff1

Please sign in to comment.