Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Thalles created an issue. See original summary.

thalles’s picture

Hi, follow the patch

Status: Needs review » Needs work
thalles’s picture

Hi, follow the patch

hass’s picture

Status: Needs review » Needs work
+++ b/google_analytics.module
@@ -7,6 +7,7 @@
+ * @codingStandardsIgnoreLine

@@ -125,7 +127,7 @@ function google_analytics_page_attachments(array &$page) {
+        /* $page['#attached']['library'][] = 'google_analytics/google_analytics.test'; */

Incorrect change.

thalles’s picture

hass’s picture

+++ b/google_analytics.module
@@ -25,6 +25,7 @@ use Drupal\google_analytics\Component\Render\GoogleAnalyticsJavaScriptSnippet;
+// @codingStandardsIgnoreLine
 define('GOOGLE_ANALYTICS_TRACKFILES_EXTENSIONS', '7z|aac|arc|arj|asf|asx|avi|bin|csv|doc(x|m)?|dot(x|m)?|exe|flv|gif|gz|gzip|hqx|jar|jpe?g|js|mp(2|3|4|e?g)|mov(ie)?|msi|msp|pdf|phps|png|ppt(x|m)?|pot(x|m)?|pps(x|m)?|ppam|sld(x|m)?|thmx|qtm?|ra(m|r)?|sea|sit|tar|tgz|torrent|txt|wav|wma|wmv|wpd|xls(x|m|b)?|xlt(x|m)|xlam|xml|z|zip');
 

What is wrong with this constant?

thalles’s picture

@hass the drupal ask for use on Class or interface, look:

thalles’s picture

[phpcs] Global constants should not be used, move it to a class or interface

thalles’s picture

@hass, I put @ignore... because I too think some things of standards of drupal unnecessaries.

thalles’s picture

Assigned: thalles » Unassigned
hass’s picture

Issue summary: View changes

the drupal ask for use on Class or interface, look:

Than we should change it this way I guess and not just an ignore.

thalles’s picture

Status: Needs review » Needs work

The last submitted patch, 13: google_analitycs-standards_in_google_analitycs.module-3011973-4.patch, failed testing. View results
- codesniffer_fixes.patch Interdiff of automated coding standards fixes only.

thalles’s picture

thalles’s picture

Status: Needs work » Needs review
thalles’s picture

Hi @hass, what's up?
Would that be the way you wanted it?

thalles’s picture

Hi @hass, is there anything missing yet?
I await a return to proceed.

hass’s picture

Looks ok

  • hass committed d0eb0b3 on 8.x-3.x authored by thalles
    Issue #3011973 by thalles: Coding standards in google_analytics.module
    

  • hass committed f573683 on 8.x-2.x authored by thalles
    Issue #3011973 by thalles: Coding standards in google_analytics.module
    
hass’s picture

Status: Needs review » Fixed

Ported to Matomo

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.