1
0
Fork 0
mirror of https://codeberg.org/demostf/api.git synced 2026-06-03 18:04:08 +02:00
This commit is contained in:
Robin Appelman 2019-04-12 13:37:41 +02:00
commit 5986d8552d
5 changed files with 8 additions and 11 deletions

View file

@ -25,7 +25,6 @@ class UserController extends BaseController {
try {
$steamId = Parser::convertSteamIdToCommunityId($steamId);
} catch (\InvalidArgumentException $e) {
}
}
\Flight::json($this->userProvider->get($steamId));

View file

@ -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) {