Skip to content

Commit

Permalink
Merge pull request #1739 from cultuurnet/III-6150-avoid-alias-functions
Browse files Browse the repository at this point in the history
III-6150 Avoid alias functions
  • Loading branch information
LucWollants authored Aug 7, 2024
2 parents 1c87a1a + c93ddfb commit ce61f48
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion app/Console/Command/ReplayCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
// since we cannot catch errors when multiple cdbids are giving
// and this Command is mostly run via Jenkins with exactly 1 cdbid
// we will only fix this for the first cdbid
if ($cdbids !== null && sizeof($cdbids) === 1) {
if ($cdbids !== null && count($cdbids) === 1) {
$this->purgeReadmodels($cdbids[0]);
}

Expand Down
12 changes: 6 additions & 6 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions features/Steps/RoleSteps.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public function rolesTestDataIsAvailable(): void
{
// Create role "Diest Validatoren"
$this->iSearchForARoleWithName('Diest validatoren');
if (sizeof($this->responseState->getJsonContent()['member']) === 0) {
if (count($this->responseState->getJsonContent()['member']) === 0) {
$this->createRole('Diest validatoren');
$uuidRoleDiest = $this->responseState->getJsonContent()['roleId'];
$this->iSetTheJsonRequestPayloadTo(new PyStringNode(['{ "query": "(regions:nis-24020 OR labels:UiTinMijnRegio)" }'], 0));
Expand All @@ -76,7 +76,7 @@ public function rolesTestDataIsAvailable(): void

// Create role "Scherpenheuvel Validatoren"
$this->iSearchForARoleWithName('Scherpenheuvel validatoren');
if (sizeof($this->responseState->getJsonContent()['member']) === 0) {
if (count($this->responseState->getJsonContent()['member']) === 0) {
$this->createRole('Scherpenheuvel validatoren');
$uuidRoleScherpenheuvel = $this->responseState->getJsonContent()['roleId'];
$this->iSetTheJsonRequestPayloadTo(new PyStringNode(['{"query": "regions:nis-24134"}'], 0));
Expand All @@ -91,7 +91,7 @@ public function rolesTestDataIsAvailable(): void

// Create role "Vlaams-Brabant validatoren"
$this->iSearchForARoleWithName('Provincie Vlaams-Brabant validatoren');
if (sizeof($this->responseState->getJsonContent()['member']) === 0) {
if (count($this->responseState->getJsonContent()['member']) === 0) {
$this->createRole('Provincie Vlaams-Brabant validatoren');
$uuidRolePvb = $this->responseState->getJsonContent()['roleId'];
$this->iSetTheJsonRequestPayloadTo(new PyStringNode(['{ "query": "regions:nis-20001" }'], 0));
Expand Down
2 changes: 1 addition & 1 deletion src/Geocoding/Coordinate/Coordinate.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ abstract class Coordinate

public function __construct(float $value)
{
if (!is_double($value)) {
if (!is_float($value)) {
throw new \InvalidArgumentException('Coordinate value should be of type double.');
}

Expand Down

0 comments on commit ce61f48

Please sign in to comment.