Closed (outdated)
Project:
Drupal core
Version:
8.6.x-dev
Component:
entity system
Priority:
Minor
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
7 Nov 2014 at 22:05 UTC
Updated:
26 May 2019 at 11:28 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
berdirIt could be, and there is a coding standard that says it should be there, but it is no functional bug.
Because the file itself is not in a namespace, so not explicitly specifying the namespace works fine.
Comment #2
berdirComment #3
nikita.izotov commentedFixed,
+ i've found some formating mistakes what've fixed also
Now sniffer says that "PHP_CodeSniffer did not find any problems."
Comment #4
berdirChanges look fine, but be careful with changing more than you have to in an issue. I think it's fine to expand the scope here, but you shouldn't do that if you are working on an actual change for example.
Comment #5
alexpottThe file mode should not be changing
@return array|FALSE
There is no need to start each new sentence on a new line.
should be @return string|null
Comment #6
adci_contributor commentedFixed according to the recommendations from @alexpot
Comment #9
jhedstromPatch in #6 has addressed #5.
Comment #11
alexpottEntities are not arrays.
Comment #12
gsharm commentedComment #13
gsharm commentedComment #14
gsharm commentedComment #15
shamsher_alam commentedComment #16
shamsher_alam commentedComment #17
mgiffordPatch no longer applies.
Comment #18
wellme commentedComment #19
wellme commentedComment #20
timmillwoodComment #21
alexpottThese kind of grabbag coding standards issues are discouraged because it is almost impossible to prevent regressions. If you interested in helping make core comply with coding standards please see #2571965: [meta] Fix PHP coding standards in core, stage 1 and the numerous sub issues there. Also it is worth reviewing https://www.drupal.org/core/scope for guidelines and examples for Drupal core issue scope.
Comment #27
berdirentity.inc is now 100% deprecated, so I don't think we should spend time on fixing coding standard issues ther.