original_string: private function varIsObject($var)
      {
          $var_ser = serialize($var);
          array_push($this->arrHistory, $var_ser);
          $this->makeTableHeader("object", "object");
  
          if (is_object($var)) {
              $arrObjVars = get_object_vars($var);
              foreach ($arrObjVars as $key => $value) {
  
                  $value = (!is_object($value) && !is_array($value) && trim($value) == "") ? "[empty string]" : $value;
                  $this->makeTDHeader("object", $key);
  
                  //check for recursion
                  if (is_object($value) || is_array($value)) {
                      $var_ser = serialize($value);
                      if (in_array($var_ser, $this->arrHistory, TRUE)) {
                          $value = (is_object($value)) ? "*RECURSION* -> $" . get_class($value) : "*RECURSION*";
  
                      }
                  }
                  if (in_array(gettype($value), $this->arrType)) {
                      $this->checkType($value);
                  } else {
                      echo $value;
                  }
                  echo $this->closeTDRow();
              }
              $arrObjMethods = get_class_methods(get_class($var));
              foreach ($arrObjMethods as $key => $value) {
                  $this->makeTDHeader("object", $value);
                  echo "[function]" . $this->closeTDRow();
              }
          } else {
              echo "<tr><td>" . $this->error("object") . $this->closeTDRow();
          }
          array_pop($this->arrHistory);
          echo "</table>";
      }
code: private function varIsObject($var)
      {
          $var_ser = serialize($var);
          array_push($this->arrHistory, $var_ser);
          $this->makeTableHeader("object", "object");
  
          if (is_object($var)) {
              $arrObjVars = get_object_vars($var);
              foreach ($arrObjVars as $key => $value) {
  
                  $value = (!is_object($value) && !is_array($value) && trim($value) == "") ? "[empty string]" : $value;
                  $this->makeTDHeader("object", $key);
  
                  //check for recursion
                  if (is_object($value) || is_array($value)) {
                      $var_ser = serialize($value);
                      if (in_array($var_ser, $this->arrHistory, TRUE)) {
                          $value = (is_object($value)) ? "*RECURSION* -> $" . get_class($value) : "*RECURSION*";
  
                      }
                  }
                  if (in_array(gettype($value), $this->arrType)) {
                      $this->checkType($value);
                  } else {
                      echo $value;
                  }
                  echo $this->closeTDRow();
              }
              $arrObjMethods = get_class_methods(get_class($var));
              foreach ($arrObjMethods as $key => $value) {
                  $this->makeTDHeader("object", $value);
                  echo "[function]" . $this->closeTDRow();
              }
          } else {
              echo "<tr><td>" . $this->error("object") . $this->closeTDRow();
          }
          array_pop($this->arrHistory);
          echo "</table>";
      }
code_tokens: private function varIsObject ( $ var ) { $ var_ser = serialize ( $ var ) ; array_push ( $ this -> arrHistory , $ var_ser ) ; $ this -> makeTableHeader ( "object" , "object" ) ; if ( is_object ( $ var ) ) { $ arrObjVars = get_object_vars ( $ var ) ; foreach ( $ arrObjVars as $ key => $ value ) { $ value = ( ! is_object ( $ value ) && ! is_array ( $ value ) && trim ( $ value ) == "" ) ? "[empty string]" : $ value ; $ this -> makeTDHeader ( "object" , $ key ) ; //check for recursion if ( is_object ( $ value ) || is_array ( $ value ) ) { $ var_ser = serialize ( $ value ) ; if ( in_array ( $ var_ser , $ this -> arrHistory , TRUE ) ) { $ value = ( is_object ( $ value ) ) ? "*RECURSION* -> $" . get_class ( $ value ) : "*RECURSION*" ; } } if ( in_array ( gettype ( $ value ) , $ this -> arrType ) ) { $ this -> checkType ( $ value ) ; } else { echo $ value ; } echo $ this -> closeTDRow ( ) ; } $ arrObjMethods = get_class_methods ( get_class ( $ var ) ) ; foreach ( $ arrObjMethods as $ key => $ value ) { $ this -> makeTDHeader ( "object" , $ value ) ; echo "[function]" . $ this -> closeTDRow ( ) ; } } else { echo "<tr><td>" . $ this -> error ( "object" ) . $ this -> closeTDRow ( ) ; } array_pop ( $ this -> arrHistory ) ; echo "</table>" ; }
docstring: if variable is an object type
docstring_tokens: if variable is an object type