Search by

This package is abandoned and no longer maintained. No replacement package was suggested.

Perform code fix and review

Package info

github.com/funivan/cs

Homepage

Issues

pkg:composer/funivan/cs

Statistics

Installs: 10 883

Dependents: 0

Suggesters: 0

Stars: 0

dev-master 2017-05-12 08:51 UTC

This package is not auto-updated.

Last update: 2025-03-01 21:17:03 UTC


README

Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Perform code fix and review

Tools list

Fixer Review Link
✔ ✔ Php open tags
✔ ✔ Php line before class end
✔ Php file start
✔ Php closing tags
✔ Php return type format
✔ ✔ Php redundant Null property value
✔ ✔ Spaces in empty lines
✔ ✔ Line ending
✔ Composer

Install

Via Composer

composer require funivan/cs:dev-master

Usage

  # run review tool
  ./vendor/bin/cs.php review;

  # run fixer tool
  ./vendor/bin/cs.php fix;

Custom configuration

Create custom configuration file. For example cs-fix.php

<?php
  # file cs-fix.php
  require __DIR__ . '/vendor/autoload.php';


  use Funivan\Cs\Configuration\CsConfiguration;

  $configuration = CsConfiguration::createFixerConfiguration();
  // You can set custom file finder
  // $configuration->setFileFinder(new MyProjectCustomFileFinder());

  // You can add custom tools
  // $configuration->setTool(new MyProjectCustomCheckTool());

Then run fixer

  ./vendor/bin/cs.php fix --configuration=cs-fixer.php -vvv

Testing

    ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.