Skip to content

Commit

Permalink
Make everything private and final
Browse files Browse the repository at this point in the history
  • Loading branch information
emodric committed Aug 9, 2019
1 parent 6e91ff0 commit 3fe9425
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion Core/FieldType/ContentTypeList/Type.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use eZ\Publish\Core\FieldType\Value as BaseValue;
use eZ\Publish\SPI\FieldType\Value as SPIValue;

class Type extends FieldType
final class Type extends FieldType
{
public function getFieldTypeIdentifier(): string
{
Expand Down
2 changes: 1 addition & 1 deletion Core/FieldType/ContentTypeList/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

use eZ\Publish\Core\FieldType\Value as BaseValue;

class Value extends BaseValue
final class Value extends BaseValue
{
/**
* The list of content type identifiers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
use eZ\Publish\SPI\Persistence\Content\FieldValue;
use eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition;

class ContentTypeListConverter implements Converter
final class ContentTypeListConverter implements Converter
{
public function toStorageValue(FieldValue $value, StorageFieldValue $storageFieldValue): void
{
Expand Down
2 changes: 1 addition & 1 deletion DependencyInjection/NetgenContentTypeListExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
use Symfony\Component\HttpKernel\DependencyInjection\Extension;
use Symfony\Component\Yaml\Yaml;

class NetgenContentTypeListExtension extends Extension implements PrependExtensionInterface
final class NetgenContentTypeListExtension extends Extension implements PrependExtensionInterface
{
public function load(array $configs, ContainerBuilder $container): void
{
Expand Down
2 changes: 1 addition & 1 deletion NetgenContentTypeListBundle.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

use Symfony\Component\HttpKernel\Bundle\Bundle;

class NetgenContentTypeListBundle extends Bundle
final class NetgenContentTypeListBundle extends Bundle
{
}
10 changes: 5 additions & 5 deletions Tests/Core/FieldType/ContentTypeList/TypeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,27 +11,27 @@
use Netgen\Bundle\ContentTypeListBundle\Core\FieldType\ContentTypeList\Value;
use PHPUnit\Framework\TestCase;

class TypeTest extends TestCase
final class TypeTest extends TestCase
{
/**
* @var Type
*/
protected $type;
private $type;

/**
* @var array
*/
protected $identifiers = ['identifier0', 'identifier1'];
private $identifiers = ['identifier0', 'identifier1'];

/**
* @var Value
*/
protected $value;
private $value;

/**
* @var Value
*/
protected $emptyValue;
private $emptyValue;

protected function setUp(): void
{
Expand Down
4 changes: 2 additions & 2 deletions Tests/Core/FieldType/ContentTypeList/ValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
use Netgen\Bundle\ContentTypeListBundle\Core\FieldType\ContentTypeList\Value;
use PHPUnit\Framework\TestCase;

class ValueTest extends TestCase
final class ValueTest extends TestCase
{
/**
* @var Value
*/
protected $value;
private $value;

protected function setUp(): void
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
use Netgen\Bundle\ContentTypeListBundle\Core\Persistence\Legacy\Content\FieldValue\Converter\ContentTypeListConverter;
use PHPUnit\Framework\TestCase;

class ContentTypeListConverterTest extends TestCase
final class ContentTypeListConverterTest extends TestCase
{
/**
* @var ContentTypeListConverter
*/
protected $converter;
private $converter;

protected function setUp(): void
{
Expand Down

0 comments on commit 3fe9425

Please sign in to comment.