diff --git a/src/PhpAlly.php b/src/PhpAlly.php index 76fed4d..686642e 100644 --- a/src/PhpAlly.php +++ b/src/PhpAlly.php @@ -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()); } } diff --git a/src/Video/Youtube.php b/src/Video/Youtube.php index da394db..b1b80ea 100644 --- a/src/Video/Youtube.php +++ b/src/Video/Youtube.php @@ -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; } }