PHP code example of cambis / silverstripe-rector
1. Go to this page and download the library: Download cambis/silverstripe-rector 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/ */
cambis / silverstripe-rector example snippets
declare(strict_types=1);
use Cambis\SilverstripeRector\Set\ValueObject\SilverstripeLevelSetList;
use Cambis\SilverstripeRector\Set\ValueObject\SilverstripeSetList;
use Rector\Config\RectorConfig;
return RectorConfig::configure()
->withPaths([
__DIR__ . '/app/_config.php',
__DIR__ . '/app/src',
__DIR__ . '/app/tests',
])
->withSets([
SilverstripeLevelSetList::UP_TO_SILVERSTRIPE_52,
SilverstripeSetList::CODE_QUALITY,
]);