PHP Classes

File: .php-cs-fixer.dist.php

Recommend this page to a friend!
  Classes of Dimitri Sitchet   PHP Sysinfo Command   .php-cs-fixer.dist.php   Download  
File: .php-cs-fixer.dist.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP Sysinfo Command
Get the current machine CPU, memory, disk, etc.
Author: By
Last change:
Date: 4 months ago
Size: 1,059 bytes
 

Contents

Class file image Download
<?php

/**
 * This file is part of dimtrov/sysinfo (PHP System Informations).
 *
 * (c) 2022 Dimitri Sitchet Tomkeu <devcode.dst@gmail.com>
 *
 * For the full copyright and license information, please view
 * the LICENSE file that was distributed with this source code.
 */

use BlitzPHP\CodingStandard\Blitz;
use
Nexus\CsConfig\Factory;
use
Nexus\CsConfig\Fixer\Comment\NoCodeSeparatorCommentFixer;
use
Nexus\CsConfig\FixerGenerator;
use
PhpCsFixer\Finder;

$finder = Finder::create()
    ->
files()
    ->
in([__DIR__ . '/src'])
    ->
append([__FILE__]);

$overrides = [];

$options = [
   
'cacheFile' => 'build/.php-cs-fixer.cache',
   
'finder' => $finder,
   
'customFixers' => FixerGenerator::create('vendor/nexusphp/cs-config/src/Fixer', 'Nexus\\CsConfig\\Fixer'),
   
'customRules' => [
       
NoCodeSeparatorCommentFixer::name() => true,
    ],
];

return
Factory::create(new Blitz(), $overrides, $options)->forLibrary(
   
'dimtrov/sysinfo (PHP System Informations)',
   
'Dimitri Sitchet Tomkeu',
   
'devcode.dst@gmail.com',
   
2022
);