Skip to content

Commit

Permalink
Fix reviews output
Browse files Browse the repository at this point in the history
  • Loading branch information
ipowerful authored Aug 18, 2021
1 parent 5925508 commit 95869a9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Services/Place.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ public function photos()
*/
public function reviews()
{
$retArr = isset($this->attributes['reviews']) ? isset($this->attributes['reviews']) : [];
$retArr = isset($this->attributes['reviews']) ? $this->attributes['reviews'] : [];
return new Collection($retArr);
}

Expand Down Expand Up @@ -316,5 +316,4 @@ public function elevation($object = false)
$elevationStr = isset($firstResult['elevation']) ? round($firstResult['elevation'], 2) : false;
return !empty($object) ? $response : $elevationStr;
}

}
}

0 comments on commit 95869a9

Please sign in to comment.