-
Type: Task
-
Resolution: Works as Designed
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: None
PHPLIB currently does not enforce a line limit for code, but most comments wrap at 80 characters. In this thread from mongodb/mongo-php-library#1075, jerome.tamarelle@mongodb.com suggested using 120, which is the current default in PhpStorm. I don't believe the current limit is documented anywhere, so we should consider doing that as well with the switch.
If we end up enforcing this in the PHPCS configuration, we should also check if there's a way to allow exceptions for URLs (see: squizlabs/PHP_CodeSniffer#766).
Additionally, we can look into re-wrapping existing comments as part of this task.