Przeglądaj źródła

Rename $temp to $converted

Let's make clear what that variable contains
Michele Locati 11 lat temu
rodzic
commit
95980c9660
1 zmienionych plików z 8 dodań i 8 usunięć
  1. 8 8
      library/Zend/Locale/Format.php

+ 8 - 8
library/Zend/Locale/Format.php

@@ -763,7 +763,7 @@ class Zend_Locale_Format
         );
         );
         $escaped = false;
         $escaped = false;
         $lastescaped = false;
         $lastescaped = false;
-        $temp = array();
+        $converted = array();
         foreach (str_split($format) as $char) {
         foreach (str_split($format) as $char) {
             if (!$escaped && $char == '\\') {
             if (!$escaped && $char == '\\') {
                 $escaped = true;
                 $escaped = true;
@@ -771,29 +771,29 @@ class Zend_Locale_Format
             }
             }
             if ($escaped) {
             if ($escaped) {
                 if (!$lastescaped) {
                 if (!$lastescaped) {
-                    $temp[] = "'";
+                    $converted[] = "'";
                     $lastescaped = true;
                     $lastescaped = true;
                 }
                 }
-                $temp[] = $char;
+                $converted[] = $char;
                 $escaped = false;
                 $escaped = false;
             } else {
             } else {
                 if ($char == "'") {
                 if ($char == "'") {
-                    $temp[] = "''";
+                    $converted[] = "''";
                 } else {
                 } else {
                     if ($lastescaped) {
                     if ($lastescaped) {
-                        $temp[] = "'";
+                        $converted[] = "'";
                         $lastescaped = false;
                         $lastescaped = false;
                     }
                     }
                     if (isset($convert[$char]) === true) {
                     if (isset($convert[$char]) === true) {
-                        $temp[] = $convert[$char];
+                        $converted[] = $convert[$char];
                     } else {
                     } else {
-                        $temp[] = $char;
+                        $converted[] = $char;
                     }
                     }
                 }
                 }
             }
             }
         }
         }
 
 
-        return implode($temp);
+        return implode($converted);
     }
     }
 
 
     /**
     /**