Skip to content

Commit

Permalink
re #4: added getFourLevels
Browse files Browse the repository at this point in the history
  • Loading branch information
Jacky Liang committed Feb 15, 2015
1 parent 4702c40 commit 26124eb
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions PollenBuddy.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ class PollenBuddy {
// Number of characters to strip before getting to the data
const CITY_HTML = 20;
const POLLEN_TYPE_HTML = 13;
const LEVELS = 6;
const LEVELS = 3;
const DATES = 6;

/**
Expand Down Expand Up @@ -125,7 +125,7 @@ public function getFourDates() {
}

/**
* TODO: Finish getting the four pollen levels
* TODO: clean the levels data
* TODO: Set this as private and remove return once development is completed
* Get four forecasted levels
* @return array
Expand All @@ -137,7 +137,7 @@ public function getFourLevels() {

// Get the raw level
$rawLevel = $this->html
->find("td.text-center.even-four", $i)
->find("td.even-four", $i)
->plaintext;

// Clean the raw level
Expand Down

0 comments on commit 26124eb

Please sign in to comment.