for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace Health\Checks\Filesystem;
use Health\Checks\HealthCheckInterface;
use Health\Checks\BaseCheck;
class FileIsReadable extends BaseCheck implements HealthCheckInterface
{
/**
*
* {@inheritdoc}
* @see \Health\Checks\HealthCheckInterface::call()
*/
public function call()
$builder = $this->getBuilder();
$files = $this->getParam('files', []);
foreach ($files as $file) {
if (! is_file($file) || ! is_readable($file)) {
$builder->down()->withData('file', $file);
}
$builder->withData('files', $files);
return $builder->build();