Skip to content

Commit

Permalink
phpcs, review comment
Browse files Browse the repository at this point in the history
  • Loading branch information
driusan committed Jan 23, 2024
1 parent a33d89c commit b99b837
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions modules/my_preferences/php/userpreferencewidget.class.inc
Original file line number Diff line number Diff line change
Expand Up @@ -20,22 +20,20 @@ class UserPreferenceWidget implements \LORIS\GUI\Widget
* @param string $componentname The React component name for this widget.
* @param array $props Additional React props to pass to the React
* component.
* @param ?int $width The width in the CSS grid.
* @param ?int $height The height in the CSS grid.
* @param ?int $order The order in the CSS grid.
*/
public function __construct(
public string $title,
public string $jsurl,
public string $componentname,
public array $props,
) { }
) {
}

/**
* Renders the widget within a preference panel and implements
* the \LORIS\GUI\Widget interface.
*
* @return string the HTML content of the widget to be rendered
* @return string the URL to the javascript which contains the React component
*/
public function __toString()
{
Expand Down

0 comments on commit b99b837

Please # to comment.