Source of file HasLicense.php
Size: 0,573 Bytes - Last Modified: 2021-12-23T10:42:13+00:00
/var/www/docs.ssmods.com/process/src/src/Commands/Checks/HasLicense.php
1234567891011121314151617181920212223242526272829303132 | <?php namespace Sunnysideup\ModuleChecks\Commands\Checks; use Sunnysideup\ModuleChecks\Commands\ChecksAbstract; class HasLicense extends ChecksAbstract { /** * should it be included by default? * @var bool */ private static $enabled = true; /** * what does it do? * @return string */ public function getDescription(): string { return 'Does the module have a LICENSE?'; } /** * @return boolean */ public function run(): bool { return $this->hasFileOnGitHub('LICENSE'); } } |