Skip to content

Commit f4a4114

Browse files
author
Alexandru Bucur
authored
Merge pull request #145 from lucasmichot/feature/optimize-or
Optimize or conditions.
2 parents c849ac8 + 9b0711e commit f4a4114

File tree

6 files changed

+6
-6
lines changed

6 files changed

+6
-6
lines changed

src/MessageBird/Resources/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public function processRequest($body)
158158
{
159159
$body = @json_decode($body);
160160

161-
if ($body === null or $body === false) {
161+
if ($body === null || $body === false) {
162162
throw new Exceptions\ServerException('Got an invalid JSON response from the server.');
163163
}
164164

src/MessageBird/Resources/Conversation/Messages.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ public function processRequest($body)
172172
{
173173
$body = @json_decode($body);
174174

175-
if ($body === null or $body === false) {
175+
if ($body === null || $body === false) {
176176
throw new ServerException('Got an invalid JSON response from the server.');
177177
}
178178

src/MessageBird/Resources/Voice/Base.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function processRequest($body)
5252
{
5353
$body = @json_decode($body);
5454

55-
if ($body === null or $body === false) {
55+
if ($body === null || $body === false) {
5656
throw new Exceptions\ServerException('Got an invalid JSON response from the server.');
5757
}
5858

src/MessageBird/Resources/Voice/Legs.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ public function processRequest($body)
109109
{
110110
$body = @json_decode($body);
111111

112-
if ($body === null or $body === false) {
112+
if ($body === null || $body === false) {
113113
throw new Exceptions\ServerException('Got an invalid JSON response from the server.');
114114
}
115115

src/MessageBird/Resources/Voice/Recordings.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ public function processRequest($body)
140140
{
141141
$body = @json_decode($body);
142142

143-
if ($body === null or $body === false) {
143+
if ($body === null || $body === false) {
144144
throw new Exceptions\ServerException('Got an invalid JSON response from the server.');
145145
}
146146

src/MessageBird/Resources/Voice/Transcriptions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ public function processRequest($body)
150150
{
151151
$body = @json_decode($body);
152152

153-
if ($body === null or $body === false) {
153+
if ($body === null || $body === false) {
154154
throw new Exceptions\ServerException('Got an invalid JSON response from the server.');
155155
}
156156

0 commit comments

Comments
 (0)