Show Menu
Cheatography

PHP Refactoring Cheat Sheet (DRAFT) by

PHP Refactoring from PRO PHP Refactoring book (Trucchia and Romei)

This is a draft cheat sheet. It is a work in progress and is not finished yet.

1. EXTRACT METHOD

Problem: "You have a portion of code you can group togeth­er."­
Solution: Turn that code into a method named to explain the purpose of the method
k h kjh jkh jkh jkh jkh jkh jk hjkh jkh k hk hkj hk hklj

Example

class Customer
{ sdfh ajksdfh a
}