Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
ARC-Support
public projects
lou-server
Commits
8cf07da3
Commit
8cf07da3
authored
Nov 04, 2020
by
Maik Messerschmidt
Browse files
Improved submit-result command.
parent
e6bc13be
Changes
1
Hide whitespace changes
Inline
Side-by-side
app/Console/Commands/SubmitResult.php
View file @
8cf07da3
...
...
@@ -43,9 +43,15 @@ class SubmitResult extends Command
$data
=
fread
(
$file
,
filesize
(
$filename
));
fclose
(
$file
);
$decoded
=
json_decode
(
$data
);
if
(
$decoded
===
null
)
{
$this
->
error
(
"File doesn't contain valid JSON."
);
return
1
;
}
Result
::
create
([
'id'
=>
null
,
'data'
=>
$d
ata
,
'data'
=>
$d
ecoded
,
'ip'
=>
'127.0.0.1'
,
'session_id'
=>
'ARTISAN_COMMAND'
,
]);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment