PHP Linting (Pint)
This commit is contained in:
committed by
github-actions[bot]
parent
4cb82af4c1
commit
9ffdea3702
@@ -5,7 +5,6 @@ namespace App\Commands;
|
|||||||
use Carbon\Carbon;
|
use Carbon\Carbon;
|
||||||
use Illuminate\Console\Command;
|
use Illuminate\Console\Command;
|
||||||
use Illuminate\Support\Facades\Http;
|
use Illuminate\Support\Facades\Http;
|
||||||
use Illuminate\Http\Client;
|
|
||||||
|
|
||||||
class EcowittExportCommand extends Command
|
class EcowittExportCommand extends Command
|
||||||
{
|
{
|
||||||
@@ -95,7 +94,6 @@ class EcowittExportCommand extends Command
|
|||||||
|
|
||||||
$this->times = data_get($ecowitt, 'times', []);
|
$this->times = data_get($ecowitt, 'times', []);
|
||||||
|
|
||||||
|
|
||||||
// Temperature in C
|
// Temperature in C
|
||||||
$this->debug('fetch outTemp');
|
$this->debug('fetch outTemp');
|
||||||
$outdoorTemp = $this->getData($ecowitt, 'list.tempf.list.tempf');
|
$outdoorTemp = $this->getData($ecowitt, 'list.tempf.list.tempf');
|
||||||
@@ -164,11 +162,12 @@ class EcowittExportCommand extends Command
|
|||||||
$pressureAbs = $this->getData($ecowitt, 'list.pressure.list.baromabsin');
|
$pressureAbs = $this->getData($ecowitt, 'list.pressure.list.baromabsin');
|
||||||
|
|
||||||
foreach ($outdoorTemp as $date => $temp) {
|
foreach ($outdoorTemp as $date => $temp) {
|
||||||
if (!$temp) {
|
if (! $temp) {
|
||||||
$this->debug('Skipping a bogus index');
|
$this->debug('Skipping a bogus index');
|
||||||
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
$this->debug('unpacking $temp: ' . $temp);
|
$this->debug('unpacking $temp: '.$temp);
|
||||||
$tmp = [
|
$tmp = [
|
||||||
'time' => $date, // %Y-%m-%d %H:%M:%S
|
'time' => $date, // %Y-%m-%d %H:%M:%S
|
||||||
|
|
||||||
@@ -204,7 +203,7 @@ class EcowittExportCommand extends Command
|
|||||||
|
|
||||||
$outFile = getcwd()."/export_ecowitt_{$deviceId}.csv";
|
$outFile = getcwd()."/export_ecowitt_{$deviceId}.csv";
|
||||||
$this->export($outFile, $outputData);
|
$this->export($outFile, $outputData);
|
||||||
$this->debug('exported to output file: ' . $outFile);
|
$this->debug('exported to output file: '.$outFile);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user