Apply fixes from StyleCI

This commit is contained in:
Nabeel Shahzad
2018-08-26 16:40:04 +00:00
committed by StyleCI Bot
parent 20f46adbc4
commit 9596d88b48
407 changed files with 4032 additions and 3286 deletions

View File

@@ -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 '';
}
});