From: Antonio Ospite <ao2@ao2.it>
Date: Tue, 17 May 2016 21:37:35 +0000 (+0200)
Subject: tweeper.php: rename the ERROR_STREAM variable to error_stream
X-Git-Tag: v0.6~34
X-Git-Url: https://git.ao2.it/tweeper.git/commitdiff_plain/8c743376a7e7eab3714e5aa4300e34fa3dd89415?ds=inline;hp=-c

tweeper.php: rename the ERROR_STREAM variable to error_stream

Variables should be in lower case.
---

8c743376a7e7eab3714e5aa4300e34fa3dd89415
diff --git a/tweeper.php b/tweeper.php
index 3e250b7..f1a4ba9 100644
--- a/tweeper.php
+++ b/tweeper.php
@@ -413,15 +413,15 @@ function parse_options_query_string() {
 
 if (is_cli()) {
   $options = parse_options_cli($argv, $argc);
-  $ERROR_STREAM = fopen('php://stderr', 'w');
+  $error_stream = fopen('php://stderr', 'w');
 }
 else {
   $options = parse_options_query_string();
-  $ERROR_STREAM = fopen('php://output', 'w');
+  $error_stream = fopen('php://output', 'w');
 }
 
 if (!isset($options['src_url'])) {
-  fwrite($ERROR_STREAM, usage(is_cli() ? $argv : NULL));
+  fwrite($error_stream, usage(is_cli() ? $argv : NULL));
   exit(1);
 }