Skip to content
This repository has been archived by the owner on Nov 2, 2022. It is now read-only.

Add PHPCS fixer #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,21 @@
],
"require": {},
"require-dev": {
"friendsofphp/php-cs-fixer": "@stable",
"phpunit/phpunit": "< 6",
"satooshi/php-coveralls": "dev-master"
},
"autoload": {
"psr-4": {
"Cloudflare\\": "src/CloudFlare"
}
},
"scripts": {
"phpcs": [
"./vendor/bin/php-cs-fixer --verbose --rules=phpdoc_add_missing_param_annotation fix --dry-run --using-cache=no src"
],
"phpcs-fix": [
"./vendor/bin/php-cs-fixer --verbose --rules=phpdoc_add_missing_param_annotation fix --using-cache=no src"
]
}
}
3 changes: 3 additions & 0 deletions src/CloudFlare/Certificates.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ class Certificates extends Api
* List Certificates
* List all existing CloudFlare-issued Certificates for a given zone. Use your Certificates API Key as your
* User Service Key when calling this endpoint
* @param null|mixed $page
* @param null|mixed $per_page
* @param null|mixed $direction
*/
public function certificates($page = null, $per_page = null, $direction = null)
{
Expand Down
1 change: 1 addition & 0 deletions src/CloudFlare/Organizations/LoadBalancers/Pools.php
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,7 @@ public function update($organization_identifier, $identifier, $name, $origins, $
* Delete a pool
* Delete a configured pool
*
* @param string $organization_identifier
* @param string $identifier
*/
public function delete_pool($organization_identifier, $identifier)
Expand Down
1 change: 1 addition & 0 deletions src/CloudFlare/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ public function finalize_two_factor_authentication($auth_token)
* Disable two-factor authentication for your CloudFlare user account
*
* @param int The token provided by the two-factor authenticator
* @param mixed $auth_token
*/
public function disable_two_factor_authentication($auth_token)
{
Expand Down