From: Antonio Ospite Date: Sun, 11 Aug 2013 23:16:10 +0000 (+0200) Subject: Cosmetics: re-indent cURL options to follow the coding style X-Git-Tag: v0.1~12^2 X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/63772429866f3d7a4c5bd6c8d3e5184bf15db902?ds=inline;hp=--cc Cosmetics: re-indent cURL options to follow the coding style --- 63772429866f3d7a4c5bd6c8d3e5184bf15db902 diff --git a/tweeper.php b/tweeper.php index 14c3a7a..c2c5a04 100644 --- a/tweeper.php +++ b/tweeper.php @@ -51,12 +51,12 @@ class Tweeper { { $ch = curl_init($url); curl_setopt_array($ch, array( - CURLOPT_HEADER => FALSE, - CURLOPT_RETURNTRANSFER => TRUE, - CURLOPT_SSL_VERIFYHOST => FALSE, - CURLOPT_SSL_VERIFYPEER => FALSE, - CURLOPT_HTTPHEADER => array('Accept-language: en'), - CURLOPT_USERAGENT => Tweeper::$USER_AGENT, + CURLOPT_HEADER => FALSE, + CURLOPT_RETURNTRANSFER => TRUE, + CURLOPT_SSL_VERIFYHOST => FALSE, + CURLOPT_SSL_VERIFYPEER => FALSE, + CURLOPT_HTTPHEADER => array('Accept-language: en'), + CURLOPT_USERAGENT => Tweeper::$USER_AGENT, )); $contents = curl_exec($ch); curl_close($ch); @@ -68,13 +68,13 @@ class Tweeper { { $ch = curl_init($url); curl_setopt_array($ch, array( - CURLOPT_HEADER => TRUE, - CURLOPT_NOBODY => TRUE, - CURLOPT_FOLLOWLOCATION => TRUE, // follow http redirects to get the real URL - CURLOPT_RETURNTRANSFER => TRUE, - CURLOPT_SSL_VERIFYHOST => FALSE, - CURLOPT_SSL_VERIFYPEER => FALSE, - CURLOPT_USERAGENT => Tweeper::$USER_AGENT, + CURLOPT_HEADER => TRUE, + CURLOPT_NOBODY => TRUE, + CURLOPT_FOLLOWLOCATION => TRUE, // follow http redirects to get the real URL + CURLOPT_RETURNTRANSFER => TRUE, + CURLOPT_SSL_VERIFYHOST => FALSE, + CURLOPT_SSL_VERIFYPEER => FALSE, + CURLOPT_USERAGENT => Tweeper::$USER_AGENT, )); curl_exec($ch); $url_info = curl_getinfo($ch);