]> BookStack Code Mirror - bookstack/blobdiff - app/Entities/Tools/PageContent.php
Applied StyleCI changes, added php/larastan to attribution
[bookstack] / app / Entities / Tools / PageContent.php
index c5b17ddefbb038db62401c242340c78b0095a8a2..b1323bc68ac0f02b6f3f799a59a965c0f7953fb9 100644 (file)
@@ -149,15 +149,17 @@ class PageContent
 
     /**
      * Parse a base64 image URI into the data and extension.
+     *
      * @return array{extension: array, data: string}
      */
     protected function parseBase64ImageUri(string $uri): array
     {
         [$dataDefinition, $base64ImageData] = explode(',', $uri, 2);
         $extension = strtolower(preg_split('/[\/;]/', $dataDefinition)[1] ?? '');
+
         return [
             'extension' => $extension,
-            'data' => base64_decode($base64ImageData) ?: '',
+            'data'      => base64_decode($base64ImageData) ?: '',
         ];
     }