Browse Source

Move getVarType() to Core/functions.php

ADmad 8 years ago
parent
commit
b3489445b6
2 changed files with 13 additions and 13 deletions
  1. 13 0
      src/Core/functions.php
  2. 0 13
      src/basics.php

+ 13 - 0
src/Core/functions.php

@@ -280,3 +280,16 @@ if (!function_exists('deprecationWarning')) {
         trigger_error($message, E_USER_DEPRECATED);
     }
 }
+
+if (!function_exists('getVarType')) {
+    /**
+     * Returns the objects class or var type of it's not an object
+     *
+     * @param mixed $var Variable to check
+     * @return string Returns the class name or variable type
+     */
+    function getVarType($var)
+    {
+        return is_object($var) ? get_class($var) : gettype($var);
+    }
+}

+ 0 - 13
src/basics.php

@@ -155,16 +155,3 @@ if (!function_exists('loadPHPUnitAliases')) {
         require_once dirname(__DIR__) . DS . 'tests' . DS . 'phpunit_aliases.php';
     }
 }
-
-if (!function_exists('getVarType')) {
-    /**
-     * Returns the objects class or var type of it's not an object
-     *
-     * @param mixed $var Variable to check
-     * @return string Returns the class name or variable type
-     */
-    function getVarType($var)
-    {
-        return is_object($var) ? get_class($var) : gettype($var);
-    }
-}