original_string: protected function _dasherize($url)
      {
          foreach (['controller', 'plugin', 'action'] as $element) {
              if (!empty($url[$element])) {
                  $url[$element] = Inflector::dasherize($url[$element]);
              }
          }
  
          return $url;
      }
code: protected function _dasherize($url)
      {
          foreach (['controller', 'plugin', 'action'] as $element) {
              if (!empty($url[$element])) {
                  $url[$element] = Inflector::dasherize($url[$element]);
              }
          }
  
          return $url;
      }
code_tokens: protected function _dasherize ( $ url ) { foreach ( [ 'controller' , 'plugin' , 'action' ] as $ element ) { if ( ! empty ( $ url [ $ element ] ) ) { $ url [ $ element ] = Inflector :: dasherize ( $ url [ $ element ] ) ; } } return $ url ; }
docstring: Helper method for dasherizing keys in a URL array.
  
  @param array $url An array of URL keys.
  @return array
docstring_tokens: Helper method for dasherizing keys in a URL array .