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 May 21, 2024
1 parent aa7ac5d commit 28f2d1f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,14 +13,14 @@
use Dedoc\Scramble\Support\Generator\Server;
use Dedoc\Scramble\Support\Generator\Types\StringType;
use Dedoc\Scramble\Support\Generator\Types\Type;
use Dedoc\Scramble\Support\Type\IntegerType;
use Dedoc\Scramble\Support\Type\Type as InferType;
use Dedoc\Scramble\Support\Generator\TypeTransformer;
use Dedoc\Scramble\Support\Generator\UniqueNameOptions;
use Dedoc\Scramble\Support\PhpDoc;
use Dedoc\Scramble\Support\RouteInfo;
use Dedoc\Scramble\Support\ServerFactory;
use Dedoc\Scramble\Support\Type\IntegerType;
use Dedoc\Scramble\Support\Type\ObjectType;
use Dedoc\Scramble\Support\Type\Type as InferType;
use Dedoc\Scramble\Support\Type\TypeHelper;
use Dedoc\Scramble\Support\Type\Union;
use Dedoc\Scramble\Support\Type\UnknownType;
Expand Down Expand Up @@ -251,7 +251,6 @@ private function getModelIdTypeAndDescription(
}

/** @var ObjectType $type */

$defaults[0] = $this->openApiTransformer->transform(new IntegerType);

try {
Expand Down
2 changes: 1 addition & 1 deletion src/Support/Type/TypeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,6 @@ public static function createTypeFromReflectionType(ReflectionType $reflectionTy
return new ObjectType($reflectionType->getName());
}

return new UnknownType('Cannot create type from reflection type '.((string)$reflectionType));
return new UnknownType('Cannot create type from reflection type '.((string) $reflectionType));
}
}

0 comments on commit 28f2d1f

Please sign in to comment.