Skip to content

Commit

Permalink
stan
Browse files Browse the repository at this point in the history
  • Loading branch information
vsouz4 committed Dec 13, 2023
1 parent 8a834fc commit 2e7189f
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .php-cs-fixer.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
'phpdoc_single_line_var_spacing' => true,
'phpdoc_trim' => true,
'phpdoc_var_without_name' => true,
'phpdoc_to_comment' => true,
'phpdoc_to_comment' => false,
'phpdoc_scalar' => [
'types' => ['boolean', 'double', 'integer', 'real', 'str'],
],
Expand Down
2 changes: 1 addition & 1 deletion .php-cs-fixer.php.dist
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ $rules = [
'phpdoc_single_line_var_spacing' => true,
'phpdoc_trim' => true,
'phpdoc_var_without_name' => true,
'phpdoc_to_comment' => true,
'phpdoc_to_comment' => false,
'phpdoc_scalar' => [
'types' => ['boolean', 'double', 'integer', 'real', 'str'],
],
Expand Down
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ cs: ## fix code style
docker-compose run php vendor/bin/php-cs-fixer fix .

stan: ## statically analyse code
docker-compose run php vendor/bin/phpstan --memory-limit=1G analyse src
docker-compose run php vendor/bin/phpstan --memory-limit=1G analyse

coverage: ## coverage for pipeline
docker-compose run -e COVERALLS_REPO_TOKEN=${COVERALLS_REPO_TOKEN} -e GITHUB_REF=${GITHUB_REF} -e GITHUB_ACTIONS=${GITHUB_ACTIONS} -e GITHUB_RUN_ID=${GITHUB_RUN_ID} -e GITHUB_EVENT_NAME=${GITHUB_EVENT_NAME} php vendor/bin/php-coveralls -v
4 changes: 2 additions & 2 deletions src/Command/GenerateCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ private function generatePhpFiles(StyleInterface $ss, Specification $specificati

$ss->progressStart($phpFiles->count());
foreach ($phpFiles as $phpFile) {
/* @var PhpFile $phpFile */
/** @var PhpFile $phpFile */
$this->phpPrinter->print(
sprintf(
'%s/%s/%s',
Expand All @@ -129,7 +129,7 @@ private function generateMetaFiles(StyleInterface $ss, Specification $specificat

$ss->progressStart($metaFiles->count());
foreach ($metaFiles as $metaFile) {
/* @var MetaFile $metaFile */
/** @var MetaFile $metaFile */
$this->templatePrinter->print(
sprintf('%s/%s', $this->configuration->outputDirectory, $metaFile->filePath),
$metaFile
Expand Down
6 changes: 3 additions & 3 deletions src/Entity/FieldCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,12 @@ public function merge(FieldCollection $fieldCollection): self
{
$unique = [];
foreach ($this as $field) {
/* @var Field $field */
/** @var Field $field */
$unique[$field->getPhpClassName()] = $field;
}

foreach ($fieldCollection as $field) {
/* @var Field $field */
/** @var Field $field */
$unique[$field->getPhpClassName()] = $field;
}

Expand All @@ -45,7 +45,7 @@ public function getUniqueByPhpClassName(): array
{
$unique = [];
foreach ($this as $field) {
/* @var Field $field */
/** @var Field $field */
$unique[$field->getPhpClassName()] = $field;
}

Expand Down
2 changes: 1 addition & 1 deletion src/Generator/SchemaMapperGenerator.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class SchemaMapperGenerator extends MutatorAccessorClassGeneratorAbstract
public function generate(Specification $specification, PhpFileCollection $fileRegistry): void
{
foreach ($specification->getCompositeResponseFields() as $field) {
/* @var Field $field */
/** @var Field $field */
$this->generateMapper($fileRegistry, $field);
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Input/Specification.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public function getSecuritySchemes(): array
$securityScheme = $securityScheme->resolve();
}

/* @var SecurityScheme $securityScheme */
/** @var SecurityScheme $securityScheme */

return $securityScheme;
}, $this->openApi->components->securitySchemes ?? []);
Expand Down

0 comments on commit 2e7189f

Please sign in to comment.