From daef8a86137bc4bf7b1893bbba46dfccd6264dc3 Mon Sep 17 00:00:00 2001 From: James Bell Date: Mon, 27 Feb 2017 21:08:13 +0000 Subject: [PATCH] Apply fixes from StyleCI --- .../Organizations/LoadBalancers/Monitors.php | 60 +++++++++---------- .../Organizations/LoadBalancers/Pools.php | 44 +++++++------- 2 files changed, 52 insertions(+), 52 deletions(-) diff --git a/src/CloudFlare/Organizations/LoadBalancers/Monitors.php b/src/CloudFlare/Organizations/LoadBalancers/Monitors.php index f4e00e8..eefd71a 100644 --- a/src/CloudFlare/Organizations/LoadBalancers/Monitors.php +++ b/src/CloudFlare/Organizations/LoadBalancers/Monitors.php @@ -33,21 +33,21 @@ public function monitors($organization_identifier) * Create a configured monitor * * @param string $organization_identifier - * @param string $expected_body A case-insensitive substring to match in the body of the probe - * response to declare an origin as up - * @param string $expected_codes The expected HTTP response code or code range for the probe - * @param string|null $method The HTTP method to use for the health check. - * @param int|null $timeout The timeout (in seconds) before marking the health check as failed - * @param string|null $path The endpoint path to health check against. - * @param int|null $interval The interval between each health check. Shorter intervals may improve failover - * time, but will increase load on the origins as we check from multiple locations. - * @param int|null $retries The number of retries to attempt in case of a timeout before marking the origin - * as unhealthy. Retries are attempted immediately. - * @param array|null $header The HTTP request headers to send in the health check. It is recommended you set - * a Host header by default. The User-Agent header cannot be overridden. - * @param int|null $type The protocol to use for the healthcheck. Currently supported protocols are - * 'HTTP' and 'HTTPS'. - * @param string|null $description Object description + * @param string $expected_body A case-insensitive substring to match in the body of the probe + * response to declare an origin as up + * @param string $expected_codes The expected HTTP response code or code range for the probe + * @param string|null $method The HTTP method to use for the health check. + * @param int|null $timeout The timeout (in seconds) before marking the health check as failed + * @param string|null $path The endpoint path to health check against. + * @param int|null $interval The interval between each health check. Shorter intervals may improve failover + * time, but will increase load on the origins as we check from multiple locations. + * @param int|null $retries The number of retries to attempt in case of a timeout before marking the origin + * as unhealthy. Retries are attempted immediately. + * @param array|null $header The HTTP request headers to send in the health check. It is recommended you set + * a Host header by default. The User-Agent header cannot be overridden. + * @param int|null $type The protocol to use for the healthcheck. Currently supported protocols are + * 'HTTP' and 'HTTPS'. + * @param string|null $description Object description */ public function create($organization_identifier, $expected_body, $expected_codes, $method = null, $timeout = null, $path = null, $interval = null, $retries = null, $header = null, $type = null, $description = null) { @@ -85,21 +85,21 @@ public function details($organization_identifier, $identifier) * * @param string $organization_identifier * @param string $identifier - * @param string $expected_body A case-insensitive substring to match in the body of the probe - * response to declare an origin as up - * @param string $expected_codes The expected HTTP response code or code range for the probe - * @param string|null $method The HTTP method to use for the health check. - * @param int|null $timeout The timeout (in seconds) before marking the health check as failed - * @param string|null $path The endpoint path to health check against. - * @param int|null $interval The interval between each health check. Shorter intervals may improve failover - * time, but will increase load on the origins as we check from multiple locations. - * @param int|null $retries The number of retries to attempt in case of a timeout before marking the origin - * as unhealthy. Retries are attempted immediately. - * @param array|null $header The HTTP request headers to send in the health check. It is recommended you set - * a Host header by default. The User-Agent header cannot be overridden. - * @param int|null $type The protocol to use for the healthcheck. Currently supported protocols are - * 'HTTP' and 'HTTPS'. - * @param string|null $description Object description + * @param string $expected_body A case-insensitive substring to match in the body of the probe + * response to declare an origin as up + * @param string $expected_codes The expected HTTP response code or code range for the probe + * @param string|null $method The HTTP method to use for the health check. + * @param int|null $timeout The timeout (in seconds) before marking the health check as failed + * @param string|null $path The endpoint path to health check against. + * @param int|null $interval The interval between each health check. Shorter intervals may improve failover + * time, but will increase load on the origins as we check from multiple locations. + * @param int|null $retries The number of retries to attempt in case of a timeout before marking the origin + * as unhealthy. Retries are attempted immediately. + * @param array|null $header The HTTP request headers to send in the health check. It is recommended you set + * a Host header by default. The User-Agent header cannot be overridden. + * @param int|null $type The protocol to use for the healthcheck. Currently supported protocols are + * 'HTTP' and 'HTTPS'. + * @param string|null $description Object description */ public function update($organization_identifier, $identifier, $expected_body, $expected_codes, $method = null, $timeout = null, $path = null, $interval = null, $retries = null, $header = null, $type = null, $description = null) { diff --git a/src/CloudFlare/Organizations/LoadBalancers/Pools.php b/src/CloudFlare/Organizations/LoadBalancers/Pools.php index d871c70..b03948b 100644 --- a/src/CloudFlare/Organizations/LoadBalancers/Pools.php +++ b/src/CloudFlare/Organizations/LoadBalancers/Pools.php @@ -33,17 +33,17 @@ public function pools($organization_identifier) * Create a new pool * * @param string $organization_identifier - * @param string $name Object name - * @param array $origins A list of origins contained in the pool. - * Traffic destined to the pool is balanced across all - * available origins contained in the pool (as long as the pool - * is considered available). - * @param string|null $description Object description - * @param bool|null $enabled Whether this pool is enabled or not. - * @param string|null $monitor ID of the monitor object to use for monitoring the health - * status of origins inside this pool. - * @param string|null $notification_email ID of the notifier object to use for notifications relating - * to the health status of origins inside this pool. + * @param string $name Object name + * @param array $origins A list of origins contained in the pool. + * Traffic destined to the pool is balanced across all + * available origins contained in the pool (as long as the pool + * is considered available). + * @param string|null $description Object description + * @param bool|null $enabled Whether this pool is enabled or not. + * @param string|null $monitor ID of the monitor object to use for monitoring the health + * status of origins inside this pool. + * @param string|null $notification_email ID of the notifier object to use for notifications relating + * to the health status of origins inside this pool. */ public function create($organization_identifier, $name, $origins, $description = null, $enabled = null, $monitor = null, $notification_email = null) { @@ -77,17 +77,17 @@ public function details($organization_identifier, $identifier) * * @param string $organization_identifier * @param string $identifier - * @param string $name Object name - * @param array $origins A list of origins contained in the pool. - * Traffic destined to the pool is balanced across all - * available origins contained in the pool (as long as the pool - * is considered available). - * @param string|null $description Object description - * @param bool|null $enabled Whether this pool is enabled or not. - * @param string|null $monitor ID of the monitor object to use for monitoring the health - * status of origins inside this pool. - * @param string|null $notification_email ID of the notifier object to use for notifications relating - * to the health status of origins inside this pool. + * @param string $name Object name + * @param array $origins A list of origins contained in the pool. + * Traffic destined to the pool is balanced across all + * available origins contained in the pool (as long as the pool + * is considered available). + * @param string|null $description Object description + * @param bool|null $enabled Whether this pool is enabled or not. + * @param string|null $monitor ID of the monitor object to use for monitoring the health + * status of origins inside this pool. + * @param string|null $notification_email ID of the notifier object to use for notifications relating + * to the health status of origins inside this pool. */ public function update($organization_identifier, $identifier, $name, $origins, $description = null, $enabled = null, $monitor = null, $notification_email = null) {