Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: Bump ajv from 6.12.2 to 6.12.6 #86

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/Constants/ControllerRating.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ public static function getRatingCodeByNumber(int $index): ?string

/**
* Get the human readable version of a given code.
*
* @param string $code
* @return string
*/
Expand Down
4 changes: 3 additions & 1 deletion app/GraphQL/Scalars/DateTimeZulu.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@ class DateTimeZulu extends ScalarType
/**
* Serialize an internal value, ensuring it is a valid datetime string.
*
* @param \Carbon\Carbon|string $value
* @param \Carbon\Carbon|string $value
* @return string
*
* @throws
*/
public function serialize($value): string
Expand All @@ -35,6 +36,7 @@ public function serialize($value): string
*
* @param mixed $value
* @return \Carbon\Carbon
*
* @throws
*/
public function parseValue($value): Carbon
Expand Down
31 changes: 17 additions & 14 deletions app/Modules/Availability/Mutations/AvailabilityHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ class AvailabilityHandler
/**
* Return a value for the field.
*
* @param null $rootValue Usually contains the result returned from the parent field. In this case,
* it is always `null`.
* @param mixed[] $args The arguments that were passed into the field.
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself, such as the execution state, the field name,
* path to the field from the root, and more.
* @param null $rootValue Usually contains the result returned from the parent field. In this case,
* it is always `null`.
* @param mixed[] $args The arguments that were passed into the field.
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself, such as the execution state, the field name,
* path to the field from the root, and more.
* @return Availability
*
* @throws BindingResolutionException
*/
public function update($rootValue, array $args, GraphQLContext $context, ResolveInfo $resolveInfo)
Expand All @@ -39,12 +40,13 @@ public function update($rootValue, array $args, GraphQLContext $context, Resolve
* Return a value for the field.
*
* @param null $rootValue Usually contains the result returned from the parent field. In this case,
* it is always `null`.
* it is always `null`.
* @param mixed[] $args The arguments that were passed into the field.
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself, such as the execution state,
* the field name, path to the field from the root, and more.
* the field name, path to the field from the root, and more.
* @return mixed
*
* @throws OverlappingAvailabilityException
* @throws BindingResolutionException
*/
Expand All @@ -60,13 +62,14 @@ public function create($rootValue, array $args, GraphQLContext $context, Resolve
/**
* Remove date range.
*
* @param null $rootValue Usually contains the result returned from the parent field. In this case,
* it is always `null`.
* @param mixed[] $args The arguments that were passed into the field.
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself, such as the execution state,
* the field name, path to the field from the root, and more.
* @param null $rootValue Usually contains the result returned from the parent field. In this case,
* it is always `null`.
* @param mixed[] $args The arguments that were passed into the field.
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself, such as the execution state,
* the field name, path to the field from the root, and more.
* @return mixed
*
* @throws BindingResolutionException
*/
public function remove($rootValue, array $args, GraphQLContext $context, ResolveInfo $resolveInfo)
Expand Down
9 changes: 5 additions & 4 deletions app/Modules/Availability/Services/AvailabilityService.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,12 @@ public function __construct(User $user)
/**
* Validate that two given times are valid within the context of other availability.
*
* @param Carbon $from
* @param Carbon $to
* @param User $user - User
* @param int $doNotCheck - Pass in an int to exclude from the search
* @param Carbon $from
* @param Carbon $to
* @param User $user - User
* @param int $doNotCheck - Pass in an int to exclude from the search
* @return bool
*
* @throws AvailabilityMinimumTimeException
* @throws AvailabilityInPastException
* @throws \Throwable
Expand Down
1 change: 1 addition & 0 deletions app/Modules/Bookings/Mutations/CreateBookingHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class CreateBookingHandler
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself.
* @return mixed
*
* @throws RatingRequirementNotMetException
* @throws SpecialEndorsementNotAttainedException
* @throws OverlappingBookingException
Expand Down
1 change: 1 addition & 0 deletions app/Modules/Bookings/Mutations/UpdateBookingHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ class UpdateBookingHandler
* @param mixed[] $args The arguments that were passed into the field.
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself.
*
* @throws OverlappingBookingException
*/
public function __invoke($rootValue, array $args, GraphQLContext $context, ResolveInfo $resolveInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ class GrantSoloEndorsementHandler
* @param mixed[] $args The arguments that were passed into the field.
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself.
*
* @throws OverlappingBookingException
*/
public function __invoke($rootValue, array $args, GraphQLContext $context, ResolveInfo $resolveInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ class GrantSpecialEndorsementHandler
* @param \Nuwave\Lighthouse\Support\Contracts\GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param \GraphQL\Type\Definition\ResolveInfo $resolveInfo Information about the query itself.
* @return mixed
*
* @throws EndorsementAlreadyGrantedException
*/
public function __invoke($rootValue, array $args, GraphQLContext $context, ResolveInfo $resolveInfo)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ public function __construct(User $user)
* @param \Nuwave\Lighthouse\Support\Contracts\GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param \GraphQL\Type\Definition\ResolveInfo $resolveInfo Information about the query itself.
* @return mixed
*
* @throws EndorsementRequestAlreadyExistsException
* @throws EndorsementAlreadyGrantedException
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ public function __construct(User $user)
* @param GraphQLContext $context Arbitrary data that is shared between all fields of a single query.
* @param ResolveInfo $resolveInfo Information about the query itself.
* @return mixed
*
* @throws \InvalidArgumentException
*/
public function __invoke($rootValue, array $args, GraphQLContext $context, ResolveInfo $resolveInfo)
Expand Down
24 changes: 12 additions & 12 deletions app/Modules/SessionRequest/SessionRequestService.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ public function __construct(BookingsService $bookingsService)
/**
* Creates a session request for a given user on a particular position.
*
* @param User $user
* @param Position $position
* @param User $user
* @param Position $position
* @return SessionRequest
*/
public function createSessionRequest(User $user, Position $position): SessionRequest
Expand All @@ -45,7 +45,7 @@ public function createSessionRequest(User $user, Position $position): SessionReq
/**
* Revokes a session request for a given session which hasn't been accepted.
*
* @param SessionRequest $sessionRequest
* @param SessionRequest $sessionRequest
* @return bool
*/
public function revokeSessionRequest(SessionRequest $sessionRequest): bool
Expand All @@ -58,13 +58,13 @@ public function revokeSessionRequest(SessionRequest $sessionRequest): bool
/**
* Accept a session request with the given times.
*
* @param SessionRequest $sessionRequest
* @param User $acceptingUser
* @param Carbon $sessionDateFrom
* @param Carbon $sessionDateTo
* @param Carbon $bookingDateFrom
* @param Carbon $bookingDateTo
* @param int $networkType
* @param SessionRequest $sessionRequest
* @param User $acceptingUser
* @param Carbon $sessionDateFrom
* @param Carbon $sessionDateTo
* @param Carbon $bookingDateFrom
* @param Carbon $bookingDateTo
* @param int $networkType
* @return SessionRequest
*/
public function acceptSessionRequest(
Expand Down Expand Up @@ -106,8 +106,8 @@ public function acceptSessionRequest(
/**
* Cancel a session request which has already been accepted.
*
* @param SessionRequest $sessionRequest
* @param string $reason
* @param SessionRequest $sessionRequest
* @param string $reason
* @return SessionRequest
*/
public function cancelSession(SessionRequest $sessionRequest, string $reason): SessionRequest
Expand Down
4 changes: 2 additions & 2 deletions app/Rules/UserExistsRule.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class UserExistsRule implements Rule
/**
* Determine if the validation rule passes.
*
* @param string $attribute
* @param mixed $value
* @param string $attribute
* @param mixed $value
* @return bool
*/
public function passes($attribute, $value)
Expand Down
1 change: 1 addition & 0 deletions tests/Feature/Booking/BookingCreateTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,6 +514,7 @@ public function testItCanDeleteABooking()

/**
* Setup a test case to pass the rating check for testing overlapping.
*
* @param string $callsign
*/
private function bypassRatingChecks($callsign = 'EGGD_TWR')
Expand Down
20 changes: 10 additions & 10 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1120,9 +1120,9 @@ ajv-keywords@^3.1.0, ajv-keywords@^3.4.1:
integrity sha512-RO1ibKvd27e6FEShVFfPALuHI3WjSVNeK5FIsmme/LYRNxjKuNj+Dt7bucLa6NdSv3JcVTyMlm9kGR84z1XpaQ==

ajv@^6.1.0, ajv@^6.10.2, ajv@^6.12.0, ajv@^6.5.5:
version "6.12.2"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.2.tgz#c629c5eced17baf314437918d2da88c99d5958cd"
integrity sha512-k+V+hzjm5q/Mr8ef/1Y9goCmlsK4I6Sm74teeyGvFk1XrOsbsKLjEdrvny42CZ+a8sXbk8KWpY/bDwS+FLL2UQ==
version "6.12.6"
resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4"
integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
dependencies:
fast-deep-equal "^3.1.1"
fast-json-stable-stringify "^2.0.0"
Expand Down Expand Up @@ -2057,7 +2057,7 @@ commander@~2.19.0:
resolved "https://registry.yarnpkg.com/commander/-/commander-2.19.0.tgz#f6198aa84e5b83c46054b94ddedbfed5ee9ff12a"
integrity sha512-6tvAOO+D6OENvRAh524Dh9jcfKTYDQAqvqezbCW82xj5X0pSrcpxtvRKHLG0yBY6SD7PSDrJaj+0AiOcKVd1Xg==

commitizen@^4.0.3, commitizen@^4.1.2:
commitizen@^4.0.3:
version "4.1.2"
resolved "https://registry.yarnpkg.com/commitizen/-/commitizen-4.1.2.tgz#6095eb825fd3f0d3611df88e6803c69b23307e9a"
integrity sha512-LBxTQKHbVgroMz9ohpm86N+GfJobonGyvDc3zBGdZazbwCLz2tqLa48Rf2TnAdKx7/06W1i1R3SXUt5QW97qVQ==
Expand Down Expand Up @@ -3155,9 +3155,9 @@ extsprintf@^1.2.0:
integrity sha1-4mifjzVvrWLMplo6kcXfX5VRaS8=

fast-deep-equal@^3.1.1:
version "3.1.1"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.1.tgz#545145077c501491e33b15ec408c294376e94ae4"
integrity sha512-8UEa58QDLauDNfpbrX55Q9jrGHThw2ZMdOky5Gl1CDtVeJDPVrG4Jxx1N8jw2gkWaff5UUuX1KJd+9zGe2B+ZA==
version "3.1.3"
resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525"
integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==

fast-glob@^2.0.2:
version "2.2.7"
Expand Down Expand Up @@ -7811,9 +7811,9 @@ upper-case@^1.1.1:
integrity sha1-9rRQHC7EzdJrp4vnIilh3ndiFZg=

uri-js@^4.2.2:
version "4.2.2"
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.2.2.tgz#94c540e1ff772956e2299507c010aea6c8838eb0"
integrity sha512-KY9Frmirql91X2Qgjry0Wd4Y+YTdrdZheS8TFwvkbLWf/G5KNJDCh6pKL5OZctEW4+0Baa5idK2ZQuELRwPznQ==
version "4.4.1"
resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e"
integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==
dependencies:
punycode "^2.1.0"

Expand Down