Skip to content
This repository has been archived by the owner on Mar 30, 2023. It is now read-only.

Commit

Permalink
fix sample response paths
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonnx committed Nov 20, 2018
1 parent a636780 commit 26c819e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DarkSkySampleResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ class DarkSkySampleResponse
{
public static function forecast()
{
$contents = @file_get_contents('../resources/forecast.json');
$contents = @file_get_contents(__DIR__.'/../resources/forecast.json');
if ($contents === false) {
return null;
}
Expand All @@ -16,7 +16,7 @@ public static function forecast()

public static function forecastExtendedHourly()
{
$contents = @file_get_contents('../resources/forecast_extended_hourly.json');
$contents = @file_get_contents(__DIR__.'/../resources/forecast_extended_hourly.json');
if ($contents === false) {
return null;
}
Expand All @@ -26,7 +26,7 @@ public static function forecastExtendedHourly()

public static function timemachine()
{
$contents = @file_get_contents('../resources/timemachine.json');
$contents = @file_get_contents(__DIR__.'/../resources/timemachine.json');
if ($contents === false) {
return null;
}
Expand Down

0 comments on commit 26c819e

Please sign in to comment.