Apply fixes from StyleCI
This commit is contained in:
committed by
StyleCI Bot
parent
20f46adbc4
commit
9596d88b48
@@ -7,7 +7,6 @@ use Log;
|
||||
|
||||
/**
|
||||
* Base class for implementing retrieving METARs
|
||||
* @package App\Interfaces
|
||||
*/
|
||||
abstract class Metar
|
||||
{
|
||||
@@ -15,20 +14,25 @@ abstract class Metar
|
||||
* Implement retrieving the METAR- Return the string
|
||||
* Needs to be protected, since this shouldn't be
|
||||
* directly called. Call `get_metar($icao)` instead
|
||||
*
|
||||
* @param $icao
|
||||
*
|
||||
* @return mixed
|
||||
*/
|
||||
abstract protected function metar($icao): string;
|
||||
|
||||
/**
|
||||
* @param $icao
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
//abstract protected function taf($icao): string;
|
||||
|
||||
/**
|
||||
* Download the METAR, wrap in caching
|
||||
*
|
||||
* @param $icao
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
public function get_metar($icao): string
|
||||
@@ -43,7 +47,7 @@ abstract class Metar
|
||||
Log::error('Error getting METAR: '.$e->getMessage(), $e->getTrace());
|
||||
return '';
|
||||
} catch (\Exception $e) {
|
||||
Log::error('Error getting METAR: '. $e->getMessage(), $e->getTrace());
|
||||
Log::error('Error getting METAR: '.$e->getMessage(), $e->getTrace());
|
||||
return '';
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user