I have checked code manually. I'm found classes name write with the full namespace. use statement should be used for defining the class.either drupal through coding standards error. please review.

CommentFileSizeAuthor
#2 Use_statement_in_module_2897651_1.patch1.12 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Anonymous’s picture

mayank010 created an issue. See original summary.

Anonymous’s picture

I have make patch for this. please apply and review

bserem’s picture

Status: Active » Fixed

Thanks for the review and the patch. It has been applied.

Side note:
The attached patch file is identified as a binary file on my linux system.
Git doesn't recognize it, and less previews this as follows.
Maybe you want to check your editor!

<FF><FE>d^@i^@f^@f^@ ^@-^@-^@g^@i^@t^@ ^@a^@/^@c^@a^@c^@h^@e^@b^@u^@s^@t^@e^@r^@.^@m^@o^@d^@u^@l^@e^@ ^@b^@/^@c^@a^@c^@h^@e^@b^@u^@s^@t^@e^@r^@.^@m^@o^@d^@u^@l^@e^@^M^@
^@i^@n^@d^@e^@x^@ ^@2^@6^@1^@9^@9^@6^@8^@.^@.^@b^@0^@a^@f^@9^@5^@2^@ ^@1^@0^@0^@6^@4^@4^@^M^@
^@-^@-^@-^@ ^@a^@/^@c^@a^@c^@h^@e^@b^@u^@s^@t^@e^@r^@.^@m^@o^@d^@u^@l^@e^@^M^@
^@+^@+^@+^@ ^@b^@/^@c^@a^@c^@h^@e^@b^@u^@s^@t^@e^@r^@.^@m^@o^@d^@u^@l^@e^@^M^@
^@@^@@^@ ^@-^@5^@,^@1^@0^@ ^@+^@5^@,^@1^@2^@ ^@@^@@^@^M^@
^@ ^@ ^@*^@ ^@A^@n^@ ^@C^@S^@S^@ ^@C^@a^@c^@h^@e^@ ^@B^@u^@s^@t^@e^@r^@ ^@f^@o^@r^@ ^@D^@8^@.^@^M^@
^@ ^@ ^@*^@/^@^M^@
^@ ^@^M^@
^@+^@u^@s^@e^@ ^@D^@r^@u^@p^@a^@l^@\^@C^@o^@r^@e^@\^@A^@s^@s^@e^@t^@\^@A^@t^@t^@a^@c^@h^@e^@d^@A^@s^@s^@e^@t^@s^@I^@n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[^@'^@d^@a^@t^@a^@'^@]^@;^@^M^@
^@
Use_statement_in_module_2897651_1.patch (END)

  • bserem committed 42d2700 on 8.x-1.x authored by mayank010
    Issue #2897651 by mayank010: classes should be referenced with use...

Status: Fixed » Closed (fixed)

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