Skip to content

Commit

Permalink
[5.4] Removes redundant isset (#17880)
Browse files Browse the repository at this point in the history
Removes an redundant isset call.

! empty($foo[1]) is the same thing as isset($foo[1]) && $foo[1].
  • Loading branch information
nunomaduro authored and taylorotwell committed Feb 10, 2017
1 parent 96d18d9 commit 8800252
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Illuminate/Queue/Jobs/JobName.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public static function parse($job)
*/
public static function resolve($name, $payload)
{
if (isset($payload['displayName']) && ! empty($payload['displayName'])) {
if (! empty($payload['displayName'])) {
return $payload['displayName'];
}

Expand Down

0 comments on commit 8800252

Please sign in to comment.