Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- SITES/ALL/MODULES/CITY_AUTOCOMPLETE/CITY_AUTOCOMPLETE.MODULE
- city_autocomplete.module
- severity: minorreview: comment_comment_indentLine 48: indent secondary line of comment one space [comment_comment_indent]
- */
- 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]
- $city = city_autocomplete_get_city_value($input['city'].','.$input['country_code']);
- severity: normalreview: style_else_spacingLine 133: else statements should begin on a new line [style_else_spacing]
- } else {
- severity: minorreview: comment_comment_docblock_missingLine 139: Docblock should be immediately above city_autocomplete_get_city_value (Drupal Docs) [comment_comment_docblock_missing]
- function city_autocomplete_get_city_value($city) {
- severity: normalreview: style_control_spacingLine 150: Control statements should have one space between the control keyword and opening parenthesis [style_control_spacing]
- foreach($place_details->address_components as $component) {
- 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]
- $value['value'] = $value['city'].', '.$value['country'];
- severity: minorreview: comment_comment_docblock_missingLine 195: Docblock should be immediately above city_autocomplete_autocomplete_callback (Drupal Docs) [comment_comment_docblock_missing]
- function city_autocomplete_autocomplete_callback($string) {
- severity: normalreview: style_paren_spacingLine 200: use a space between the closing parenthesis and the open bracket [style_paren_spacing]
- function city_autocomplete_get_places($text, $keyed_by_reference = FALSE){
- severity: minorreview: comment_comment_docblock_missingLine 200: Docblock should be immediately above city_autocomplete_get_places (Drupal Docs) [comment_comment_docblock_missing]
- function city_autocomplete_get_places($text, $keyed_by_reference = FALSE){
- 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]
- $places = &drupal_static(__FUNCTION__.':'.$language->language.':'.($keyed_by_reference?1:0), array());
- severity: normalreview: style_paren_spacingLine 230: use a space between the closing parenthesis and the open bracket [style_paren_spacing]
- function _city_autocomplete_get_place_details($reference){
- severity: minorreview: comment_comment_docblock_missingLine 230: Docblock should be immediately above _city_autocomplete_get_place_details (Drupal Docs) [comment_comment_docblock_missing]
- function _city_autocomplete_get_place_details($reference){
- 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]
- $result = &drupal_static(__FUNCTION__.':'.$language->language, array());
- severity: minorreview: comment_docblock_commentLine 254: Block comments should begin with /** and not /* [comment_docblock_comment]
- /*
- severity: minorreview: comment_comment_indentLine 265: indent secondary line of comment one space [comment_comment_indent]
- */
- severity: normalreview: style_paren_spacingLine 267: use a space between the closing parenthesis and the open bracket [style_paren_spacing]
- function _city_autocomplete_google_maps_api_call($endpoint, $params){
- severity: minorreview: comment_comment_docblock_missingLine 267: Docblock should be immediately above _city_autocomplete_google_maps_api_call (Drupal Docs) [comment_comment_docblock_missing]
- function _city_autocomplete_google_maps_api_call($endpoint, $params){
- 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]
- $url = str_replace('&', '&', $endpoint.'?'.http_build_query($params));
- severity: normalreview: style_else_spacingLine 288: else statements should begin on a new line [style_else_spacing]
- } else {
- severity: minorreview: style_trailing_spacesLine 305: There should be no trailing spaces [style_trailing_spaces]
- 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]
- '#prefix' => '<h3>'.t('Example:').'</h3>',
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement