Book Image

PhpStorm Cookbook

By : Mukund Chaudhary
Book Image

PhpStorm Cookbook

By: Mukund Chaudhary

Overview of this book

Table of Contents (16 chapters)
PhpStorm Cookbook
Credits
About the Authors
About the Reviewers
www.PacktPub.com
Preface
Index

Committing files to the VCS repository


Let's get back to a use case. By now, the memories of the Dish class must be under a thick layer of dust since it has not been used for a while now. Go ahead, mate. Remove the dust, shred the laziness, and set off looking at things from a different perspective.

Getting ready

A small amount of strain on your brain (and obviously reading documentation) will make you remember that you created the Dish class in a hurry. Now that you have matured enough to use PhpStorm as an IDE, you need to prove your might in programming as well. You need to make the Dish class more functional.

How to do it...

You can begin by peeping into the only method inside the Dish class. Once you do, you will clearly see that there is a FIXME tag. As stated in the FIXME tag, you should check for a valid ingredient name before allowing it to be added to the dish. This will prevent any unwanted ingredients from getting added to your dish and thus spoiling it. You need to specify two changes...