Skip to content

Commit 0c49657

Browse files
committed
NGSTACK-842 remove redundant handlertype enum
1 parent fe70e4e commit 0c49657

File tree

8 files changed

+0
-52
lines changed

8 files changed

+0
-52
lines changed

bundle/DependencyInjection/Configuration.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
namespace Netgen\Bundle\IbexaScheduledVisibilityBundle\DependencyInjection;
66

7-
use Netgen\Bundle\IbexaScheduledVisibilityBundle\Enums\HandlerType;
87
use Symfony\Component\Config\Definition\Builder\ArrayNodeDefinition;
98
use Symfony\Component\Config\Definition\Builder\TreeBuilder;
109
use Symfony\Component\Config\Definition\ConfigurationInterface;

bundle/Enums/HandlerType.php

Lines changed: 0 additions & 18 deletions
This file was deleted.

bundle/ScheduledVisibility/Handler/Content.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Ibexa\Contracts\Core\Repository\ContentService;
88
use Ibexa\Contracts\Core\Repository\Repository;
99
use Ibexa\Contracts\Core\Repository\Values\Content\Content as ContentValue;
10-
use Netgen\Bundle\IbexaScheduledVisibilityBundle\Enums\HandlerType;
1110
use Netgen\Bundle\IbexaScheduledVisibilityBundle\ScheduledVisibility\ScheduledVisibilityInterface;
1211

1312
final class Content implements ScheduledVisibilityInterface
@@ -40,9 +39,4 @@ public function isVisible(ContentValue $content): bool
4039
{
4140
return !$content->contentInfo->isHidden();
4241
}
43-
44-
public function getType(): HandlerType
45-
{
46-
return HandlerType::Content;
47-
}
4842
}

bundle/ScheduledVisibility/Handler/ContentAndLocation.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Ibexa\Contracts\Core\Repository\LocationService;
99
use Ibexa\Contracts\Core\Repository\Repository;
1010
use Ibexa\Contracts\Core\Repository\Values\Content\Content;
11-
use Netgen\Bundle\IbexaScheduledVisibilityBundle\Enums\HandlerType;
1211
use Netgen\Bundle\IbexaScheduledVisibilityBundle\ScheduledVisibility\ScheduledVisibilityInterface;
1312

1413
final class ContentAndLocation implements ScheduledVisibilityInterface
@@ -73,9 +72,4 @@ public function isVisible(Content $content): bool
7372

7473
return true;
7574
}
76-
77-
public function getType(): HandlerType
78-
{
79-
return HandlerType::ContentAndLocation;
80-
}
8175
}

bundle/ScheduledVisibility/Handler/Location.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77
use Ibexa\Contracts\Core\Repository\LocationService;
88
use Ibexa\Contracts\Core\Repository\Repository;
99
use Ibexa\Contracts\Core\Repository\Values\Content\Content;
10-
use Netgen\Bundle\IbexaScheduledVisibilityBundle\Enums\HandlerType;
1110
use Netgen\Bundle\IbexaScheduledVisibilityBundle\ScheduledVisibility\ScheduledVisibilityInterface;
1211

1312
final class Location implements ScheduledVisibilityInterface
@@ -60,9 +59,4 @@ public function isVisible(Content $content): bool
6059

6160
return true;
6261
}
63-
64-
public function getType(): HandlerType
65-
{
66-
return HandlerType::Location;
67-
}
6862
}

bundle/ScheduledVisibility/Handler/ObjectState.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
use Ibexa\Contracts\Core\Repository\Values\Content\Content;
1111
use Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectState as ObjectStateValue;
1212
use Ibexa\Contracts\Core\Repository\Values\ObjectState\ObjectStateGroup;
13-
use Netgen\Bundle\IbexaScheduledVisibilityBundle\Enums\HandlerType;
1413
use Netgen\Bundle\IbexaScheduledVisibilityBundle\ScheduledVisibility\ScheduledVisibilityInterface;
1514

1615
final class ObjectState implements ScheduledVisibilityInterface
@@ -43,11 +42,6 @@ public function reveal(Content $content): void
4342
$this->setObjectState($content, $visibleObjectStateId);
4443
}
4544

46-
public function getType(): HandlerType
47-
{
48-
return HandlerType::ObjectState;
49-
}
50-
5145
/**
5246
* @throws NotFoundException
5347
*/

bundle/ScheduledVisibility/Handler/Section.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
use Ibexa\Contracts\Core\Repository\Repository;
99
use Ibexa\Contracts\Core\Repository\SectionService;
1010
use Ibexa\Contracts\Core\Repository\Values\Content\Content;
11-
use Netgen\Bundle\IbexaScheduledVisibilityBundle\Enums\HandlerType;
1211
use Netgen\Bundle\IbexaScheduledVisibilityBundle\ScheduledVisibility\ScheduledVisibilityInterface;
1312

1413
final class Section implements ScheduledVisibilityInterface
@@ -34,11 +33,6 @@ public function reveal(Content $content): void
3433
$this->assignSection($content, $visibleSectionId);
3534
}
3635

37-
public function getType(): HandlerType
38-
{
39-
return HandlerType::Section;
40-
}
41-
4236
public function isHidden(Content $content): bool
4337
{
4438
return $content->getContentInfo()->getSectionId() === $this->hiddenSectionId;

bundle/ScheduledVisibility/ScheduledVisibilityInterface.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Netgen\Bundle\IbexaScheduledVisibilityBundle\ScheduledVisibility;
66

77
use Ibexa\Contracts\Core\Repository\Values\Content\Content;
8-
use Netgen\Bundle\IbexaScheduledVisibilityBundle\Enums\HandlerType;
98

109
interface ScheduledVisibilityInterface
1110
{
@@ -16,6 +15,4 @@ public function reveal(Content $content): void;
1615
public function isHidden(Content $content): bool;
1716

1817
public function isVisible(Content $content): bool;
19-
20-
public function getType(): HandlerType;
2118
}

0 commit comments

Comments
 (0)