Skip to content

Commit 1266d7c

Browse files
fixed styling issue
1 parent 5325fed commit 1266d7c

44 files changed

Lines changed: 176 additions & 178 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

src/Api/ApigeeX/Controller/AcceptedRatePlanController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ protected function alterRequestPayload(array &$payload, AcceptedRatePlanInterfac
144144
* @param array $query_params
145145
* Additional query parameters.
146146
*
147-
* @return \Apigee\Edge\Api\ApigeeX\Entity\AcceptedRatePlanInterface[]
147+
* @return AcceptedRatePlanInterface[]
148148
*
149149
* @psalm-suppress PossiblyNullArrayOffset - id() does not return null here.
150150
*/

src/Api/ApigeeX/Controller/AcceptedRatePlanControllerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ interface AcceptedRatePlanControllerInterface extends
3535
/**
3636
* Gets all accepted rate plans.
3737
*
38-
* @return \Apigee\Edge\Api\ApigeeX\Entity\AcceptedRatePlanInterface[]
38+
* @return AcceptedRatePlanInterface[]
3939
*/
4040
public function getAllAcceptedRatePlans(): array;
4141

@@ -45,7 +45,7 @@ public function getAllAcceptedRatePlans(): array;
4545
* @param int|null $limit
4646
* @param int $page
4747
*
48-
* @return \Apigee\Edge\Api\ApigeeX\Entity\AcceptedRatePlanInterface[]
48+
* @return AcceptedRatePlanInterface[]
4949
*/
5050
public function getPaginatedAcceptedRatePlanList(?int $limit = null, int $page = 1): array;
5151

src/Api/ApigeeX/Controller/AppControllerInterface.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ public function listAppIds(?PagerInterface $pager = null): array;
8282
* @param PagerInterface|null $pager
8383
* Number of results to return.
8484
*
85-
* @return \Apigee\Edge\Api\Management\Entity\AppInterface[]
85+
* @return AppInterface[]
8686
* An array that can contain both developer- and appgroup app entities.
8787
*/
8888
public function listApps(bool $includeCredentials = false, ?PagerInterface $pager = null): array;
@@ -110,7 +110,7 @@ public function listAppIdsByStatus(string $status, ?PagerInterface $pager = null
110110
* @param PagerInterface|null $pager
111111
* Number of results to return.
112112
*
113-
* @return \Apigee\Edge\Api\Management\Entity\AppInterface[]
113+
* @return AppInterface[]
114114
* An array that can contain both developer- and appgroup app entities.
115115
*/
116116
public function listAppsByStatus(

src/Api/ApigeeX/Controller/PaginationHelperTrait.php

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -112,46 +112,45 @@ protected function listEntities(?PagerInterface $pager = null, array $query_para
112112
$responseArray = reset($responseArray);
113113

114114
return $this->responseArrayToArrayOfEntities($responseArray, $key_provider);
115-
} else {
116-
// Default page size set to 1000, because the AppGroupApps endpoint
117-
// does not return nextPageToken unless a pageSize is specified
118-
// in the request parameters.
119-
$pageSize = 1000;
120-
// Pass an empty pager to load all entities.
121-
$responseArray = $this->getResultsInRange($this->createPager($pageSize), $query_params);
122-
// Check flag 'nextPageToken' to get next items from the list.
123-
$nextPageToken = array_key_exists('nextPageToken', $responseArray) ? $responseArray['nextPageToken'] : false;
124-
// Ignore entity type key from response, ex.: developer, apiproduct,
125-
// etc.
126-
$responseArray = reset($responseArray);
127-
// Appgroup can be empty.
128-
if (empty($responseArray) || !is_array($responseArray)) {
129-
return [];
130-
}
131-
$entities = $this->responseArrayToArrayOfEntities($responseArray, $key_provider);
132-
133-
if ($nextPageToken) {
134-
do {
135-
$tmp = $this->getResultsInRange($this->createPager($pageSize, $nextPageToken), $query_params);
136-
// Check the flag 'nextPageToken' to get next items from the list.
137-
$nextPageToken = array_key_exists('nextPageToken', $tmp) ? $tmp['nextPageToken'] : false;
138-
// Ignore entity type key from response, ex.: developer,
139-
// apiproduct, etc.
140-
$tmp = reset($tmp);
141-
// Remove the first item from the list because it is the same
142-
// as the last item of $entities at this moment.
143-
// Apigee X response always starts with the requested entity
144-
// (pageToken).
145-
array_shift($tmp);
146-
$tmpEntities = $this->responseArrayToArrayOfEntities($tmp, $key_provider);
147-
// The returned entity array is keyed by entity id which
148-
// is unique so we can do this.
149-
$entities += $tmpEntities;
150-
} while ($nextPageToken);
151-
}
152-
153-
return $entities;
154115
}
116+
// Default page size set to 1000, because the AppGroupApps endpoint
117+
// does not return nextPageToken unless a pageSize is specified
118+
// in the request parameters.
119+
$pageSize = 1000;
120+
// Pass an empty pager to load all entities.
121+
$responseArray = $this->getResultsInRange($this->createPager($pageSize), $query_params);
122+
// Check flag 'nextPageToken' to get next items from the list.
123+
$nextPageToken = array_key_exists('nextPageToken', $responseArray) ? $responseArray['nextPageToken'] : false;
124+
// Ignore entity type key from response, ex.: developer, apiproduct,
125+
// etc.
126+
$responseArray = reset($responseArray);
127+
// Appgroup can be empty.
128+
if (empty($responseArray) || !is_array($responseArray)) {
129+
return [];
130+
}
131+
$entities = $this->responseArrayToArrayOfEntities($responseArray, $key_provider);
132+
133+
if ($nextPageToken) {
134+
do {
135+
$tmp = $this->getResultsInRange($this->createPager($pageSize, $nextPageToken), $query_params);
136+
// Check the flag 'nextPageToken' to get next items from the list.
137+
$nextPageToken = array_key_exists('nextPageToken', $tmp) ? $tmp['nextPageToken'] : false;
138+
// Ignore entity type key from response, ex.: developer,
139+
// apiproduct, etc.
140+
$tmp = reset($tmp);
141+
// Remove the first item from the list because it is the same
142+
// as the last item of $entities at this moment.
143+
// Apigee X response always starts with the requested entity
144+
// (pageToken).
145+
array_shift($tmp);
146+
$tmpEntities = $this->responseArrayToArrayOfEntities($tmp, $key_provider);
147+
// The returned entity array is keyed by entity id which
148+
// is unique so we can do this.
149+
$entities += $tmpEntities;
150+
} while ($nextPageToken);
151+
}
152+
153+
return $entities;
155154
}
156155

157156
/**

src/Api/ApigeeX/Controller/PrepaidBalanceController.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ abstract protected function getPrepaidBalanceEndpoint(): UriInterface;
118118
*
119119
* @param string|null $currencyCode
120120
*
121-
* @return \Apigee\Edge\Api\ApigeeX\Entity\PrepaidBalanceInterface[]
121+
* @return PrepaidBalanceInterface[]
122122
*
123123
* @psalm-suppress PossiblyNullArrayOffset - id() does not return null here.
124124
*/

src/Api/ApigeeX/Controller/PrepaidBalanceControllerInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function topUpBalance($amount, $amountnano, string $currencyCode, string
3737
/**
3838
* Gets prepaid balances.
3939
*
40-
* @return \Apigee\Edge\Api\ApigeeX\Entity\PrepaidBalanceInterface[]
40+
* @return PrepaidBalanceInterface[]
4141
*/
4242
public function getPrepaidBalance(): array;
4343
}

src/Api/ApigeeX/Denormalizer/RatePlanDenormalizer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,5 +73,5 @@ public function supportsDenormalization($data, $type, $format = null)
7373
}
7474

7575
return RatePlanInterface::class === $type || $type instanceof RatePlanInterface || in_array(RatePlanInterface::class, class_implements($type) ?: []);
76-
}
76+
}
7777
}

