soy-php/php-lint-task

Soy 的 PHP 代码检查任务

0.1.0 2016-01-12 15:20 UTC

This package is not auto-updated.

Last update: 2024-09-10 18:52:13 UTC


README

Latest Stable Version Total Downloads Latest Unstable Version License

简介

这是为 Soy 的 PHP 代码检查任务

用法

使用 composer 将 soy-php/php-lint-task 包包含到您的项目中

$ composer require soy-php/php-lint-task

然后在您的配方中可以像下面这样使用任务

<?php

$recipe = new \Soy\Recipe();

$recipe->component('default', function (\Soy\PhpLint\RunTask $phpLintTask) {
    $phpLintTask
        ->setVerbose(true)
        ->enableCache('phplint.json')
        ->run(
            \Symfony\Component\Finder\Finder::create()
                ->in('.')
                ->name('*.php')
                ->exclude('vendor')
        );
});

return $recipe;