From 6148c3a19126ad76e96b5f249e42f55d294064ec Mon Sep 17 00:00:00 2001 From: Julio Montoya Date: Mon, 21 Jun 2021 15:14:15 +0200 Subject: [PATCH] Minor - format code --- public/main/inc/lib/pear/HTML/QuickForm.php | 21 +++++++++---------- src/CoreBundle/Entity/Tool.php | 7 ++----- src/CoreBundle/Repository/AssetRepository.php | 2 +- 3 files changed, 13 insertions(+), 17 deletions(-) diff --git a/public/main/inc/lib/pear/HTML/QuickForm.php b/public/main/inc/lib/pear/HTML/QuickForm.php index 1bbb8da0e8..dcca0c1797 100644 --- a/public/main/inc/lib/pear/HTML/QuickForm.php +++ b/public/main/inc/lib/pear/HTML/QuickForm.php @@ -1005,17 +1005,16 @@ class HTML_QuickForm extends HTML_Common * To validate grouped elements as separated entities, * use addGroupRule instead of addRule. * - * @param string|array $element Form element name - * @param string $message Message to display for invalid data - * @param string $type Rule type, use getRegisteredRules() to get types - * @param string $format (optional)Required for extra rule data - * @param string $validation (optional)Where to perform validation: "server", "client" - * @param boolean $reset Client-side validation: reset the form element to its original value if there is an - * error? - * @param boolean $force Force the rule to be applied, even if the target form element does not exist - * @param array|string $dependent needed when comparing values - * @since 1.0 - * @access public + * @param string|array $element Form element name + * @param string $message Message to display for invalid data + * @param string $type Rule type, use getRegisteredRules() to get types + * @param string|array $format (optional) Required for extra rule data + * @param string $validation (optional)Where to perform validation: "server", "client" + * @param boolean $reset Client-side validation: reset the form element to its original value if there is an + * error? + * @param boolean $force Force the rule to be applied, even if the target form element does not exist + * @param array|string $dependent needed when comparing values + * */ public function addRule( $element, diff --git a/src/CoreBundle/Entity/Tool.php b/src/CoreBundle/Entity/Tool.php index c51dd2456e..fa2ba3070a 100644 --- a/src/CoreBundle/Entity/Tool.php +++ b/src/CoreBundle/Entity/Tool.php @@ -133,13 +133,10 @@ class Tool return $this; } - /** - * @return ResourceType - */ - public function getResourceTypeByName(string $name) + /*public function getResourceTypeByName(string $name): ?ResourceType { $criteria = Criteria::create()->where(Criteria::expr()->eq('name', $name)); return $this->getResourceTypes()->matching($criteria)->first(); - } + }*/ } diff --git a/src/CoreBundle/Repository/AssetRepository.php b/src/CoreBundle/Repository/AssetRepository.php index 60459565f1..7802d873b6 100644 --- a/src/CoreBundle/Repository/AssetRepository.php +++ b/src/CoreBundle/Repository/AssetRepository.php @@ -85,7 +85,7 @@ class AssetRepository extends ServiceEntityRepository return null; } - public function getAssetUrl(Asset $asset) + public function getAssetUrl(Asset $asset): string { if (Asset::SCORM === $asset->getCategory()) { $params = [