TBH making readers to jump to another section that contains different informations is kinda lazy. Can we just copy paste the relevant indications and do without the reference to the closures?
Il giorno mer 16 mag 2018 alle ore 17:44 'Alexander Makarov' via PHP Framework Interoperability Group <php-fig@googlegroups.com> ha scritto: > 1. The opening brace MUST go on the same line, and the closing brace MUST > go on the next line following the body. > > > On Tuesday, April 24, 2018 at 1:53:06 AM UTC+3, Greg Sherwood wrote: >> >> Hi, >> >> I'm working on the PSR-12 standard for PHP_CodeSniffer. I have a question >> about this section: >> >> 8. Anonymous Classes >>> Anonymous Classes MUST follow the same guidelines and principles as >>> closures in the above section. >> >> >> Almost the entire closure section of PSR-12 is dedicated to argument >> lists (not a bad thing). The only section of it that isn't contains the >> following text: >> >> Closures MUST be declared with a space after the function keyword, and a >>> space before and after the use keyword. >>> The opening brace MUST go on the same line, and the closing brace MUST >>> go on the next line following the body. >> >> >> The first rule doesn't have anything to do with anon classes and the >> second is superseded by a more specific rule in the anon classes section. >> >> So my question is: What guidelines and principals should I take from the >> closure section when writing rules for anon classes? >> >> Thanks >> > -- > You received this message because you are subscribed to the Google Groups > "PHP Framework Interoperability Group" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to php-fig+unsubscr...@googlegroups.com. > To post to this group, send email to php-fig@googlegroups.com. > To view this discussion on the web visit > https://groups.google.com/d/msgid/php-fig/befdbd91-0c62-4dc6-98cd-caca817a8d5f%40googlegroups.com > <https://groups.google.com/d/msgid/php-fig/befdbd91-0c62-4dc6-98cd-caca817a8d5f%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "PHP Framework Interoperability Group" group. To unsubscribe from this group and stop receiving emails from it, send an email to php-fig+unsubscr...@googlegroups.com. To post to this group, send email to php-fig@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/php-fig/CAFojS1tPo797ObOJ%3Dg5o3fV3FCkddte055xu8OSm_EvTFDp%2BKQ%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.