Skip to content

Commit

Permalink
Merge pull request #1785 from cultuurnet/III-6308-remove-unneeded-inh…
Browse files Browse the repository at this point in the history
…eritdoc-comments

III-6308 Remove unneeded inheritdoc comments
  • Loading branch information
LucWollants authored Sep 12, 2024
2 parents 1380d2c + 1faafbf commit 5b0e020
Show file tree
Hide file tree
Showing 26 changed files with 3 additions and 90 deletions.
6 changes: 0 additions & 6 deletions app/Migrations/Version20150817113039.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class Version20150817113039 extends AbstractMigration
{
/**
* @inheritdoc
*/
public function up(Schema $schema): void
{
$table = $schema->createTable('index_readmodel');
Expand Down Expand Up @@ -48,9 +45,6 @@ public function up(Schema $schema): void
$table->setPrimaryKey(['entity_id', 'entity_type']);
}

/**
* @inheritdoc
*/
public function down(Schema $schema): void
{
$schema->dropTable('index_readmodel');
Expand Down
3 changes: 0 additions & 3 deletions src/CommandHandling/Udb3CommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
*/
abstract class Udb3CommandHandler implements CommandHandler
{
/**
* {@inheritDoc}
*/
public function handle($command): void
{
$method = $this->getHandleMethod($command);
Expand Down
3 changes: 0 additions & 3 deletions src/Event/EventFacilityResolver.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class EventFacilityResolver extends OfferFacilityResolver
{
/**
* @inheritdoc
*/
final protected function getFacilities(): array
{
return [
Expand Down
3 changes: 0 additions & 3 deletions src/History/Log.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@ public function withDate(DateTime $dateTime): Log
return $log;
}

/**
* @inheritdoc
*/
public function jsonSerialize(): array
{
$log = [
Expand Down
3 changes: 0 additions & 3 deletions src/Http/Deserializer/Event/CreateEventDataValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public function __construct()
->withValidator(new RequiredPropertiesDataValidator(['mainLanguage']));
}

/**
* @inheritdoc
*/
public function validate(array $data): void
{
$this->validator->validate($data);
Expand Down
3 changes: 0 additions & 3 deletions src/Http/Deserializer/Place/CreatePlaceDataValidator.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public function __construct()
->withValidator(new RequiredPropertiesDataValidator(['mainLanguage']));
}

/**
* @inheritdoc
*/
public function validate(array $data): void
{
$this->validator->validate($data);
Expand Down
3 changes: 0 additions & 3 deletions src/Http/Response/JsonLdResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@

class JsonLdResponse extends JsonResponse
{
/**
* @inheritdoc
*/
public function __construct($data = null, $status = 200, ?HeadersInterface $headers = null)
{
if (!($headers instanceof HeadersInterface)) {
Expand Down
3 changes: 0 additions & 3 deletions src/Label/ReadModels/JSON/Repository/Entity.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,6 @@ public function isExcluded(): bool
return $this->excluded;
}

/**
* @inheritdoc
*/
public function jsonSerialize(): array
{
return [
Expand Down
3 changes: 0 additions & 3 deletions src/Log/ContextEnrichingLogger.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,6 @@ public function __construct(LoggerInterface $decoratee, array $context)
$this->context = $context;
}

/**
* {@inheritdoc}
*/
public function log($level, $message, array $context = []): void
{
$enrichedContext = $this->context + $context;
Expand Down
11 changes: 3 additions & 8 deletions src/Log/SocketIOEmitterHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

namespace CultuurNet\UDB3\Log;

use Monolog\Formatter\FormatterInterface;
use Monolog\Formatter\NormalizerFormatter;
use Monolog\Handler\AbstractProcessingHandler;
use Monolog\Logger;
Expand All @@ -27,21 +28,15 @@ public function __construct(Emitter $emitter, $level = Logger::DEBUG, $bubble =
$this->emitter = $emitter;
}

/**
* {@inheritdoc}
*/
protected function write(array $record)
protected function write(array $record): void
{
$event = $record['formatted']['message'];
$data = $record['formatted']['context'];

$this->emitter->emit($event, $data);
}

/**
* @inheritdoc
*/
protected function getDefaultFormatter()
protected function getDefaultFormatter(): FormatterInterface
{
return new NormalizerFormatter();
}
Expand Down
3 changes: 0 additions & 3 deletions src/Model/Event/ImmutableEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,6 @@ public function withAudienceType(AudienceType $audience): ImmutableEvent
return $c;
}

/**
* @inheritdoc
*/
protected function guardCalendarType(Calendar $calendar): void
{
// Any calendar is fine for events.
Expand Down
3 changes: 0 additions & 3 deletions src/Model/Place/ImmutablePlace.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,6 @@ public static function getNilLocationId(): UUID
return new UUID('00000000-0000-0000-0000-000000000000');
}

/**
* @inheritdoc
*/
protected function guardCalendarType(Calendar $calendar): void
{
if (!($calendar instanceof CalendarWithOpeningHours)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,6 @@ private function getParts(string $data, string $class, ?string $format): array
];
}

/**
* @inheritdoc
*/
public function supportsDenormalization($data, $type, $format = null): bool
{
return $type === AgeRange::class;
Expand Down
3 changes: 0 additions & 3 deletions src/Model/ValueObject/Calendar/CalendarType.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,6 @@
*/
class CalendarType extends Enum
{
/**
* @inheritdoc
*/
public static function getAllowedValues(): array
{
return [
Expand Down
3 changes: 0 additions & 3 deletions src/Model/ValueObject/Calendar/OpeningHours/Day.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,6 @@
*/
class Day extends Enum
{
/**
* @inheritdoc
*/
public static function getAllowedValues(): array
{
return [
Expand Down
3 changes: 0 additions & 3 deletions src/Model/ValueObject/Calendar/StatusType.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
*/
class StatusType extends Enum
{
/**
* @inheritdoc
*/
public static function getAllowedValues(): array
{
return [
Expand Down
3 changes: 0 additions & 3 deletions src/Offer/OfferCommandHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,6 @@ public function __construct(
$this->mediaManager = $mediaManager;
}

/**
* {@inheritdoc}
*/
public function handle($command): void
{
$commandName = get_class($command);
Expand Down
6 changes: 0 additions & 6 deletions src/Offer/ReadModel/JSONLD/CdbXmlContactInfoImporter.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@ class CdbXmlContactInfoImporter implements CdbXmlContactInfoImporterInterface
{
use MultilingualJsonLDProjectorTrait;

/**
* @inheritdoc
*/
public function importBookingInfo(
\stdClass $jsonLD,
\CultureFeed_Cdb_Data_ContactInfo $contactInfo,
Expand Down Expand Up @@ -77,9 +74,6 @@ public function importBookingInfo(
}
}

/**
* @inheritdoc
*/
public function importContactPoint(
\stdClass $jsonLD,
\CultureFeed_Cdb_Data_ContactInfo $contactInfo
Expand Down
3 changes: 0 additions & 3 deletions src/Role/Events/AbstractEvent.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@ public function getUuid(): UUID
return $this->uuid;
}

/**
* @inheritdoc
*/
public function serialize(): array
{
return ['uuid' => $this->getUuid()->toString()];
Expand Down
3 changes: 0 additions & 3 deletions src/SavedSearches/UDB3SavedSearchRepository.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,9 +99,6 @@ public function delete(
$queryBuilder->execute();
}

/**
* @inheritdoc
*/
public function ownedByCurrentUser(): array
{
$queryBuilder = $this->connection->createQueryBuilder()
Expand Down
3 changes: 0 additions & 3 deletions tests/EventExport/Format/HTML/HTMLFileWriterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -511,9 +511,6 @@ protected function assertHTMLFileContents(string $html, string $filePath): void
$this->assertEquals($html, SampleFiles::read($filePath));
}

/**
* @inheritdoc
*/
public function tearDown(): void
{
if ($this->filePath && file_exists($this->filePath)) {
Expand Down
3 changes: 0 additions & 3 deletions tests/Label/CommandHandlerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ public function setUp(): void
parent::setUp();
}

/**
* @inheritdoc
*/
protected function createCommandHandler(
EventStore $eventStore,
EventBus $eventBus
Expand Down
4 changes: 0 additions & 4 deletions tests/Model/Offer/MockImmutableOffer.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,7 @@

class MockImmutableOffer extends ImmutableOffer
{
/**
* @inheritdoc
*/
protected function guardCalendarType(Calendar $calendar): void
{
return;
}
}
3 changes: 0 additions & 3 deletions tests/StringFilter/StringFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@ abstract class StringFilterTest extends TestCase

protected StringFilterInterface $filter;

/**
* {@inheritdoc}
*/
public function setUp(): void
{
parent::setUp();
Expand Down
3 changes: 0 additions & 3 deletions tests/StringFilter/StripSourceStringFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

class StripSourceStringFilterTest extends StringFilterTest
{
/**
* {@inheritdoc}
*/
protected string $filterClass = StripSourceStringFilter::class;

/**
Expand Down
3 changes: 0 additions & 3 deletions tests/StringFilter/TidyStringFilterTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

class TidyStringFilterTest extends StringFilterTest
{
/**
* {@inheritdoc}
*/
protected string $filterClass = TidyStringFilter::class;

/**
Expand Down

0 comments on commit 5b0e020

Please sign in to comment.