Skip to content

Commit 1f79079

Browse files
BenjaminBenjamin
authored andcommitted
Updated to use strict identical operator in status checks
1 parent 6a4013e commit 1f79079

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Parse/ParsePushStatus.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ public function getPushStatus()
116116
*/
117117
public function isScheduled()
118118
{
119-
return $this->getPushStatus() == self::STATUS_SCHEDULED;
119+
return $this->getPushStatus() === self::STATUS_SCHEDULED;
120120

121121
}
122122

@@ -127,7 +127,7 @@ public function isScheduled()
127127
*/
128128
public function isPending()
129129
{
130-
return $this->getPushStatus() == self::STATUS_PENDING;
130+
return $this->getPushStatus() === self::STATUS_PENDING;
131131

132132
}
133133

@@ -138,7 +138,7 @@ public function isPending()
138138
*/
139139
public function isRunning()
140140
{
141-
return $this->getPushStatus() == self::STATUS_RUNNING;
141+
return $this->getPushStatus() === self::STATUS_RUNNING;
142142

143143
}
144144

@@ -149,7 +149,7 @@ public function isRunning()
149149
*/
150150
public function hasSucceeded()
151151
{
152-
return $this->getPushStatus() == self::STATUS_SUCCEEDED;
152+
return $this->getPushStatus() === self::STATUS_SUCCEEDED;
153153

154154
}
155155

@@ -160,7 +160,7 @@ public function hasSucceeded()
160160
*/
161161
public function hasFailed()
162162
{
163-
return $this->getPushStatus() == self::STATUS_FAILED;
163+
return $this->getPushStatus() === self::STATUS_FAILED;
164164

165165
}
166166

0 commit comments

Comments
 (0)