nateageek/robo-phplint

This is a wrapper to the overtune/phplint, and allows it to be run in a robo task

Installs: 6 569

Dependents: 0

Suggesters: 0

Security: 0

Stars: 2

Watchers: 2

Forks: 1

Open Issues: 0

Type:robo-tasks

1.1 2021-01-13 20:19 UTC

This package is auto-updated.

Last update: 2024-04-14 03:33:28 UTC


README

Require the repo via composer require nateageek/robo-phplint

Usage

<?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();
  }
}