Skip to content

Commit

Permalink
PHPCS fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
kedarkhaire committed Oct 15, 2024
1 parent 7128cb1 commit 2a2d499
Show file tree
Hide file tree
Showing 36 changed files with 69 additions and 36 deletions.
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/AcceptedRatePlanNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Apigee\Edge\Api\ApigeeX\Entity\AcceptedRatePlanInterface;
use Apigee\Edge\Api\Monetization\Normalizer\EntityNormalizer;
use Apigee\Edge\Api\Monetization\Utility\TimezoneFixerHelperTrait;
use ArrayObject;

class AcceptedRatePlanNormalizer extends EntityNormalizer
{
Expand All @@ -32,7 +33,7 @@ class AcceptedRatePlanNormalizer extends EntityNormalizer
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var AcceptedRatePlanInterface $object */
/** @var object $normalized */
Expand Down
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/ApiProductNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Apigee\Edge\Api\ApigeeX\Entity\ApiProductInterface;
use Apigee\Edge\Api\Monetization\NameConverter\ApiPackageNameConverter;
use Apigee\Edge\Api\Monetization\Normalizer\EntityNormalizer;
use ArrayObject;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
Expand Down Expand Up @@ -48,7 +49,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
$normalized = parent::normalize($object, $format, $context);

Expand Down
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/AppGroupMembershipNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
namespace Apigee\Edge\Api\ApigeeX\Normalizer;

use Apigee\Edge\Api\ApigeeX\Structure\AppGroupMembership;
use ArrayObject;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

class AppGroupMembershipNormalizer implements NormalizerInterface
Expand All @@ -29,7 +30,7 @@ class AppGroupMembershipNormalizer implements NormalizerInterface
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
$normalized = [];

Expand Down
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/AppNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\Management\Entity\AppInterface;
use Apigee\Edge\Normalizer\ObjectNormalizer;
use ArrayObject;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

/**
Expand All @@ -41,7 +42,7 @@ public function supportsNormalization($data, $format = null)
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/BillingTypeNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\ApigeeX\Entity\BillingTypeInterface;
use Apigee\Edge\Api\Monetization\Normalizer\EntityNormalizer;
use ArrayObject;

class BillingTypeNormalizer extends EntityNormalizer
{
Expand All @@ -29,7 +30,7 @@ class BillingTypeNormalizer extends EntityNormalizer
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var BillingTypeInterface $object */
/** @var object $normalized */
Expand Down
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/RatePlanNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
use Apigee\Edge\Api\Monetization\Normalizer\EntityNormalizer;
use Apigee\Edge\Api\Monetization\Utility\TimezoneFixerHelperTrait;
use Apigee\Edge\Exception\UninitializedPropertyException;
use ArrayObject;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
Expand Down Expand Up @@ -52,7 +53,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/RatePlanNormalizerFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Apigee\Edge\Api\Monetization\Normalizer\CompanyRatePlanNormalizer;
use Apigee\Edge\Api\Monetization\Normalizer\DeveloperCategoryRatePlanNormalizer;
use Apigee\Edge\Api\Monetization\Normalizer\DeveloperRatePlanNormalizer;
use ArrayObject;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
use Symfony\Component\Serializer\SerializerAwareInterface;
use Symfony\Component\Serializer\SerializerAwareTrait;
Expand Down Expand Up @@ -56,7 +57,7 @@ public function __construct(array $normalizers = [])
* @psalm-suppress InvalidNullableReturnType - There are going to be at
* least one normalizer always that can normalize data here.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
foreach ($this->normalizers as $normalizer) {
// Return the result from the first denormalizer that can
Expand Down
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/RatePlanRateNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
use Apigee\Edge\Api\Monetization\Structure\RatePlanRate;
use Apigee\Edge\Api\Monetization\Structure\RatePlanRateRevShare;
use Apigee\Edge\Normalizer\ObjectNormalizer;
use ArrayObject;

class RatePlanRateNormalizer extends ObjectNormalizer
{
Expand All @@ -30,7 +31,7 @@ class RatePlanRateNormalizer extends ObjectNormalizer
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
3 changes: 2 additions & 1 deletion src/Api/ApigeeX/Normalizer/StandardRatePlanNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\ApigeeX\Entity\RatePlanInterface;
use Apigee\Edge\Api\ApigeeX\Entity\StandardRatePlanInterface;
use ArrayObject;

class StandardRatePlanNormalizer extends RatePlanNormalizer
{
Expand All @@ -29,7 +30,7 @@ class StandardRatePlanNormalizer extends RatePlanNormalizer
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
3 changes: 2 additions & 1 deletion src/Api/Management/Normalizer/AppCredentialNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\Management\Entity\AppCredentialInterface;
use Apigee\Edge\Normalizer\ObjectNormalizer;
use ArrayObject;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

/**
Expand All @@ -41,7 +42,7 @@ public function supportsNormalization($data, $format = null)
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
3 changes: 2 additions & 1 deletion src/Api/Management/Normalizer/AppNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\Management\Entity\AppInterface;
use Apigee\Edge\Normalizer\ObjectNormalizer;
use ArrayObject;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

/**
Expand All @@ -41,7 +42,7 @@ public function supportsNormalization($data, $format = null)
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class CompanyMembershipNormalizer implements NormalizerInterface
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
$normalized = [
'developer' => [],
Expand Down
3 changes: 2 additions & 1 deletion src/Api/Management/Query/StatsQueryNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
namespace Apigee\Edge\Api\Management\Query;

use Apigee\Edge\Serializer\JsonEncoder;
use ArrayObject;
use DateTimeZone;
use Symfony\Component\Serializer\Normalizer\AbstractNormalizer;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;
Expand Down Expand Up @@ -52,7 +53,7 @@ public function __construct()
/**
* {@inheritdoc}
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var StatsQueryInterface $object */
// Transform the object to JSON and back to an array to keep boolean values as boolean.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\Monetization\Entity\AcceptedRatePlanInterface;
use Apigee\Edge\Api\Monetization\Utility\TimezoneFixerHelperTrait;
use ArrayObject;

class AcceptedRatePlanNormalizer extends EntityNormalizer
{
Expand All @@ -31,7 +32,7 @@ class AcceptedRatePlanNormalizer extends EntityNormalizer
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var AcceptedRatePlanInterface $object */
/** @var object $normalized */
Expand Down
3 changes: 2 additions & 1 deletion src/Api/Monetization/Normalizer/ApiPackageNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\Monetization\Entity\ApiPackageInterface;
use Apigee\Edge\Api\Monetization\NameConverter\ApiPackageNameConverter;
use ArrayObject;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
Expand Down Expand Up @@ -47,7 +48,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
$normalized = (array) parent::normalize($object, $format, $context);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\Monetization\NameConverter\CompanyRatePlanNameConverter;
use Apigee\Edge\Api\Monetization\Structure\CompanyPaymentTransaction;
use ArrayObject;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
Expand Down Expand Up @@ -47,7 +48,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
3 changes: 2 additions & 1 deletion src/Api/Monetization/Normalizer/DateTimeZoneNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@

namespace Apigee\Edge\Api\Monetization\Normalizer;

use ArrayObject;
use DateTimeZone;
use Symfony\Component\Serializer\Normalizer\NormalizerInterface;

Expand All @@ -26,7 +27,7 @@ class DateTimeZoneNormalizer implements NormalizerInterface
/**
* {@inheritdoc}
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
return $object->getName();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\Monetization\Entity\DeveloperCategoryRatePlanInterface;
use Apigee\Edge\Api\Monetization\Entity\RatePlanInterface;
use ArrayObject;

class DeveloperCategoryRatePlanNormalizer extends RatePlanNormalizer
{
Expand All @@ -29,7 +30,7 @@ class DeveloperCategoryRatePlanNormalizer extends RatePlanNormalizer
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
namespace Apigee\Edge\Api\Monetization\Normalizer;

use Apigee\Edge\Api\Monetization\Structure\DeveloperPaymentTransaction;
use ArrayObject;

class DeveloperPaymentTransactionNormalizer extends PaymentTransactionNormalizer
{
Expand All @@ -28,7 +29,7 @@ class DeveloperPaymentTransactionNormalizer extends PaymentTransactionNormalizer
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
3 changes: 2 additions & 1 deletion src/Api/Monetization/Normalizer/EntityNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@

use Apigee\Edge\Api\Monetization\Structure\NestedObjectReferenceInterface;
use Apigee\Edge\Normalizer\ObjectNormalizer;
use ArrayObject;
use ReflectionObject;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
Expand Down Expand Up @@ -63,7 +64,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
* @psalm-suppress InvalidReturnType stdClass is also an object.
* @psalm-suppress InvalidPropertyFetch.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
$normalized = (array) parent::normalize($object, $format, $context);

Expand Down
3 changes: 2 additions & 1 deletion src/Api/Monetization/Normalizer/LegalEntityNormalizer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
use Apigee\Edge\Api\Monetization\Entity\DeveloperInterface;
use Apigee\Edge\Api\Monetization\Entity\LegalEntityInterface;
use Apigee\Edge\Api\Monetization\NameConverter\LegalEntityNameConvert;
use ArrayObject;
use Symfony\Component\PropertyAccess\PropertyAccessorInterface;
use Symfony\Component\PropertyInfo\PropertyTypeExtractorInterface;
use Symfony\Component\Serializer\Mapping\Factory\ClassMetadataFactoryInterface;
Expand Down Expand Up @@ -49,7 +50,7 @@ public function __construct(?ClassMetadataFactoryInterface $classMetadataFactory
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
namespace Apigee\Edge\Api\Monetization\Normalizer;

use Apigee\Edge\Api\Monetization\Entity\RatePlanInterface;
use ArrayObject;

abstract class LegalEntityRatePlanNormalizer extends RatePlanNormalizer
{
Expand All @@ -28,7 +29,7 @@ abstract class LegalEntityRatePlanNormalizer extends RatePlanNormalizer
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@

namespace Apigee\Edge\Api\Monetization\Normalizer;

use ArrayObject;

abstract class LegalEntityReportDefinitionNormalizer extends ReportDefinitionNormalizer
{
/**
Expand All @@ -26,7 +28,7 @@ abstract class LegalEntityReportDefinitionNormalizer extends ReportDefinitionNor
* @psalm-suppress InvalidReturnType Returning an object here is required
* for creating a valid Apigee Edge request.
*/
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|\ArrayObject|null
public function normalize($object, $format = null, array $context = []): array|string|int|float|bool|ArrayObject|null
{
/** @var object $normalized */
$normalized = parent::normalize($object, $format, $context);
Expand Down
Loading

0 comments on commit 2a2d499

Please sign in to comment.