PHPackages                             grafema-team/grafema-phpcs - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. grafema-team/grafema-phpcs

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

grafema-team/grafema-phpcs
==========================

Grafema rules for php-cs-fixer

v1.0.0(2y ago)012MITPHPPHP &gt;=7.4.30

Since Oct 26Pushed 2y ago1 watchersCompare

[ Source](https://github.com/grafema-team/grafema-phpcs)[ Packagist](https://packagist.org/packages/grafema-team/grafema-phpcs)[ RSS](/packages/grafema-team-grafema-phpcs/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (1)Dependencies (1)Versions (2)Used By (0)

PHP CS Fixer: Grafema fixers
============================

[](#php-cs-fixer-grafema-fixers)

A set of custom fixers for [PHP CS Fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer), specially for Grafema.

### What is php-cs-fixer?

[](#what-is-php-cs-fixer)

The [php-cs-fixer](https://github.com/FriendsOfPHP/PHP-CS-Fixer) or [PHP Coding Standards Fixer](https://cs.symfony.com/) is an awesome tool created by the super awesome people at [Symfony](https://symfony.com/).

It helps your PHP code/repository to follow a certain coding standard defined by you team.

#### Available Additional Fixers

[](#available-additional-fixers)

1. **Space Inside Parenthesis**: This fixer ensures that when defining functions, if/else blocks, or control structures which have parenthesis, a space after the starting parenthesis and before the ending parenthesis exists. Rule name: `GrafemaPHPCS/space_inside_parenthesis`.

Installation
------------

[](#installation)

PHP CS Fixer: custom fixers can be installed by running:

```
composer require --dev grafema-team/grafema-phpcs
```

Usage
-----

[](#usage)

In your PHP CS Fixer configuration (`.php-cs-fixer.php`) register fixers and use them:

```
