Add phpcs command#36
Conversation
WalkthroughThis update introduces PHP_CodeSniffer as a development dependency and configures it for the codebase. The composer.json file is updated to add scripts for running code style checks and fixes. A phpcs.xml configuration file is added, and code formatting is applied to the interface file for consistency. Changes
Sequence Diagram(s)sequenceDiagram
participant Developer
participant Composer
participant PHP_CodeSniffer
Developer->>Composer: Run "composer phpcs"
Composer->>PHP_CodeSniffer: Execute code style check (PSR-12)
PHP_CodeSniffer-->>Developer: Display code style results
Developer->>Composer: Run "composer phpcbf"
Composer->>PHP_CodeSniffer: Execute code style fixer
PHP_CodeSniffer-->>Developer: Apply and report code fixes
Possibly related issues
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (3)
🔇 Additional comments (8)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Summary by CodeRabbit