Skip to content

Commit

Permalink
rm abstract getLanguage
Browse files Browse the repository at this point in the history
  • Loading branch information
pjaudiomv committed Dec 13, 2023
1 parent 032dfab commit cee2895
Show file tree
Hide file tree
Showing 12 changed files with 8 additions and 52 deletions.
5 changes: 0 additions & 5 deletions src/FetchMeditation/EnglishJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class EnglishJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$data = HttpUtility::httpGet('https://www.jftna.org/jft/');
Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/EnglishSPAD.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class EnglishSPAD extends SPAD
{
public function getLanguage(): SPADLanguage
{
return $this->settings->language;
}

public function fetch(): SPADEntry
{

Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/FrenchJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class FrenchJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$data = HttpUtility::httpGet('https://jpa.narcotiquesanonymes.org/');
Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/GermanJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class GermanJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$data = HttpUtility::httpGet('https://narcotics-anonymous.de/artikel/nur-fuer-heute/');
Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/ItalianJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class ItalianJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$data = HttpUtility::httpGet('https://na-italia.org/get-jft');
Expand Down
5 changes: 4 additions & 1 deletion src/FetchMeditation/JFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ public function __construct(JFTSettings $settings)

abstract protected function fetch();

abstract protected function getLanguage();
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public static function getInstance(JFTSettings $settings): JFT
{
Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/JapaneseJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class JapaneseJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$data = HttpUtility::httpGet('https://najapan.org/just_for_today/');
Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/PortugueseJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class PortugueseJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$data = HttpUtility::httpGet('https://www.na.org.br/meditacao/');
Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/RussianJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class RussianJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$data = HttpUtility::httpGet('https://na-russia.org/eg');
Expand Down
5 changes: 4 additions & 1 deletion src/FetchMeditation/SPAD.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,10 @@ public function __construct(SPADSettings $settings)

abstract protected function fetch();

abstract protected function getLanguage();
public function getLanguage(): SPADLanguage
{
return $this->settings->language;
}

public static function getInstance(SPADSettings $settings): SPAD
{
Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/SpanishJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class SpanishJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$timezone = new \DateTimeZone('America/Mexico_City');
Expand Down
5 changes: 0 additions & 5 deletions src/FetchMeditation/SwedishJFT.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@

class SwedishJFT extends JFT
{
public function getLanguage(): JFTLanguage
{
return $this->settings->language;
}

public function fetch(): JFTEntry
{
$data = HttpUtility::httpGet('https://www.nasverige.org/dagens-text/');
Expand Down

0 comments on commit cee2895

Please sign in to comment.