<commit_before><?php

declare(strict_types=1);

use Rector\Core\Configuration\Option;
use Rector\Laravel\Set\LaravelSetList;
use Rector\Set\ValueObject\LevelSetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    // get parameters
    $parameters = $containerConfigurator->parameters();
    $parameters->set(Option::PATHS, [
        __DIR__ . '/config',
        __DIR__ . '/src',
        __DIR__ . '/tests',
        __DIR__ . '/views',
    ]);

    // Define what rule sets will be applied
    $containerConfigurator->import(LaravelSetList::LARAVEL_60);
    $containerConfigurator->import(LevelSetList::UP_TO_PHP_74);
};
<commit_msg>Use config for skipping rule instead<commit_after><?php

declare(strict_types=1);

use Rector\Core\Configuration\Option;
use Rector\Laravel\Set\LaravelSetList;
use Rector\Php70\Rector\StaticCall\StaticCallOnNonStaticToInstanceCallRector;
use Rector\Set\ValueObject\LevelSetList;
use Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;

return static function (ContainerConfigurator $containerConfigurator): void {
    $parameters = $containerConfigurator->parameters();

    $parameters->set(Option::PATHS, [
        __DIR__ . '/config',
        __DIR__ . '/src',
        __DIR__ . '/tests',
        __DIR__ . '/views',
    ]);

    $parameters->set(Option::SKIP, [
        StaticCallOnNonStaticToInstanceCallRector::class => [
            __DIR__ . '/tests/ShareTest.php',
        ],
    ]);

    $containerConfigurator->import(LaravelSetList::LARAVEL_60);
    $containerConfigurator->import(LevelSetList::UP_TO_PHP_74);
};

{'fraction_non_alphanumeric': 0.12412177985948478, 'fraction_numerical': 0.00702576112412178, 'mean_word_length': 4.210365853658536, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 13, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4636522', 'n_tokens_mistral': 539, 'n_tokens_neox': 521, 'n_words': 78}