Skip to content

cherifGsoul/php-refactoring

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

php-refactoring

Refactoring example

This is an attempt to refactor the example in this tweet

EvuBrrtXYAgNsu6

Usage:

  • Clone the repository
  • Install dependencies $ composer install
  • run the demo in the console: $ php ./demo/example.php

The substraction operation needs some tweaks, the example goal is to demonstrate how we can get rid of if/else/switch/case.

About

Refactoring example

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages