Skip to content
This repository has been archived by the owner on Feb 10, 2024. It is now read-only.

Latest commit

 

History

History
29 lines (18 loc) · 647 Bytes

README.md

File metadata and controls

29 lines (18 loc) · 647 Bytes

Finalize

Note: this package might be added to https://github.com/rectorphp/swiss-knife, as it covers multiple useful scripts.

Finalize classes in a safe way. We first look for those, that should be skipped:

  • classes who are in parent position
  • Doctrine entities by docblocks and attribute

Install

composer require tomasvotruba/finalize --dev

Usage

vendor/bin/finalize finalize src tests

It will:

  1. generate finalize.json file in your temp directory with all found classes, that should be skipped
  2. it will go through your files and finalize every class, that is not in this list

Happy coding!