Don't use is_null
This commit is contained in:
@@ -38,7 +38,7 @@ class SignupController extends Controller
|
||||
*/
|
||||
public function getSignup($code = null)
|
||||
{
|
||||
if (is_null($code)) {
|
||||
if ($code !== null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ class SignupController extends Controller
|
||||
*/
|
||||
public function postSignup($code = null)
|
||||
{
|
||||
if (is_null($code)) {
|
||||
if ($code !== null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
|
||||
@@ -71,7 +71,7 @@ class SubscribeController extends Controller
|
||||
*/
|
||||
public function getVerify($code = null)
|
||||
{
|
||||
if (is_null($code)) {
|
||||
if ($code !== null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ class SubscribeController extends Controller
|
||||
*/
|
||||
public function getUnsubscribe($code = null)
|
||||
{
|
||||
if (is_null($code)) {
|
||||
if ($code !== null) {
|
||||
throw new NotFoundHttpException();
|
||||
}
|
||||
|
||||
|
||||
@@ -62,6 +62,6 @@ class Invite extends Model
|
||||
*/
|
||||
public function claimed()
|
||||
{
|
||||
return !is_null($this->claimed_at);
|
||||
return $this->claimed_at !== null;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -69,7 +69,7 @@ class Subscriber extends Model implements HasPresenter
|
||||
*/
|
||||
public function verified()
|
||||
{
|
||||
return !is_null($this->verified_at);
|
||||
return $this->verified_at !== null;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user