PHP code example of nateageek / robo-phplint
1. Go to this page and download the library: Download nateageek/robo-phplint 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/ */
nateageek / robo-phplint example snippets
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();
}
}