From 51b30e55cd1ad6b73188cbe716fc86c2104d19af Mon Sep 17 00:00:00 2001 From: Shift Date: Fri, 16 Feb 2024 20:33:26 +0000 Subject: [PATCH] Adopt short array syntax Since PHP 5.4 the short array syntax `[]` may be used instead of `array()`. --- app/Http/Controllers/ItemController.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/Http/Controllers/ItemController.php b/app/Http/Controllers/ItemController.php index 86e1c491..77f7baa4 100644 --- a/app/Http/Controllers/ItemController.php +++ b/app/Http/Controllers/ItemController.php @@ -214,12 +214,12 @@ class ItemController extends Controller 'icon' => $path, ]); } elseif (strpos($request->input('icon'), 'http') === 0) { - $options = array( - "ssl" => array( + $options = [ + "ssl" => [ "verify_peer" => false, "verify_peer_name" => false, - ), - ); + ], + ]; $file = $request->input('icon'); $path_parts = pathinfo($file);