for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace hiapi\endpoints;
use Closure;
trait EndpointProviderTrait
{
protected function run(string $className): \Closure
return static function ($input, callable $next) use ($className) {
$next
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.
return \Yii::$container->get($className)->__invoke($input);
};
}
// TODO: move to internal project
protected function checkSelf(): Closure
return static function ($command, $next) {
return $next($command);
protected function input(array $inputOptions): array
// TODO: Take Tafid's Pact PR
return $inputOptions;
protected function output(array $inputOptions): array
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.