Advertisement
Guest User

City Autocomplete

a guest
Oct 20th, 2013
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.49 KB | None | 0 0
  1. SITES/ALL/MODULES/CITY_AUTOCOMPLETE/CITY_AUTOCOMPLETE.MODULE
  2. city_autocomplete.module
  3.  
  4. severity: minorreview: comment_comment_indentLine 48: indent secondary line of comment one space [comment_comment_indent]
  5. */
  6. severity: normalreview: style_string_spacingLine 69: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms [style_string_spacing]
  7. $city = city_autocomplete_get_city_value($input['city'].','.$input['country_code']);
  8. severity: normalreview: style_else_spacingLine 133: else statements should begin on a new line [style_else_spacing]
  9. } else {
  10. severity: minorreview: comment_comment_docblock_missingLine 139: Docblock should be immediately above city_autocomplete_get_city_value (Drupal Docs) [comment_comment_docblock_missing]
  11. function city_autocomplete_get_city_value($city) {
  12. severity: normalreview: style_control_spacingLine 150: Control statements should have one space between the control keyword and opening parenthesis [style_control_spacing]
  13. foreach($place_details->address_components as $component) {
  14. severity: normalreview: style_string_spacingLine 162: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms [style_string_spacing]
  15. $value['value'] = $value['city'].', '.$value['country'];
  16. severity: minorreview: comment_comment_docblock_missingLine 195: Docblock should be immediately above city_autocomplete_autocomplete_callback (Drupal Docs) [comment_comment_docblock_missing]
  17. function city_autocomplete_autocomplete_callback($string) {
  18. severity: normalreview: style_paren_spacingLine 200: use a space between the closing parenthesis and the open bracket [style_paren_spacing]
  19. function city_autocomplete_get_places($text, $keyed_by_reference = FALSE){
  20. severity: minorreview: comment_comment_docblock_missingLine 200: Docblock should be immediately above city_autocomplete_get_places (Drupal Docs) [comment_comment_docblock_missing]
  21. function city_autocomplete_get_places($text, $keyed_by_reference = FALSE){
  22. severity: normalreview: style_string_spacingLine 203: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms [style_string_spacing]
  23. $places = &drupal_static(__FUNCTION__.':'.$language->language.':'.($keyed_by_reference?1:0), array());
  24. severity: normalreview: style_paren_spacingLine 230: use a space between the closing parenthesis and the open bracket [style_paren_spacing]
  25. function _city_autocomplete_get_place_details($reference){
  26. severity: minorreview: comment_comment_docblock_missingLine 230: Docblock should be immediately above _city_autocomplete_get_place_details (Drupal Docs) [comment_comment_docblock_missing]
  27. function _city_autocomplete_get_place_details($reference){
  28. severity: normalreview: style_string_spacingLine 233: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms [style_string_spacing]
  29. $result = &drupal_static(__FUNCTION__.':'.$language->language, array());
  30. severity: minorreview: comment_docblock_commentLine 254: Block comments should begin with /** and not /* [comment_docblock_comment]
  31. /*
  32. severity: minorreview: comment_comment_indentLine 265: indent secondary line of comment one space [comment_comment_indent]
  33. */
  34. severity: normalreview: style_paren_spacingLine 267: use a space between the closing parenthesis and the open bracket [style_paren_spacing]
  35. function _city_autocomplete_google_maps_api_call($endpoint, $params){
  36. severity: minorreview: comment_comment_docblock_missingLine 267: Docblock should be immediately above _city_autocomplete_google_maps_api_call (Drupal Docs) [comment_comment_docblock_missing]
  37. function _city_autocomplete_google_maps_api_call($endpoint, $params){
  38. severity: normalreview: style_string_spacingLine 274: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms [style_string_spacing]
  39. $url = str_replace('&', '&', $endpoint.'?'.http_build_query($params));
  40. severity: normalreview: style_else_spacingLine 288: else statements should begin on a new line [style_else_spacing]
  41. } else {
  42. severity: minorreview: style_trailing_spacesLine 305: There should be no trailing spaces [style_trailing_spaces]
  43.  
  44. severity: normalreview: style_string_spacingLine 311: String concatenation should be formatted with a space separating the operators (dot .) and the surrounding terms [style_string_spacing]
  45. '#prefix' => '<h3>'.t('Example:').'</h3>',
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement