Skip to content

Commit 7a5d1da

Browse files
committed
Invert null check
1 parent 5270914 commit 7a5d1da

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/Models/Article.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ public function series()
8686

8787
public function updateSeries(Series $series = null): self
8888
{
89-
if (null === $series) {
89+
if ($series === null) {
9090
return $this->removeSeries();
9191
}
9292

@@ -126,7 +126,7 @@ public function isSubmitted(): bool
126126

127127
public function isNotSubmitted(): bool
128128
{
129-
return null === $this->submitted_at;
129+
return $this->submitted_at === null;
130130
}
131131

132132
public function isApproved(): bool
@@ -136,7 +136,7 @@ public function isApproved(): bool
136136

137137
public function isNotApproved(): bool
138138
{
139-
return null === $this->approved_at;
139+
return $this->approved_at === null;
140140
}
141141

142142
public function isPublished(): bool
@@ -156,7 +156,7 @@ public function isPinned(): bool
156156

157157
public function isNotShared(): bool
158158
{
159-
return null === $this->shared_at;
159+
return $this->shared_at === null;
160160
}
161161

162162
public function isShared(): bool

0 commit comments

Comments
 (0)