Skip to content

Commit

Permalink
Merge pull request #166 from nextcloud/dependabot/composer/nextcloud/…
Browse files Browse the repository at this point in the history
…coding-standard-1.3.1
  • Loading branch information
provokateurin authored Sep 21, 2024
2 parents 857d9bf + f7e9cbc commit 2acf86d
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 14 deletions.
71 changes: 59 additions & 12 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 9 additions & 1 deletion src/ControllerMethod.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,15 @@ class ControllerMethod {
* @param array<int, string> $responseDescription
* @param string[] $description
*/
public function __construct(public array $parameters, public array $responses, public array $returns, public array $responseDescription, public array $description, public ?string $summary, public bool $isDeprecated) {
public function __construct(
public array $parameters,
public array $responses,
public array $returns,
public array $responseDescription,
public array $description,
public ?string $summary,
public bool $isDeprecated,
) {
}

public static function parse(string $context, array $definitions, ClassMethod $method, bool $isAdmin, bool $isDeprecated, bool $isPasswordConfirmation): ControllerMethod {
Expand Down
8 changes: 7 additions & 1 deletion src/ControllerMethodParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,13 @@
class ControllerMethodParameter {
public OpenApiType $type;

public function __construct(string $context, array $definitions, public string $name, public Param $methodParameter, public ?OpenApiType $docType) {
public function __construct(
string $context,
array $definitions,
public string $name,
public Param $methodParameter,
public ?OpenApiType $docType,
) {
if ($docType != null) {
$this->type = $this->docType;
} else {
Expand Down

0 comments on commit 2acf86d

Please sign in to comment.