mirror of
https://codeberg.org/demostf/api.git
synced 2026-06-04 02:14:06 +02:00
lint
This commit is contained in:
parent
a17fad62e7
commit
5986d8552d
5 changed files with 8 additions and 11 deletions
|
|
@ -5,9 +5,7 @@ declare(strict_types=1);
|
|||
namespace Demostf\API\Demo;
|
||||
|
||||
use Demostf\API\Controllers\TempController;
|
||||
use GuzzleHttp\Client;
|
||||
use GuzzleHttp\Exception\RequestException;
|
||||
use function GuzzleHttp\Psr7\stream_for;
|
||||
|
||||
/**
|
||||
* Wrapper around demo.js parser.
|
||||
|
|
@ -27,7 +25,7 @@ class RawParser {
|
|||
|
||||
public function parse(string $path): ?array {
|
||||
try {
|
||||
$command = $this->parserPath . " " . escapeshellarg($path);
|
||||
$command = $this->parserPath . ' ' . escapeshellarg($path);
|
||||
$output = shell_exec($command);
|
||||
$result = \GuzzleHttp\json_decode($output, true);
|
||||
if (null === $result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue