Skip to content

Commit

Permalink
Fix syntax error. Production php doesn't know about return types yet.
Browse files Browse the repository at this point in the history
  • Loading branch information
jlbooker committed Jan 2, 2018
1 parent fdf3f32 commit f46cda4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions class/TermFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ public static function getTermByTermCode(string $termCode) {
* in the database. Looks like: { 201840 => 'Fall 2018' }
* @return Array Associative array of term codes and their descriptions
*/
public static function getTermsAssoc(): array
public static function getTermsAssoc()
{
$db = PdoFactory::getPdoInstance();

Expand Down Expand Up @@ -65,7 +65,7 @@ public static function getNextTerm(Term $term) {
* Get an associative array of terms > current term
* in the database. Looks like: { raw_term => readable_string }
*/
public static function getFutureTermsAssoc(): array
public static function getFutureTermsAssoc()
{
$db = PdoFactory::getPdoInstance();

Expand All @@ -78,7 +78,7 @@ public static function getFutureTermsAssoc(): array
return $terms;
}

public static function getAvailableTerms(): array
public static function getAvailableTerms()
{

$db = PdoFactory::getPdoInstance();
Expand All @@ -102,7 +102,7 @@ public static function getAvailableTerms(): array
* @param $targetTerm Term to decide if exists or not
* @return bool True if the given term eixsts in the database, false otherwise
*/
public static function termExists(string $targetTermCode): bool
public static function termExists(string $targetTermCode)
{
$terms = self::getTermsAssoc();

Expand Down

0 comments on commit f46cda4

Please sign in to comment.