Skip to content

Commit

Permalink
Merge pull request #25 from richardjkeys/nodimensionoverview
Browse files Browse the repository at this point in the history
Added use for Str and modified check for a rows keys prop
  • Loading branch information
schulzefelix authored Sep 18, 2020
2 parents 8dc7256 + 857273c commit 92364a4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/SearchConsoleClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
use GuzzleHttp\Client;
use Illuminate\Support\Arr;
use Illuminate\Support\Collection;
use Illuminate\Support\Str;

class SearchConsoleClient
{
Expand Down Expand Up @@ -67,7 +68,7 @@ public function performQuery($siteUrl, $rows, $request): Collection
* https://productforums.google.com/forum/?hl=en#!topic/webmasters/wF_Rm9CGr4U
*/

if (count($row->getKeys())) {
if (is_array($row->getKeys()) && count($row->getKeys())) {
$item = array_combine($request->getDimensions(), $row->getKeys());
$uniqueHash = $this->getUniqueItemHash($row, $request);
} else {
Expand Down

0 comments on commit 92364a4

Please sign in to comment.