Skip to content

Commit 5c9de2d

Browse files
committed
CS fixes
1 parent 79b8d3a commit 5c9de2d

File tree

6 files changed

+8
-8
lines changed

6 files changed

+8
-8
lines changed

src/LIN3S/SharedKernel/Domain/Model/Email/Email.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public function domain()
4747
return $this->domain;
4848
}
4949

50-
public function equals(Email $anEmail)
50+
public function equals(self $anEmail)
5151
{
5252
return mb_strtolower((string) $this) === mb_strtolower((string) $anEmail);
5353
}

src/LIN3S/SharedKernel/Domain/Model/Identity/Id.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public function id() : string
3838
return (string) $this->id;
3939
}
4040

41-
public function equals(Id $id) : bool
41+
public function equals(self $id) : bool
4242
{
4343
return $this->id() === $id->id();
4444
}

src/LIN3S/SharedKernel/Domain/Model/Locale/Locale.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function country()
7575
return $this->countries()[$this->countryCode()];
7676
}
7777

78-
public function equals(Locale $locale)
78+
public function equals(self $locale)
7979
{
8080
return $this->locale() === $locale->locale();
8181
}

src/LIN3S/SharedKernel/Domain/Model/Phone/Phone.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ private function __construct($phone, string $region = null)
4545
$this->setPhone($phone, $region);
4646
}
4747

48-
public function equals(Phone $phone) : bool
48+
public function equals(self $phone) : bool
4949
{
5050
return $this->phone() === $phone->phone();
5151
}

src/LIN3S/SharedKernel/Domain/Model/ZipCode/ZipCode.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function zipCode()
3737
return $this->zipCode;
3838
}
3939

40-
public function equals(ZipCode $zipCode)
40+
public function equals(self $zipCode)
4141
{
4242
return $this->zipCode() === $zipCode->zipCode();
4343
}

src/LIN3S/SharedKernel/Infrastructure/Persistence/Sql/Pdo.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public function query(string $sql, array $parameters = []) : array
3535

3636
public function count(string $sql, array $parameters = []) : int
3737
{
38-
return (int)$this->execute($sql, $parameters)->fetchColumn();
38+
return (int) $this->execute($sql, $parameters)->fetchColumn();
3939
}
4040

4141
public function insert(string $table, array $parameters) : void
@@ -69,11 +69,11 @@ public function update(string $table, array $parameters) : void
6969
$updates = 0;
7070

7171
foreach ($columns as $column => $value) {
72-
if ($updates !== 0) {
72+
if (0 !== $updates) {
7373
$sql .= ',';
7474
}
7575
$sql .= $column . '= ?';
76-
$updates++;
76+
++$updates;
7777
}
7878
$sql .= ' WHERE ' . array_keys($columns)[0] . '= ?';
7979
$values = array_values($columns);

0 commit comments

Comments
 (0)