Mark classes as final
This commit is contained in:
parent
738031ec5d
commit
c983048346
|
@ -15,7 +15,7 @@ use Symfony\Component\Finder\Finder;
|
||||||
use Symfony\Component\Finder\SplFileInfo;
|
use Symfony\Component\Finder\SplFileInfo;
|
||||||
use Tightenco\Collect\Support\Collection;
|
use Tightenco\Collect\Support\Collection;
|
||||||
|
|
||||||
class GenerateDrupal7Command extends Command
|
final class GenerateDrupal7Command extends Command
|
||||||
{
|
{
|
||||||
private $moduleName;
|
private $moduleName;
|
||||||
private $machineName;
|
private $machineName;
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Opdavies\DrupalModuleGenerator\Exception;
|
namespace Opdavies\DrupalModuleGenerator\Exception;
|
||||||
|
|
||||||
class CannotCreateModuleException extends \RuntimeException
|
final class CannotCreateModuleException extends \RuntimeException
|
||||||
{
|
{
|
||||||
public static function directoryAlreadyExists()
|
public static function directoryAlreadyExists()
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Opdavies\DrupalModuleGenerator\Service;
|
namespace Opdavies\DrupalModuleGenerator\Service;
|
||||||
|
|
||||||
class ModuleNameConverter
|
final class ModuleNameConverter
|
||||||
{
|
{
|
||||||
public function __invoke(string $moduleName)
|
public function __invoke(string $moduleName)
|
||||||
{
|
{
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
namespace Opdavies\DrupalModuleGenerator\Service;
|
namespace Opdavies\DrupalModuleGenerator\Service;
|
||||||
|
|
||||||
class TestNameConverter
|
final class TestNameConverter
|
||||||
{
|
{
|
||||||
public function __invoke(string $moduleName)
|
public function __invoke(string $moduleName)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,7 +11,7 @@ use PHPUnit\Framework\TestCase;
|
||||||
use Symfony\Component\Filesystem\Filesystem;
|
use Symfony\Component\Filesystem\Filesystem;
|
||||||
use Symfony\Component\Finder\Finder;
|
use Symfony\Component\Finder\Finder;
|
||||||
|
|
||||||
class GenerateDrupal7ModuleCommandTest extends TestCase
|
final class GenerateDrupal7ModuleCommandTest extends TestCase
|
||||||
{
|
{
|
||||||
protected function tearDown(): void
|
protected function tearDown(): void
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue