PHP Linting (Pint)

This commit is contained in:
notnullxyz
2023-11-01 06:51:40 +00:00
committed by github-actions[bot]
parent 4cb82af4c1
commit 9ffdea3702

View File

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