Skip to content

Commit

Permalink
Updates coding standards to PSR-12 (#56)
Browse files Browse the repository at this point in the history
  • Loading branch information
typhonius committed Mar 25, 2020
1 parent 26fe5b0 commit 859c6cd
Show file tree
Hide file tree
Showing 4 changed files with 58 additions and 85 deletions.
6 changes: 3 additions & 3 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"require": {
"guzzlehttp/guzzle": "^6.3",
"php": ">=7.1",
"league/oauth2-client": "^2.4"
"league/oauth2-client": "^2.4",
"squizlabs/php_codesniffer": "3.*"
},
"require-dev": {
"php-coveralls/php-coveralls": "^2.0.0",
"phpunit/phpunit": "^7.0",
"squizlabs/php_codesniffer": "^2.7",
"phpstan/phpstan": "^0.11.19",
"phpstan/phpstan-phpunit": "^0.11.2"
},
Expand All @@ -35,7 +35,7 @@
},
"scripts": {
"lint": "php -l ./src/",
"sniff": "./vendor/bin/phpcs -s --standard=PSR2 ./src/ ./tests/",
"sniff": "./vendor/bin/phpcs -s --standard=PSR12 ./src/ ./tests/",
"test": "./vendor/bin/phpunit --coverage-clover ./tests/logs/clover.xml",
"stan": "./vendor/bin/phpstan analyse --level 5 src tests",
"coveralls": "php ./vendor/bin/php-coveralls -v"
Expand Down
131 changes: 52 additions & 79 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Connector/Connector.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ class Connector implements ConnectorInterface
/**
* @var string BASE_URI
*/
const BASE_URI = 'https://cloud.acquia.com/api';
public const BASE_URI = 'https://cloud.acquia.com/api';

/**
* @var string URL_ACCESS_TOKEN
*/
const URL_ACCESS_TOKEN = 'https://accounts.acquia.com/api/auth/oauth/token';
public const URL_ACCESS_TOKEN = 'https://accounts.acquia.com/api/auth/oauth/token';

/**
* @var GenericProvider The OAuth 2.0 provider to use in communication.
Expand Down
2 changes: 1 addition & 1 deletion src/Exception/ApiErrorException.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace AcquiaCloudApi\Exception;

use \Exception;
use Exception;

/**
* Represents an error returned from the API.
Expand Down

0 comments on commit 859c6cd

Please sign in to comment.