nateageek/robo-phplint

这是对 overtune/phplint 的封装,允许在 robo 任务中运行

安装次数: 6,791

依赖者: 0

建议者: 0

安全性: 0

星标: 2

关注者: 2

分支: 1

公开问题: 0

类型:robo-tasks

1.1 2021-01-13 20:19 UTC

This package is auto-updated.

Last update: 2024-09-14 04:24:29 UTC


README

通过 composer require nateageek/robo-phplint 安装仓库

用法

<?php

class RoboFile extends \Robo\Tasks {

  use NateAGeek\Robo\Task\PHPLint\Tasks;

  function testLint() {
    //This will run phplint on all *.php files in the directory /phplint-code 
   // Also will return any errors found as an array.
    $this->taskPHPLintTask("/phplint-code")
      ->run();
  }
}