Clean code, hard-coded, guard clauses, naming conventions
Static Factory Methods aka Named Constructors

How to handle method overloading in PHP and multiple conditions, therefore creating single object instance? Static Factory Method is your answer
Refactoring Example – guard clauses

Real code rafactoring example with guard clauses usage
Hard-coded parts

Few code smell which shouldn’t be present in your clean codebase.
Dependency Injection code smells

Dependency Injection is a great thing, however using it doesn’t mean that everything is done right in the codebase. Lets check few things to notice that probably something can be improved.
Naming conventions

It’s quite important for your code quality to properly format your code and use some rules to set function or variable names.
Improving conditions clauses – few small things with hudge impact

Don’t be afraid to write functions for small things. You will be supprised how they will improve your code.
Clean Code – how to start

Basic things to know, which are required to start writing code