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

Locating code duplicates


Business needs money, money needs engineering, engineering needs a plan, and the plan needs time. Since business needs money, and time is money, business does not want to waste time. Spending time means spending money, and all (software) businesses assume that money spent is money lost. Since business spends money sparingly, engineering resorts to code reuse. But then, the customer needs quality—after all, the customer has paid a (huge) sum of money to get the work done. This is a vicious circle.

When the engineering team is short of time, the challenge ahead is always to ensure that the copy-paste tasks are under control without side effects. Under control means that the software is able to do the expected work. The side effects are duplicate sections in the software, which can potentially lead to increases in the lines of code.

The situation seems grim!

You must remember PhpStorm at all times in your coding lifespan—whether you are having leisure or trouble. PhpStorm...