Skip to content
This repository was archived by the owner on Aug 12, 2022. It is now read-only.

Commit 5e97067

Browse files
committed
[FIX] modif intent if no intent
1 parent 05e1173 commit 5e97067

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

src/Response.php

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,7 @@ public function all($name)
8181
*/
8282
public function intent()
8383
{
84-
if ($this->intents[0]) {
85-
return ($this->intents[0]);
86-
}
87-
88-
return (null);
84+
return ($this->intents[0] || null);
8985
}
9086

9187
/**

0 commit comments

Comments
 (0)