Closed (fixed)
Project:
Drupal core
Version:
8.0.x-dev
Component:
routing system
Priority:
Minor
Category:
Task
Assigned:
Unassigned
Issue tags:
Reporter:
Created:
15 Apr 2014 at 13:14 UTC
Updated:
29 Jul 2014 at 23:32 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
dawehnerYeah both works, which is nice but let's be consistent.
Comment #2
tstoecklerActually our coding standards dictate to not prefix with a leading backslash in PHP strings. This is not exactly a PHP string but very similar, so not sure what would be more consistent here.
Comment #3
anavarreChecked again today and we're now having 289 occurrences versus 10 only without the leading backslash. Seems like for consistency it would be good to go with one or the other. I've been having that discussion at least 3 times in the last weeks, just because people are confused on what approach to take.
That being said, is it a fair assumption to assume that it might be our coding standards that would need to be updated according to how we're doing things now?
Comment #4
anavarreAnd the updated patch if we want it.
Comment #5
anavarreComment #6
dawehnerYeah 289 vs 10 seems to be a pretty clear sign.
Comment #7
catchCommitted/pushed to 8.x, thanks!
Comment #9
alexpottI would really like to see coding standards tests being added for things like this. Opened #2254825: Add coding standards tests for YAML definition files to do just that.
Also pointers in the issue to where the docs are and ensuring they are consistent would be nice - for example evidence that https://drupal.org/developing/api/8/routing and it's sub pages have been checked would be nice.