PHP code example of mikelooper / code-style
1. Go to this page and download the library: Download mikelooper/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/ */
mikelooper / code-style example snippets
use Shared\Infrastructure\CodingStyle;
use Symplify\EasyCodingStandard\Config\ECSConfig;
return function (ECSConfig $ecsConfig): void {
$ecsConfig->paths([__DIR__ . '/src',]);
$ecsConfig->sets([CodingStyle::DEFAULT]);
// Or this if you prefer to have the code aligned
// $ecsConfig->sets([CodingStyle::ALIGNED]);
};
use Symplify\EasyCodingStandard\ValueObject\Option;
$ecsConfig->indentation(Option::INDENTATION_SPACES);