In this video you'll learn how to use the Introduce Method refactoring and the Introduce Constant refactoring.
Download PhpStorm: https://jetbrains.com/phpstorm/download
Twitter: / phpstorm
Facebook: / jetbrains
Matthew Setter: https://matthewsetter.com/
#PHP #PhpStorm #Refactoring #CleanCode
00:00 - Overview
00:43 - Problematic code
01:48 - Refactor 1: extract method
03:12 - Improve the validation of `isValidParcelld`
03:50 - Refactor 2: introduce constant
04:54 - Refactor 3: extract the call to file_exists to a method
05:33 - Improve isValidParcelFilename
05:53 - Quick recap
06:55 - Coming up next