tweeper.php: fix a typo s/Apparenty/Apparently/
[tweeper.git] / tweeper.php
index 5379be7..736b5b3 100644 (file)
@@ -129,7 +129,7 @@ class Tweeper {
       "video/ogg",
     );
 
       "video/ogg",
     );
 
-    // The RSS specification says that the enclosure element url must be http.
+    // The RSS specification says that the enclosure element URL must be http.
     // See http://sourceforge.net/p/feedvalidator/bugs/72/
     $http_url = preg_replace("/^https/", "http", $url);
 
     // See http://sourceforge.net/p/feedvalidator/bugs/72/
     $http_url = preg_replace("/^https/", "http", $url);
 
@@ -213,7 +213,7 @@ class Tweeper {
    * Convert json to xml.
    */
   private function json_to_xml($json, $root_node_name) {
    * Convert json to xml.
    */
   private function json_to_xml($json, $root_node_name) {
-    // Apparenty the ObjectNormalizer used afterwards is not able to handle
+    // Apparently the ObjectNormalizer used afterwards is not able to handle
     // the stdClass object created by json_decode() with the default setting
     // $assoc = false; so use $assoc = true.
     $data = json_decode($json, $assoc = TRUE);
     // the stdClass object created by json_decode() with the default setting
     // $assoc = false; so use $assoc = true.
     $data = json_decode($json, $assoc = TRUE);
@@ -298,7 +298,7 @@ class Tweeper {
   public function tweep($src_url) {
     $url = parse_url($src_url);
     if (FALSE === $url || empty($url["host"])) {
   public function tweep($src_url) {
     $url = parse_url($src_url);
     if (FALSE === $url || empty($url["host"])) {
-      trigger_error("Invalid url: $src_url", E_USER_ERROR);
+      trigger_error("Invalid URL: $src_url", E_USER_ERROR);
       return NULL;
     }
 
       return NULL;
     }