Skip to main content
9 events
when toggle format what by license comment
Jul 28, 2016 at 0:47 history edited cFreed CC BY-SA 3.0
added 5 characters in body
Jul 28, 2016 at 0:47 comment added cFreed @RuslanBes Please look at my comment to CIverny. And thanks for your upvote.
Jul 28, 2016 at 0:45 comment added cFreed @CIvemy Interesting link: I didn't know the PSR initiative. In the other hand I retrieved that "my" current best practice came from drupal.org: and their PAReview is pretty pernickety, so I should now have variable reflexes depending where I'm writing code! Sigh :)
Jul 27, 2016 at 21:58 comment added scrowler @cFreed as C Ivemy said, it's actually the opposite in terms of "best practice"
Jul 27, 2016 at 20:51 comment added Ruslan Bes @cFreed it's just my perfectionism. If you write as then the SO highlighter will make it blue like foreach and if. Now it thinks apparently that it's a constant. Upvoted it anyway
Jul 27, 2016 at 16:11 comment added C Ivemy @cFreed PSR actually recommends not using caps for true, false, null or as - php-fig.org/psr/psr-2
Jul 27, 2016 at 12:45 comment added cFreed @RuslanBes Not sure what you address about highlighter: is it the SO's one? Anyway, I'm not initially partisan for this capitalization: I only resigned using it because it seems to be somewhat part of shared best practices, like for TRUE, FALSE, and NULL... and probably some other ones I don't have in mind at this time.
Jul 27, 2016 at 8:21 comment added Ruslan Bes Small comment: - "AS" -> "as" (highlighter doesn't highlight the CAPS).
Jul 26, 2016 at 17:48 history answered cFreed CC BY-SA 3.0