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 Sep 17, 2022
1 parent 5ff7338 commit 1a3ba3d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

use Dedoc\Scramble\Support\Generator\Parameter;
use Dedoc\Scramble\Support\Generator\Schema;
use Dedoc\Scramble\Support\Generator\Types\StringType;
use Dedoc\Scramble\Support\Generator\Types\Type as OpenApiType;
use Dedoc\Scramble\Support\Generator\Types\UnknownType;
use Illuminate\Support\Arr;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ private function setDeepType(Type &$base, string $key, Type $typeToSet)
$base = $containingType;
}

if (!($containingType instanceof ArrayType || $containingType instanceof ObjectType)) {
if (! ($containingType instanceof ArrayType || $containingType instanceof ObjectType)) {
return;
}

Expand Down Expand Up @@ -161,7 +161,7 @@ private function getOrCreateDeepTypeContainer(Type &$base, array $path)
);
}

if ($next === '*' && !$existingType instanceof ArrayType) {
if ($next === '*' && ! $existingType instanceof ArrayType) {
$base->addProperty($key, (new ArrayType)->addProperties($existingType));
}
if ($next !== '*' && $existingType instanceof ArrayType) {
Expand Down

0 comments on commit 1a3ba3d

Please sign in to comment.