Skip to content

Commit

Permalink
Format code by the latest cs-fixer. (#6617)
Browse files Browse the repository at this point in the history
  • Loading branch information
limingxinleo authored Mar 23, 2024
1 parent e0e14a3 commit 31f9b25
Show file tree
Hide file tree
Showing 58 changed files with 86 additions and 27 deletions.
1 change: 1 addition & 0 deletions src/Annotation/AdditionalProperties.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/AnnotationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Hyperf\Di\Annotation\AnnotationCollector;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Attachable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Components.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Contact.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/CookieParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Delete.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Discriminator.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Examples.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/ExternalDocumentation.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Flow.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Get.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Head.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/HeaderParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/HyperfServer.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Info.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Items.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/JsonContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/License.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Link.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/MediaType.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/MultipleAnnotationTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Hyperf\Di\Annotation\AnnotationCollector;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/OpenApi.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Options.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Parameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Patch.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/PathItem.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/PathParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Post.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
7 changes: 4 additions & 3 deletions src/Annotation/Property.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand All @@ -24,7 +25,7 @@ class Property extends \OpenApi\Attributes\Property
{
public function __construct(
?string $property = null,
object|string|null $ref = null,
null|object|string $ref = null,
?string $schema = null,
?string $title = null,
?string $description = null,
Expand All @@ -47,7 +48,7 @@ public function __construct(
?int $minItems = null,
?bool $uniqueItems = null,
?string $pattern = null,
array|string|null $enum = null,
null|array|string $enum = null,
?Discriminator $discriminator = null,
?bool $readOnly = null,
?bool $writeOnly = null,
Expand All @@ -59,7 +60,7 @@ public function __construct(
?array $allOf = null,
?array $anyOf = null,
?array $oneOf = null,
AdditionalProperties|bool|null $additionalProperties = null,
null|AdditionalProperties|bool $additionalProperties = null,
?array $x = null,
?array $attachables = null,
public mixed $rules = null,
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Put.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
5 changes: 3 additions & 2 deletions src/Annotation/QueryParameter.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand All @@ -32,11 +33,11 @@ public function __construct(
?bool $required = null,
?bool $deprecated = null,
?bool $allowEmptyValue = null,
object|string|null $ref = null,
null|object|string $ref = null,
?Schema $schema = null,
mixed $example = Generator::UNDEFINED,
?array $examples = null,
JsonContent|array|Attachable|XmlContent|null $content = null,
null|array|Attachable|JsonContent|XmlContent $content = null,
?string $style = null,
?bool $explode = null,
?bool $allowReserved = null,
Expand Down
5 changes: 3 additions & 2 deletions src/Annotation/RequestBody.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand All @@ -25,11 +26,11 @@ class RequestBody extends \OpenApi\Attributes\RequestBody implements AnnotationI
public mixed $_content = null;

public function __construct(
object|string|null $ref = null,
null|object|string $ref = null,
?string $request = null,
?string $description = null,
?bool $required = null,
JsonContent|array|Attachable|XmlContent|null $content = null,
null|array|Attachable|JsonContent|XmlContent $content = null,
?array $x = null,
?array $attachables = null
) {
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Response.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/SecurityScheme.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Server.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/ServerVariable.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Tag.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Trace.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/Xml.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
1 change: 1 addition & 0 deletions src/Annotation/XmlContent.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
* @contact [email protected]
* @license https://github.com/hyperf/hyperf/blob/master/LICENSE
*/

namespace Hyperf\Swagger\Annotation;

use Attribute;
Expand Down
Loading

0 comments on commit 31f9b25

Please sign in to comment.