projects
/
tweeper.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
fa21521
)
tweeper.php: user lowerCamel case for class variables
author
Antonio Ospite <ao2@ao2.it>
Tue, 17 May 2016 14:16:09 +0000
(16:16 +0200)
committer
Antonio Ospite <ao2@ao2.it>
Fri, 20 May 2016 08:55:10 +0000
(10:55 +0200)
tweeper.php
patch
|
blob
|
history
diff --git
a/tweeper.php
b/tweeper.php
index
736b5b3
..
27be95d
100644
(file)
--- a/
tweeper.php
+++ b/
tweeper.php
@@
-32,7
+32,7
@@
date_default_timezone_set('UTC');
*/
class Tweeper {
*/
class Tweeper {
- private static $
USER_AGENT
= "Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20130405 Firefox/22.0";
+ private static $
userAgent
= "Mozilla/5.0 (Windows NT 6.1; rv:22.0) Gecko/20130405 Firefox/22.0";
/**
* Constructor sets up {@link $generate_enclosure}.
/**
* Constructor sets up {@link $generate_enclosure}.
@@
-77,7
+77,7
@@
class Tweeper {
CURLOPT_SSL_VERIFYHOST => FALSE,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_HTTPHEADER => array('Accept-language: en'),
CURLOPT_SSL_VERIFYHOST => FALSE,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_HTTPHEADER => array('Accept-language: en'),
- CURLOPT_USERAGENT => Tweeper::$
USER_AGENT
,
+ CURLOPT_USERAGENT => Tweeper::$
userAgent
,
));
$contents = curl_exec($ch);
curl_close($ch);
));
$contents = curl_exec($ch);
curl_close($ch);
@@
-98,7
+98,7
@@
class Tweeper {
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_SSL_VERIFYHOST => FALSE,
CURLOPT_SSL_VERIFYPEER => FALSE,
CURLOPT_RETURNTRANSFER => TRUE,
CURLOPT_SSL_VERIFYHOST => FALSE,
CURLOPT_SSL_VERIFYPEER => FALSE,
- CURLOPT_USERAGENT => Tweeper::$
USER_AGENT
,
+ CURLOPT_USERAGENT => Tweeper::$
userAgent
,
));
curl_exec($ch);
$url_info = curl_getinfo($ch);
));
curl_exec($ch);
$url_info = curl_getinfo($ch);