What's the best practice for writing if-statement on boolean value? With a Not operator it's more compact, but you may not notice this operator whi ...
What's the best practice for writing if-statement on boolean value? With a Not operator it's more compact, but you may not notice this operator whi ...
I studied PSR-2 and PSR-12 documentations completely but didn't find any explanation regarding whether to put any space after $this keyword. My exact ...
What is the correct indentation for the following code examples according to PSR-12? and As far as I can tell, they're correct... but it looks s ...
I'm thinking about changing from sublime text 3 to atom and i want to set the identation standard for codeigniter 4, PSR12. I've installed globaly vi ...
I'm working on a code quality automation with phpmd, phpcs and phpcpd tools. The code sniffer has been set to --standard=PSR12. I was unable to find ...
Is it allowed to assign multiple variables on the same line in PSR-12? For example: $count = $score = 0; ...
I found myself looking on the internet for someone who has already answered it, but I can't find any. I was cleaning up some code with a strict PSR12 ...
I currently run php vendor/bin/phpcs --standard=PSR12 src in several of my projects' CI. They have been failing for 6+ months, because my code is org ...
I have looked through the PHP-Fig website for any PSR related to alternative PHP syntax for control structures but failed to find anything about it. ...
Ok, so PSR stands clearly regarding new lines after namespace declaration When present, there MUST be one blank line after the namespace declarati ...
The PHP manual does not include self in its list of keywords. A comment on the manual page suggests that self should be included, but it has been sign ...
In PHP, you can declare constants in two ways: With define keyword Using const keyword const FOO = 1; What are the main differenc ...