PHP code example of ezsystems / ezplatform-code-style
1. Go to this page and download the library: Download ezsystems/ezplatform-code-style library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
ezsystems / ezplatform-code-style example snippets
$factory = new Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory();
// You can omit the call below if you want Ibexa ruleset with no custom rules
$factory->withRules([
// Your rules go here
]);
$config = $factory->buildConfig();
$config->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->files()->name('*.php')
);
return $config;
return Ibexa\CodeStyle\PhpCsFixer\InternalConfigFactory::build()
->setFinder(
PhpCsFixer\Finder::create()
->in(__DIR__ . '/src')
->in(__DIR__ . '/tests')
->files()->name('*.php')
)
;