Mark classes as final

This commit is contained in:
Oliver Davies 2020-02-09 21:27:30 +00:00
parent 738031ec5d
commit c983048346
5 changed files with 5 additions and 5 deletions

View file

@ -15,7 +15,7 @@ use Symfony\Component\Finder\Finder;
use Symfony\Component\Finder\SplFileInfo;
use Tightenco\Collect\Support\Collection;
class GenerateDrupal7Command extends Command
final class GenerateDrupal7Command extends Command
{
private $moduleName;
private $machineName;

View file

@ -2,7 +2,7 @@
namespace Opdavies\DrupalModuleGenerator\Exception;
class CannotCreateModuleException extends \RuntimeException
final class CannotCreateModuleException extends \RuntimeException
{
public static function directoryAlreadyExists()
{

View file

@ -2,7 +2,7 @@
namespace Opdavies\DrupalModuleGenerator\Service;
class ModuleNameConverter
final class ModuleNameConverter
{
public function __invoke(string $moduleName)
{

View file

@ -2,7 +2,7 @@
namespace Opdavies\DrupalModuleGenerator\Service;
class TestNameConverter
final class TestNameConverter
{
public function __invoke(string $moduleName)
{

View file

@ -11,7 +11,7 @@ use PHPUnit\Framework\TestCase;
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;
class GenerateDrupal7ModuleCommandTest extends TestCase
final class GenerateDrupal7ModuleCommandTest extends TestCase
{
protected function tearDown(): void
{