original_string: public function findObjectInArray($objectname, $arr) {
          foreach ($arr as $i => $object) {
              if ($objectname == $object->getName()) {
                  return $i;
              }
          }
          return null;
      }
code: public function findObjectInArray($objectname, $arr) {
          foreach ($arr as $i => $object) {
              if ($objectname == $object->getName()) {
                  return $i;
              }
          }
          return null;
      }
code_tokens: public function findObjectInArray ( $ objectname , $ arr ) { foreach ( $ arr as $ i => $ object ) { if ( $ objectname == $ object -> getName ( ) ) { return $ i ; } } return null ; }
docstring: Returns the position of one object in the array.
  @param string $objectname
  @param array $arr
  @return mixed
docstring_tokens: Returns the position of one object in the array .