More yoda conditions
This commit is contained in:
1 parent
d9122a410d
commit
0a4c81c105
97 files changed
+323
-289
No files matched your search
@@ -158,7 +158,7 @@ class Broadcast_Manager extends Base_Manager {
|
||||
);
|
||||
}
|
||||
|
||||
if ($args['type'] === 'broadcast_email') {
|
||||
if ('broadcast_email' === $args['type']) {
|
||||
$to = [];
|
||||
|
||||
$bcc = [];
|
||||
@@ -272,7 +272,7 @@ class Broadcast_Manager extends Base_Manager {
|
||||
|
||||
$broadcast = new Broadcast($broadcast_data);
|
||||
|
||||
if ($args['type'] === 'broadcast_notice') {
|
||||
if ('broadcast_notice' === $args['type']) {
|
||||
$broadcast->set_notice_type($args['notice_type']);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user