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,
* 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,

@ -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();
}
}*/
}

@ -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 = [

Loading…
Cancel
Save