mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 14:27:14 +01:00
22a6a7d222
dc7a9a85f3
[DeadCode] Skip remove variable on switch use return after break on RemoveUnusedVariableAssignRector (#2145)
EditorConfig PHP
PHP implementation of EditorConfig
Installation
Install with Composer:
composer require idiosyncratic/editorconfig
Usage
<?php
require_once('vendor/autoload.php');
use Idiosyncratic\EditorConfig\EditorConfig;
$ec = new EditorConfig();
// $config will be an array of the declarations matching for the specified path
$config = $ec->getConfigForPath(__FILE__);
// Print matching configuration rules as string
print $ec->printConfigForPath(__FILE__) . PHP_EOL;