Skip to content

Commit

Permalink
Merge pull request #19 from cidilabs/chuck/youtube-bug
Browse files Browse the repository at this point in the history
Bug fix for Youtube test
  • Loading branch information
cidilabs authored Nov 4, 2021
2 parents 27a5244 + eba92e3 commit f8d491d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/PhpAlly.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public function checkMany($content, $ruleIds = [], $options = [])
$report->setIssues($rule->getIssues());
$report->setErrors($rule->getErrors());
} catch (\Exception $e) {
print($e->getLine());
$report->setError($e->getMessage());
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/Video/Youtube.php
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,6 @@ function getVideoData($link_url)
return self::YOUTUBE_FAILED_REQUEST;
}

return isset($result->items) ? $response->items : self::YOUTUBE_FAILED_REQUEST;
return isset($result->items) ? $result->items : self::YOUTUBE_FAILED_REQUEST;
}
}

0 comments on commit f8d491d

Please sign in to comment.