Skip to content

Commit

Permalink
style: prettier php
Browse files Browse the repository at this point in the history
  • Loading branch information
AndreasMaros committed Jan 15, 2024
1 parent 7952c9e commit e245222
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/MediaUploadScripts.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,7 @@ class MediaUploadScripts extends Singleton

public static function registerScripts(): void
{
wp_register_script(
self::SCRIPT_HANDLE,
'',
[],
);
wp_register_script(self::SCRIPT_HANDLE, '', []);
}

public static function enqueueScripts(): void
Expand All @@ -35,7 +31,9 @@ private function enqueue(): void
{
$this->hasBeenEnqueued = true;
wp_enqueue_script(self::SCRIPT_HANDLE);
$scriptContent = file_get_contents(__DIR__ . '/../js/dist/media-upload.js');
$scriptContent = file_get_contents(
__DIR__ . '/../js/dist/media-upload.js',
);
wp_add_inline_script(self::SCRIPT_HANDLE, $scriptContent);
}
}

0 comments on commit e245222

Please sign in to comment.