original_string: public function getdiff($struct1, $struct2, $slashtoobject = false)
      {
          if (!$this->studyType($struct1, $problem) || !$this->studyType($struct2, $problem)) {
              return $problem;
          }
  
          $this->clockStart();
  
          $structpath1_array = array();
          $structpath2_array = array();
  
          $this->structPathArray($struct1, $structpath1_array, "");
          $this->structPathArray($struct2, $structpath2_array, "");
          $deltadiff_array = $this->structPathArrayDiff($structpath1_array, $structpath2_array, $slashtoobject);
  
          if ($this->config["debug"]) {
              $deltadiff_array["time"] = $this->clockMark();
          }
  
          return $this->returnTypeConvert($deltadiff_array);
      }
code: public function getdiff($struct1, $struct2, $slashtoobject = false)
      {
          if (!$this->studyType($struct1, $problem) || !$this->studyType($struct2, $problem)) {
              return $problem;
          }
  
          $this->clockStart();
  
          $structpath1_array = array();
          $structpath2_array = array();
  
          $this->structPathArray($struct1, $structpath1_array, "");
          $this->structPathArray($struct2, $structpath2_array, "");
          $deltadiff_array = $this->structPathArrayDiff($structpath1_array, $structpath2_array, $slashtoobject);
  
          if ($this->config["debug"]) {
              $deltadiff_array["time"] = $this->clockMark();
          }
  
          return $this->returnTypeConvert($deltadiff_array);
      }
code_tokens: public function getdiff ( $ struct1 , $ struct2 , $ slashtoobject = false ) { if ( ! $ this -> studyType ( $ struct1 , $ problem ) || ! $ this -> studyType ( $ struct2 , $ problem ) ) { return $ problem ; } $ this -> clockStart ( ) ; $ structpath1_array = array ( ) ; $ structpath2_array = array ( ) ; $ this -> structPathArray ( $ struct1 , $ structpath1_array , "" ) ; $ this -> structPathArray ( $ struct2 , $ structpath2_array , "" ) ; $ deltadiff_array = $ this -> structPathArrayDiff ( $ structpath1_array , $ structpath2_array , $ slashtoobject ) ; if ( $ this -> config [ "debug" ] ) { $ deltadiff_array [ "time" ] = $ this -> clockMark ( ) ; } return $ this -> returnTypeConvert ( $ deltadiff_array ) ; }
docstring: Returns the difference between two structures
  
  @param  [array|string|\stdClass] $struct1 [struct1]
  @param  [array|string|\stdClass] $struct2 [struct2]
  @return [array|string|\stdClass] struct diff
docstring_tokens: Returns the difference between two structures