Skip to content

Commit f8d491d

Browse files
authored
Merge pull request #19 from cidilabs/chuck/youtube-bug
Bug fix for Youtube test
2 parents 27a5244 + eba92e3 commit f8d491d

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

src/PhpAlly.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ public function checkMany($content, $ruleIds = [], $options = [])
3838
$report->setIssues($rule->getIssues());
3939
$report->setErrors($rule->getErrors());
4040
} catch (\Exception $e) {
41-
print($e->getLine());
4241
$report->setError($e->getMessage());
4342
}
4443
}

src/Video/Youtube.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,6 +138,6 @@ function getVideoData($link_url)
138138
return self::YOUTUBE_FAILED_REQUEST;
139139
}
140140

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

0 commit comments

Comments
 (0)