Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
JonasVHG committed Mar 6, 2024
1 parent d767206 commit c958fd0
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 13 deletions.
11 changes: 2 additions & 9 deletions src/Core/Event/ConsumerTypeInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,7 @@ interface ConsumerTypeInterface
const CONSUMER_TYPE_LIVE = 'live';
const CONSUMER_TYPE_TEST = 'test';

/**
* @return string
*/
public function getType();
public function getType(): string;

/**
* @param string $type
* @return QueueConsumers
*/
public function setType($type);
public function setType(string $type): ?QueueConsumers;
}
4 changes: 2 additions & 2 deletions src/Core/Event/QueueConsumers.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ public function __construct($type, $start = 0, $max = 100)
$this->max = $max;
}

public function getType()
public function getType(): string
{
return $this->type;
}

public function setType($type)
public function setType(string $type): ?QueueConsumers
{
$this->type = $type;
return $this;
Expand Down
5 changes: 3 additions & 2 deletions src/Core/Event/SyncConsumer.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,14 +40,15 @@ public function __construct($type, \CultureFeed_Consumer $consumer)
$this->consumerData['groups'] = implode(",", $consumer->group);
}

public function getType()
public function getType(): string
{
return $this->type;
}

public function setType($type)
public function setType(string $type): ?QueueConsumers
{
$this->type = $type;
return null;
}

/**
Expand Down
1 change: 1 addition & 0 deletions src/Entity/Project.php
Original file line number Diff line number Diff line change
Expand Up @@ -583,6 +583,7 @@ public function getContentFilter()
public function setContentFilter($contentFilter)
{
$this->contentFilter = $contentFilter;
return $this;
}

/**
Expand Down

0 comments on commit c958fd0

Please sign in to comment.