Adopt short array syntax

Since PHP 5.4 the short array syntax `[]` may be used instead of `array()`.
This commit is contained in:
Shift
2024-02-16 20:33:26 +00:00
parent ecb668a8f3
commit 51b30e55cd

View File

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