Changing our coding standards slightly:
[isso.git] / Input.php
index bc8d107fb567b20940bc8fc322efdf28c4cb6d37..e34c28f2649e19164a3986561d525ffaf2503fdd 100644 (file)
--- a/Input.php
+++ b/Input.php
@@ -120,7 +120,7 @@ class BSInput
        */
        private function _sanitizeDataRecursive($data)
        {
-               foreach ($data AS $key => $value)
+               foreach ($data as $key => $value)
                {
                        if (is_array($value))
                        {
@@ -201,7 +201,7 @@ class BSInput
        public function escape($str, $force = true)
        {
                $db = BSApp::$db;
-               if ($this->magicquotes AND !$force)
+               if ($this->magicquotes && !$force)
                {
                        if ($db)
                        {
@@ -239,7 +239,7 @@ class BSInput
        */
        public function inputCleanArray($vars)
        {
-               foreach ($vars AS $varname => $type)
+               foreach ($vars as $varname => $type)
                {
                        $this->inputClean($varname, $type);
                }
@@ -367,7 +367,7 @@ class BSInput
        */
        private function _cleanArray($array, $type)
        {
-               foreach ($array AS $key => $value)
+               foreach ($array as $key => $value)
                {
                        $array["$key"] = $this->clean($value, $type);
                }
@@ -401,7 +401,7 @@ class BSInput
                {
                        $host = ($_SERVER['HTTP_HOST']) ? $_SERVER['HTTP_HOST'] : $_ENV['HTTP_HOST'];
                        
-                       if ($host AND $_SERVER['HTTP_REFERER'])
+                       if ($host && $_SERVER['HTTP_REFERER'])
                        {
                                $parts = parse_url($_SERVER['HTTP_REFERER']);
                                $ourhost = $parts['host'] . (isset($parts['port']) ? ":$parts[port]" : '');