original_string: protected function arrayUniqueObject($phpClasses) {
          $hashes = [];
  
          foreach ($phpClasses as $key => $phpClass) {
              $hashes[$key] = spl_object_hash($phpClass);
          }
  
          $hashes = array_unique($hashes);
  
          $uniqueArray = [];
  
          foreach ($hashes as $key => $hash) {
              $uniqueArray[$key] = $phpClasses[$key];
          }
  
          return $uniqueArray;
      }
code: protected function arrayUniqueObject($phpClasses) {
          $hashes = [];
  
          foreach ($phpClasses as $key => $phpClass) {
              $hashes[$key] = spl_object_hash($phpClass);
          }
  
          $hashes = array_unique($hashes);
  
          $uniqueArray = [];
  
          foreach ($hashes as $key => $hash) {
              $uniqueArray[$key] = $phpClasses[$key];
          }
  
          return $uniqueArray;
      }
code_tokens: protected function arrayUniqueObject ( $ phpClasses ) { $ hashes = [ ] ; foreach ( $ phpClasses as $ key => $ phpClass ) { $ hashes [ $ key ] = spl_object_hash ( $ phpClass ) ; } $ hashes = array_unique ( $ hashes ) ; $ uniqueArray = [ ] ; foreach ( $ hashes as $ key => $ hash ) { $ uniqueArray [ $ key ] = $ phpClasses [ $ key ] ; } return $ uniqueArray ; }
docstring: Makes an array of object unique using the spl_object_hash function
  
  @param $phpClasses
  @return array
docstring_tokens: Makes an array of object unique using the spl_object_hash function