for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Job;
use Basis\Job;
/**
* Example job for greeting
*/
class Hello extends Job
{
public $name = 'world';
public function run(HelloSomebody $dependency)
$dependency
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
if ($this->name === 'bazyaba') {
$this->confirm('bazyaba?');
}
$message = "hello $this->name!";
return compact('message');
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.