src/Api/ApigeeX/Denormalizer/RatePlanDenormalizerFactory.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@ final class RatePlanDenormalizerFactory implements DenormalizerInterface, Serial
3232
setSerializer as private traitSetSerializer;
3333
}
3434

35-
/** @var \Symfony\Component\Serializer\Normalizer\DenormalizerInterface[] */
35+
/** @var DenormalizerInterface[] */
3636
protected $denormalizers = [];
3737

3838
/**
3939
* RatePlanDenormalizerFactory constructor.
4040
*
41-
* @param \Symfony\Component\Serializer\Normalizer\DenormalizerInterface[] $denormalizers
41+
* @param DenormalizerInterface[] $denormalizers
4242
*/
4343
public function __construct(array $denormalizers = [])
4444
{

src/Api/ApigeeX/Entity/RatePlan.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,16 @@ abstract class RatePlan extends Entity implements RatePlanInterface
6363
*/
6464
protected $package;
6565

66-
/** @var \Apigee\Edge\Api\ApigeeX\Structure\RatePlanXFee[] */
66+
/** @var RatePlanXFee[] */
6767
protected $ratePlanXFee = [];
6868

69-
/** @var \Apigee\Edge\Api\ApigeeX\Structure\FixedRecurringFee[] */
69+
/** @var FixedRecurringFee[] */
7070
protected $fixedRecurringFee = [];
7171

72-
/** @var \Apigee\Edge\Api\ApigeeX\Structure\ConsumptionPricingRate[] */
72+
/** @var ConsumptionPricingRate[] */
7373
protected $consumptionPricingRates = [];
7474

75-
/** @var \Apigee\Edge\Api\ApigeeX\Structure\RevenueShareRates[] */
75+
/** @var RevenueShareRates[] */
7676
protected $revenueShareRates = [];
7777

7878
/**

src/Api/ApigeeX/Entity/RatePlanInterface.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ public function getPackage(): ?ApiProductInterface;
6868
public function setPackage(ApiProductInterface $package): void;
6969

7070
/**
71-
* @return \Apigee\Edge\Api\ApigeeX\Structure\RatePlanXFee[]
71+
* @return RatePlanXFee[]
7272
*/
7373
public function getRatePlanxFee(): array;
7474

@@ -78,7 +78,7 @@ public function getRatePlanxFee(): array;
7878
public function setRatePlanxFee(RatePlanXFee ...$ratePlanXFee): void;
7979

8080
/**
81-
* @return \Apigee\Edge\Api\ApigeeX\Structure\FixedRecurringFee[]
81+
* @return FixedRecurringFee[]
8282
*/
8383
public function getFixedRecurringFee(): array;
8484

@@ -88,7 +88,7 @@ public function getFixedRecurringFee(): array;
8888
public function setFixedRecurringFee(FixedRecurringFee ...$fixedRecurringFee): void;
8989

9090
/**
91-
* @return \Apigee\Edge\Api\ApigeeX\Structure\ConsumptionPricingRate[]
91+
* @return ConsumptionPricingRate[]
9292
*/
9393
public function getConsumptionPricingRates(): array;
9494

@@ -98,7 +98,7 @@ public function getConsumptionPricingRates(): array;
9898
public function setConsumptionPricingRates(ConsumptionPricingRate ...$consumptionPricingRates): void;
9999

100100
/**
101-
* @return \Apigee\Edge\Api\ApigeeX\Structure\RevenueShareRates[]
101+
* @return RevenueShareRates[]
102102
*/
103103
public function getRevenueShareRates(): array;
104104

0 commit comments

Comments
 (0)