mirror of
https://github.com/Karaka-Management/oms-Draw.git
synced 2026-01-24 20:08:41 +00:00
Automated formatting changes
This commit is contained in:
parent
11e77dc534
commit
a8d4c09950
|
|
@ -47,7 +47,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function validateDrawCreate(RequestAbstract $request): array
|
||||
private function validateDrawCreate(RequestAbstract $request) : array
|
||||
{
|
||||
$val = [];
|
||||
if (($val['title'] = empty($request->getData('title')))
|
||||
|
|
@ -72,7 +72,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
public function apiDrawCreate(RequestAbstract $request, ResponseAbstract $response, $data = null): void
|
||||
public function apiDrawCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void
|
||||
{
|
||||
if (!empty($val = $this->validateDrawCreate($request))) {
|
||||
$response->set('draw_create', new FormValidation($val));
|
||||
|
|
@ -132,7 +132,7 @@ final class ApiController extends Controller
|
|||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
private function createLocalFile(string $outputPath, string $raw): bool
|
||||
private function createLocalFile(string $outputPath, string $raw) : bool
|
||||
{
|
||||
$imageData = ImageUtils::decodeBase64Image($raw);
|
||||
File::put($outputPath, $imageData);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user