Skip to content

Commit

Permalink
Autoformat src and tests to PER using php-cs-fixer
Browse files Browse the repository at this point in the history
  • Loading branch information
Zombaya committed Mar 27, 2023
1 parent 71fccec commit e04458e
Show file tree
Hide file tree
Showing 1,198 changed files with 4,733 additions and 1,865 deletions.
5 changes: 4 additions & 1 deletion src/ACMPCA/ACMPCAClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\ACMPCA;

use Aws\AwsClient;
Expand Down Expand Up @@ -52,4 +53,6 @@
* @method \Aws\Result updateCertificateAuthority(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateCertificateAuthorityAsync(array $args = [])
*/
class ACMPCAClient extends AwsClient {}
class ACMPCAClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/ACMPCA/Exception/ACMPCAException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\ACMPCA\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AWS Certificate Manager Private Certificate Authority** service.
*/
class ACMPCAException extends AwsException {}
class ACMPCAException extends AwsException
{
}
5 changes: 4 additions & 1 deletion src/ARCZonalShift/ARCZonalShiftClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\ARCZonalShift;

use Aws\AwsClient;
Expand All @@ -18,4 +19,6 @@
* @method \Aws\Result updateZonalShift(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateZonalShiftAsync(array $args = [])
*/
class ARCZonalShiftClient extends AwsClient {}
class ARCZonalShiftClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/ARCZonalShift/Exception/ARCZonalShiftException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\ARCZonalShift\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AWS ARC - Zonal Shift** service.
*/
class ARCZonalShiftException extends AwsException {}
class ARCZonalShiftException extends AwsException
{
}
1 change: 1 addition & 0 deletions src/AbstractConfigurationProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws;

use GuzzleHttp\Promise;
Expand Down
5 changes: 4 additions & 1 deletion src/AccessAnalyzer/AccessAnalyzerClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\AccessAnalyzer;

use Aws\AwsClient;
Expand Down Expand Up @@ -62,4 +63,6 @@
* @method \Aws\Result validatePolicy(array $args = [])
* @method \GuzzleHttp\Promise\Promise validatePolicyAsync(array $args = [])
*/
class AccessAnalyzerClient extends AwsClient {}
class AccessAnalyzerClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/AccessAnalyzer/Exception/AccessAnalyzerException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\AccessAnalyzer\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **Access Analyzer** service.
*/
class AccessAnalyzerException extends AwsException {}
class AccessAnalyzerException extends AwsException
{
}
5 changes: 4 additions & 1 deletion src/Account/AccountClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Account;

use Aws\AwsClient;
Expand All @@ -24,4 +25,6 @@
* @method \Aws\Result putContactInformation(array $args = [])
* @method \GuzzleHttp\Promise\Promise putContactInformationAsync(array $args = [])
*/
class AccountClient extends AwsClient {}
class AccountClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/Account/Exception/AccountException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\Account\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AWS Account** service.
*/
class AccountException extends AwsException {}
class AccountException extends AwsException
{
}
5 changes: 4 additions & 1 deletion src/Acm/AcmClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Acm;

use Aws\AwsClient;
Expand Down Expand Up @@ -37,4 +38,6 @@
* @method \Aws\Result updateCertificateOptions(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateCertificateOptionsAsync(array $args = [])
*/
class AcmClient extends AwsClient {}
class AcmClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/Acm/Exception/AcmException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\Acm\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AWS Certificate Manager** service.
*/
class AcmException extends AwsException {}
class AcmException extends AwsException
{
}
5 changes: 4 additions & 1 deletion src/AlexaForBusiness/AlexaForBusinessClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\AlexaForBusiness;

use Aws\AwsClient;
Expand Down Expand Up @@ -192,4 +193,6 @@
* @method \Aws\Result updateSkillGroup(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateSkillGroupAsync(array $args = [])
*/
class AlexaForBusinessClient extends AwsClient {}
class AlexaForBusinessClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/AlexaForBusiness/Exception/AlexaForBusinessException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\AlexaForBusiness\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **Alexa For Business** service.
*/
class AlexaForBusinessException extends AwsException {}
class AlexaForBusinessException extends AwsException
{
}
5 changes: 4 additions & 1 deletion src/Amplify/AmplifyClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Amplify;

use Aws\AwsClient;
Expand Down Expand Up @@ -80,4 +81,6 @@
* @method \Aws\Result updateWebhook(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateWebhookAsync(array $args = [])
*/
class AmplifyClient extends AwsClient {}
class AmplifyClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/Amplify/Exception/AmplifyException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\Amplify\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AWS Amplify** service.
*/
class AmplifyException extends AwsException {}
class AmplifyException extends AwsException
{
}
5 changes: 4 additions & 1 deletion src/AmplifyBackend/AmplifyBackendClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\AmplifyBackend;

use Aws\AwsClient;
Expand Down Expand Up @@ -68,4 +69,6 @@
* @method \Aws\Result updateBackendStorage(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateBackendStorageAsync(array $args = [])
*/
class AmplifyBackendClient extends AwsClient {}
class AmplifyBackendClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/AmplifyBackend/Exception/AmplifyBackendException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\AmplifyBackend\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AmplifyBackend** service.
*/
class AmplifyBackendException extends AwsException {}
class AmplifyBackendException extends AwsException
{
}
5 changes: 4 additions & 1 deletion src/AmplifyUIBuilder/AmplifyUIBuilderClient.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\AmplifyUIBuilder;

use Aws\AwsClient;
Expand Down Expand Up @@ -50,4 +51,6 @@
* @method \Aws\Result updateTheme(array $args = [])
* @method \GuzzleHttp\Promise\Promise updateThemeAsync(array $args = [])
*/
class AmplifyUIBuilderClient extends AwsClient {}
class AmplifyUIBuilderClient extends AwsClient
{
}
5 changes: 4 additions & 1 deletion src/AmplifyUIBuilder/Exception/AmplifyUIBuilderException.php
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
<?php

namespace Aws\AmplifyUIBuilder\Exception;

use Aws\Exception\AwsException;

/**
* Represents an error interacting with the **AWS Amplify UI Builder** service.
*/
class AmplifyUIBuilderException extends AwsException {}
class AmplifyUIBuilderException extends AwsException
{
}
1 change: 1 addition & 0 deletions src/Api/AbstractModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Api/ApiProvider.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api;

use Aws\Exception\UnresolvedApiException;
Expand Down
4 changes: 2 additions & 2 deletions src/Api/DateTimeResult.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ public static function fromTimestamp($timestamp, $expectedFormat = null)
} catch (Exception $exception) {
return self::fromEpoch($timestamp);
}
} else if ($expectedFormat == 'unixTimestamp') {
} elseif ($expectedFormat == 'unixTimestamp') {
try {
return self::fromEpoch($timestamp);
} catch (Exception $exception) {
return self::fromISO8601($timestamp);
}
} else if (\Aws\is_valid_epoch($timestamp)) {
} elseif (\Aws\is_valid_epoch($timestamp)) {
return self::fromEpoch($timestamp);
}
return self::fromISO8601($timestamp);
Expand Down
1 change: 1 addition & 0 deletions src/Api/DocModel.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api;

/**
Expand Down
6 changes: 2 additions & 4 deletions src/Api/ErrorParser/AbstractErrorParser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api\ErrorParser;

use Aws\Api\Parser\MetadataParserTrait;
Expand Down Expand Up @@ -52,13 +53,10 @@ protected function populateShape(
$data['body'] = [];

if (!empty($command) && !empty($this->api)) {

// If modeled error code is indicated, check for known error shape
if (!empty($data['code'])) {

$errors = $this->api->getOperation($command->getName())->getErrors();
foreach ($errors as $key => $error) {

// If error code matches a known error shape, populate the body
if ($data['code'] == $error['name']
&& $error instanceof StructureShape
Expand Down Expand Up @@ -92,4 +90,4 @@ protected function populateShape(

return $data;
}
}
}
1 change: 1 addition & 0 deletions src/Api/ErrorParser/JsonParserTrait.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api\ErrorParser;

use Aws\Api\Parser\PayloadParserTrait;
Expand Down
1 change: 1 addition & 0 deletions src/Api/ErrorParser/JsonRpcErrorParser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api\ErrorParser;

use Aws\Api\Parser\JsonParser;
Expand Down
1 change: 1 addition & 0 deletions src/Api/ErrorParser/RestJsonErrorParser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api\ErrorParser;

use Aws\Api\Parser\JsonParser;
Expand Down
5 changes: 3 additions & 2 deletions src/Api/ErrorParser/XmlErrorParser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api\ErrorParser;

use Aws\Api\Parser\PayloadParserTrait;
Expand Down Expand Up @@ -88,8 +89,8 @@ protected function registerNamespacePrefix(\SimpleXMLElement $element)
$namespaces = $element->getDocNamespaces();
if (!isset($namespaces[''])) {
return '';
}
}

// Account for the default namespace being defined and PHP not
// being able to handle it :(.
$element->registerXPathNamespace('ns', $namespaces['']);
Expand Down
1 change: 1 addition & 0 deletions src/Api/ListShape.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api;

/**
Expand Down
1 change: 1 addition & 0 deletions src/Api/MapShape.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api;

/**
Expand Down
3 changes: 2 additions & 1 deletion src/Api/Operation.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api;

/**
Expand Down Expand Up @@ -129,7 +130,7 @@ private function setContextParams()
$members = $this->getInput()->getMembers();
$contextParams = [];

foreach($members as $name => $shape) {
foreach ($members as $name => $shape) {
if (!empty($contextParam = $shape->getContextParam())) {
$contextParams[$contextParam['name']] = [
'shape' => $name,
Expand Down
1 change: 1 addition & 0 deletions src/Api/Parser/AbstractParser.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?php

namespace Aws\Api\Parser;

use Aws\Api\Service;
Expand Down
Loading

0 comments on commit e04458e

Please sign in to comment.