Skip to content

Commit

Permalink
Tile::get not Tile::getTile.
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Baker committed May 14, 2016
1 parent ba26b81 commit 0603abf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions players/cautiousplayer.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,14 +35,14 @@ private function missingPieces($line) {
$missing = [];
if (get_class($sharedProperty) === Shape) {
foreach (Color::colors() as $color) {
$tile = Tile::getTile($color, $sharedProperty);
$tile = Tile::get($color, $sharedProperty);
if (!$line->contains($tile)) {
$missing[] = $tile;
}
}
} elseif (get_class($sharedProperty) === Color) {
foreach (Shape::shapes() as $shape) {
$tile = Tile::getTile($sharedProperty, $shape);
$tile = Tile::get($sharedProperty, $shape);
if (!$line->contains($tile)) {
$missing[] = $tile;
}
Expand Down
2 changes: 1 addition & 1 deletion tile.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ public static function allTiles() {
return self::$allTiles;
}

public static function getTile(Color $color, Shape $shape) {
public static function get(Color $color, Shape $shape) {
foreach (self::allTiles() as $tile) {
if ($tile->color() === $color && $tile->shape() === $shape) {
return $tile;
Expand Down

0 comments on commit 0603abf

Please sign in to comment.