Minor - format code

pull/3924/head
Julio Montoya 4 years ago
parent a6dad856b8
commit 6148c3a191
  1. 21
      public/main/inc/lib/pear/HTML/QuickForm.php
  2. 7
      src/CoreBundle/Entity/Tool.php
  3. 2
      src/CoreBundle/Repository/AssetRepository.php

@ -1005,17 +1005,16 @@ class HTML_QuickForm extends HTML_Common
* To validate grouped elements as separated entities, * To validate grouped elements as separated entities,
* use addGroupRule instead of addRule. * use addGroupRule instead of addRule.
* *
* @param string|array $element Form element name * @param string|array $element Form element name
* @param string $message Message to display for invalid data * @param string $message Message to display for invalid data
* @param string $type Rule type, use getRegisteredRules() to get types * @param string $type Rule type, use getRegisteredRules() to get types
* @param string $format (optional)Required for extra rule data * @param string|array $format (optional) Required for extra rule data
* @param string $validation (optional)Where to perform validation: "server", "client" * @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 * @param boolean $reset Client-side validation: reset the form element to its original value if there is an
* error? * error?
* @param boolean $force Force the rule to be applied, even if the target form element does not exist * @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 * @param array|string $dependent needed when comparing values
* @since 1.0 *
* @access public
*/ */
public function addRule( public function addRule(
$element, $element,

@ -133,13 +133,10 @@ class Tool
return $this; return $this;
} }
/** /*public function getResourceTypeByName(string $name): ?ResourceType
* @return ResourceType
*/
public function getResourceTypeByName(string $name)
{ {
$criteria = Criteria::create()->where(Criteria::expr()->eq('name', $name)); $criteria = Criteria::create()->where(Criteria::expr()->eq('name', $name));
return $this->getResourceTypes()->matching($criteria)->first(); return $this->getResourceTypes()->matching($criteria)->first();
} }*/
} }

@ -85,7 +85,7 @@ class AssetRepository extends ServiceEntityRepository
return null; return null;
} }
public function getAssetUrl(Asset $asset) public function getAssetUrl(Asset $asset): string
{ {
if (Asset::SCORM === $asset->getCategory()) { if (Asset::SCORM === $asset->getCategory()) {
$params = [ $params = [

Loading…
Cancel
Save