Skip to content
This repository has been archived by the owner on Dec 5, 2024. It is now read-only.

Commit

Permalink
added "final" on classes + 'final_class' cs-fixer rule.
Browse files Browse the repository at this point in the history
  • Loading branch information
SebSept committed May 11, 2021
1 parent 6f111d4 commit 2e53529
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .php_cs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ $finder = PhpCsFixer\Finder::create()
;

$config = new PhpCsFixer\Config();
$config->setRiskyAllowed(true);
return $config->setRules([
'@Symfony' => true,
'header_comment' => [
Expand All @@ -18,6 +19,7 @@ return $config->setRules([
'concat_space' => [
'spacing' => 'one'
],
'final_class' => true
])
->setFinder($finder)
;
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use RuntimeException;
use Symfony\Component\Process\Process;

class PrestashopDevToolsCsFixer extends PrestashopDevTools
final class PrestashopDevToolsCsFixer extends PrestashopDevTools
{
const PHP_CS_CONFIGURATION_FILE = '/.php_cs.dist';

Expand Down
2 changes: 1 addition & 1 deletion src/Command/SebSept/HelloCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
use Symfony\Component\Console\Input\InputInterface;
use Symfony\Component\Console\Output\OutputInterface;

class HelloCommand extends BaseCommand
final class HelloCommand extends BaseCommand
{
protected function configure(): void
{
Expand Down
2 changes: 1 addition & 1 deletion src/Command/SebSept/IndexPhpFiller.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
use Symfony\Component\Filesystem\Filesystem;
use Symfony\Component\Finder\Finder;

class IndexPhpFiller extends ScriptCommand
final class IndexPhpFiller extends ScriptCommand
{
const SOURCE_INDEX_FILE = '/../../../resources/index.php';

Expand Down
2 changes: 1 addition & 1 deletion src/Composer/PsDevToolsCommandProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
use SebSept\PsDevToolsPlugin\Command\SebSept\HelloCommand;
use SebSept\PsDevToolsPlugin\Command\SebSept\IndexPhpFiller;

class PsDevToolsCommandProvider implements CommandProvider
final class PsDevToolsCommandProvider implements CommandProvider
{
public function getCommands(): array
{
Expand Down

0 comments on commit 2e53529

Please sign in to comment.