original_string: public function getUnitNames($type = null)
      {
          $names = array();
          foreach ($this->getUnits($type) as $key => $value) {
              $names[$key] = $value['name'];
          }
  
          return $names;
      }
code: public function getUnitNames($type = null)
      {
          $names = array();
          foreach ($this->getUnits($type) as $key => $value) {
              $names[$key] = $value['name'];
          }
  
          return $names;
      }
code_tokens: public function getUnitNames ( $ type = null ) { $ names = array ( ) ; foreach ( $ this -> getUnits ( $ type ) as $ key => $ value ) { $ names [ $ key ] = $ value [ 'name' ] ; } return $ names ; }
docstring: Returns an array of unit names
  @param null|string $type
  @return array
docstring_tokens: Returns an array of unit names