Skip to content

Commit 240eb12

Browse files
committed
Mark class as final
1 parent 868a333 commit 240eb12

6 files changed

+6
-6
lines changed

src/CodeListMiddleware.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
use OpenCodeModeling\CodeGenerator\Transformator\Exception\RuntimeException;
1414
use OpenCodeModeling\CodeGenerator\Workflow;
1515

16-
class CodeListMiddleware
16+
final class CodeListMiddleware
1717
{
1818
/**
1919
* @var callable

src/CodeListToFiles.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use OpenCodeModeling\CodeGenerator\Workflow;
1515
use OpenCodeModeling\CodeGenerator\Workflow\ComponentDescriptionWithInputSlotOnly;
1616

17-
class CodeListToFiles
17+
final class CodeListToFiles
1818
{
1919
/**
2020
* @var StringToFile

src/Exception/CouldNotReadFile.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
namespace OpenCodeModeling\CodeGenerator\Transformator\Exception;
1212

13-
class CouldNotReadFile extends RuntimeException
13+
final class CouldNotReadFile extends RuntimeException
1414
{
1515
public static function withFile(string $file): self
1616
{

src/PhpCodeSniffer.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
* include 'vendor/squizlabs/php_codesniffer/autoload.php';
2727
*/
28-
class PhpCodeSniffer
28+
final class PhpCodeSniffer
2929
{
3030
/**
3131
* @var Config

src/StringMiddleware.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
use OpenCodeModeling\CodeGenerator\Workflow;
1414

15-
class StringMiddleware
15+
final class StringMiddleware
1616
{
1717
/**
1818
* @var callable

src/StringToFile.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
use OpenCodeModeling\CodeGenerator\Workflow;
1515
use OpenCodeModeling\CodeGenerator\Workflow\ComponentDescriptionWithInputSlotOnly;
1616

17-
class StringToFile
17+
final class StringToFile
1818
{
1919
public function __invoke(string $data, string $filename): void
2020
{

0 commit comments

Comments
 (0)