Skip to content

Commit 88efed1

Browse files
committed
Autoformat src and tests to PER using php-cs-fixer
1 parent 20e9748 commit 88efed1

File tree

1,198 files changed

+4733
-1865
lines changed

Some content is hidden

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

1,198 files changed

+4733
-1865
lines changed

src/ACMPCA/ACMPCAClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\ACMPCA;
34

45
use Aws\AwsClient;
@@ -52,4 +53,6 @@
5253
* @method \Aws\Result updateCertificateAuthority(array $args = [])
5354
* @method \GuzzleHttp\Promise\Promise updateCertificateAuthorityAsync(array $args = [])
5455
*/
55-
class ACMPCAClient extends AwsClient {}
56+
class ACMPCAClient extends AwsClient
57+
{
58+
}
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\ACMPCA\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **AWS Certificate Manager Private Certificate Authority** service.
89
*/
9-
class ACMPCAException extends AwsException {}
10+
class ACMPCAException extends AwsException
11+
{
12+
}

src/ARCZonalShift/ARCZonalShiftClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\ARCZonalShift;
34

45
use Aws\AwsClient;
@@ -18,4 +19,6 @@
1819
* @method \Aws\Result updateZonalShift(array $args = [])
1920
* @method \GuzzleHttp\Promise\Promise updateZonalShiftAsync(array $args = [])
2021
*/
21-
class ARCZonalShiftClient extends AwsClient {}
22+
class ARCZonalShiftClient extends AwsClient
23+
{
24+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\ARCZonalShift\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **AWS ARC - Zonal Shift** service.
89
*/
9-
class ARCZonalShiftException extends AwsException {}
10+
class ARCZonalShiftException extends AwsException
11+
{
12+
}

src/AbstractConfigurationProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws;
34

45
use GuzzleHttp\Promise;

src/AccessAnalyzer/AccessAnalyzerClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\AccessAnalyzer;
34

45
use Aws\AwsClient;
@@ -62,4 +63,6 @@
6263
* @method \Aws\Result validatePolicy(array $args = [])
6364
* @method \GuzzleHttp\Promise\Promise validatePolicyAsync(array $args = [])
6465
*/
65-
class AccessAnalyzerClient extends AwsClient {}
66+
class AccessAnalyzerClient extends AwsClient
67+
{
68+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\AccessAnalyzer\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **Access Analyzer** service.
89
*/
9-
class AccessAnalyzerException extends AwsException {}
10+
class AccessAnalyzerException extends AwsException
11+
{
12+
}

src/Account/AccountClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Account;
34

45
use Aws\AwsClient;
@@ -24,4 +25,6 @@
2425
* @method \Aws\Result putContactInformation(array $args = [])
2526
* @method \GuzzleHttp\Promise\Promise putContactInformationAsync(array $args = [])
2627
*/
27-
class AccountClient extends AwsClient {}
28+
class AccountClient extends AwsClient
29+
{
30+
}
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\Account\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **AWS Account** service.
89
*/
9-
class AccountException extends AwsException {}
10+
class AccountException extends AwsException
11+
{
12+
}

src/Acm/AcmClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Acm;
34

45
use Aws\AwsClient;
@@ -37,4 +38,6 @@
3738
* @method \Aws\Result updateCertificateOptions(array $args = [])
3839
* @method \GuzzleHttp\Promise\Promise updateCertificateOptionsAsync(array $args = [])
3940
*/
40-
class AcmClient extends AwsClient {}
41+
class AcmClient extends AwsClient
42+
{
43+
}

src/Acm/Exception/AcmException.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\Acm\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **AWS Certificate Manager** service.
89
*/
9-
class AcmException extends AwsException {}
10+
class AcmException extends AwsException
11+
{
12+
}

src/AlexaForBusiness/AlexaForBusinessClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\AlexaForBusiness;
34

45
use Aws\AwsClient;
@@ -192,4 +193,6 @@
192193
* @method \Aws\Result updateSkillGroup(array $args = [])
193194
* @method \GuzzleHttp\Promise\Promise updateSkillGroupAsync(array $args = [])
194195
*/
195-
class AlexaForBusinessClient extends AwsClient {}
196+
class AlexaForBusinessClient extends AwsClient
197+
{
198+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\AlexaForBusiness\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **Alexa For Business** service.
89
*/
9-
class AlexaForBusinessException extends AwsException {}
10+
class AlexaForBusinessException extends AwsException
11+
{
12+
}

src/Amplify/AmplifyClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Amplify;
34

45
use Aws\AwsClient;
@@ -80,4 +81,6 @@
8081
* @method \Aws\Result updateWebhook(array $args = [])
8182
* @method \GuzzleHttp\Promise\Promise updateWebhookAsync(array $args = [])
8283
*/
83-
class AmplifyClient extends AwsClient {}
84+
class AmplifyClient extends AwsClient
85+
{
86+
}
+4-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\Amplify\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **AWS Amplify** service.
89
*/
9-
class AmplifyException extends AwsException {}
10+
class AmplifyException extends AwsException
11+
{
12+
}

src/AmplifyBackend/AmplifyBackendClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\AmplifyBackend;
34

45
use Aws\AwsClient;
@@ -68,4 +69,6 @@
6869
* @method \Aws\Result updateBackendStorage(array $args = [])
6970
* @method \GuzzleHttp\Promise\Promise updateBackendStorageAsync(array $args = [])
7071
*/
71-
class AmplifyBackendClient extends AwsClient {}
72+
class AmplifyBackendClient extends AwsClient
73+
{
74+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\AmplifyBackend\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **AmplifyBackend** service.
89
*/
9-
class AmplifyBackendException extends AwsException {}
10+
class AmplifyBackendException extends AwsException
11+
{
12+
}

src/AmplifyUIBuilder/AmplifyUIBuilderClient.php

+4-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\AmplifyUIBuilder;
34

45
use Aws\AwsClient;
@@ -50,4 +51,6 @@
5051
* @method \Aws\Result updateTheme(array $args = [])
5152
* @method \GuzzleHttp\Promise\Promise updateThemeAsync(array $args = [])
5253
*/
53-
class AmplifyUIBuilderClient extends AwsClient {}
54+
class AmplifyUIBuilderClient extends AwsClient
55+
{
56+
}
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
<?php
2+
23
namespace Aws\AmplifyUIBuilder\Exception;
34

45
use Aws\Exception\AwsException;
56

67
/**
78
* Represents an error interacting with the **AWS Amplify UI Builder** service.
89
*/
9-
class AmplifyUIBuilderException extends AwsException {}
10+
class AmplifyUIBuilderException extends AwsException
11+
{
12+
}

src/Api/AbstractModel.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api;
34

45
/**

src/Api/ApiProvider.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api;
34

45
use Aws\Exception\UnresolvedApiException;

src/Api/DateTimeResult.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,13 +86,13 @@ public static function fromTimestamp($timestamp, $expectedFormat = null)
8686
} catch (Exception $exception) {
8787
return self::fromEpoch($timestamp);
8888
}
89-
} else if ($expectedFormat == 'unixTimestamp') {
89+
} elseif ($expectedFormat == 'unixTimestamp') {
9090
try {
9191
return self::fromEpoch($timestamp);
9292
} catch (Exception $exception) {
9393
return self::fromISO8601($timestamp);
9494
}
95-
} else if (\Aws\is_valid_epoch($timestamp)) {
95+
} elseif (\Aws\is_valid_epoch($timestamp)) {
9696
return self::fromEpoch($timestamp);
9797
}
9898
return self::fromISO8601($timestamp);

src/Api/DocModel.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api;
34

45
/**

src/Api/ErrorParser/AbstractErrorParser.php

+2-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api\ErrorParser;
34

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

5455
if (!empty($command) && !empty($this->api)) {
55-
5656
// If modeled error code is indicated, check for known error shape
5757
if (!empty($data['code'])) {
58-
5958
$errors = $this->api->getOperation($command->getName())->getErrors();
6059
foreach ($errors as $key => $error) {
61-
6260
// If error code matches a known error shape, populate the body
6361
if ($data['code'] == $error['name']
6462
&& $error instanceof StructureShape
@@ -92,4 +90,4 @@ protected function populateShape(
9290

9391
return $data;
9492
}
95-
}
93+
}

src/Api/ErrorParser/JsonParserTrait.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api\ErrorParser;
34

45
use Aws\Api\Parser\PayloadParserTrait;

src/Api/ErrorParser/JsonRpcErrorParser.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api\ErrorParser;
34

45
use Aws\Api\Parser\JsonParser;

src/Api/ErrorParser/RestJsonErrorParser.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api\ErrorParser;
34

45
use Aws\Api\Parser\JsonParser;

src/Api/ErrorParser/XmlErrorParser.php

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api\ErrorParser;
34

45
use Aws\Api\Parser\PayloadParserTrait;
@@ -88,8 +89,8 @@ protected function registerNamespacePrefix(\SimpleXMLElement $element)
8889
$namespaces = $element->getDocNamespaces();
8990
if (!isset($namespaces[''])) {
9091
return '';
91-
}
92-
92+
}
93+
9394
// Account for the default namespace being defined and PHP not
9495
// being able to handle it :(.
9596
$element->registerXPathNamespace('ns', $namespaces['']);

src/Api/ListShape.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api;
34

45
/**

src/Api/MapShape.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api;
34

45
/**

src/Api/Operation.php

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api;
34

45
/**
@@ -129,7 +130,7 @@ private function setContextParams()
129130
$members = $this->getInput()->getMembers();
130131
$contextParams = [];
131132

132-
foreach($members as $name => $shape) {
133+
foreach ($members as $name => $shape) {
133134
if (!empty($contextParam = $shape->getContextParam())) {
134135
$contextParams[$contextParam['name']] = [
135136
'shape' => $name,

src/Api/Parser/AbstractParser.php

+1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace Aws\Api\Parser;
34

45
use Aws\Api\Service;

0 commit comments

Comments
 (0)