PHP Classes

File: vendor/mockery/mockery/.php_cs

Recommend this page to a friend!
  Classes of Abed Nego Ragil Putra   PHP Inventory Management System with Scanner   vendor/mockery/mockery/.php_cs   Download  
File: vendor/mockery/mockery/.php_cs
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Inventory Management System with Scanner
Manage inventory stock using scanner application
Author: By
Last change:
Date: 4 years ago
Size: 582 bytes
 

Contents

Class file image Download
<?php

use Symfony\CS\Config\Config;
use
Symfony\CS\Finder\DefaultFinder;

if (
class_exists('PhpCsFixer\Finder')) { // PHP-CS-Fixer 2.x
   
$finder = PhpCsFixer\Finder::create()->in([
       
'library',
       
'tests',
    ]);

    return
PhpCsFixer\Config::create()
        ->
setRules(array(
           
'@PSR2' => true,
        ))
        ->
setUsingCache(true)
        ->
setFinder($finder)
    ;
}

$finder = DefaultFinder::create()->in(
    [
       
'library',
       
'tests',
    ]);

return
Config::create()
    ->
level('psr2')
    ->
setUsingCache(true)
    ->
finder($finder);