diff --git a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php index 745a0a87d4..1518361c79 100644 --- a/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php +++ b/src/Symfony/Bridge/Doctrine/DependencyInjection/AbstractDoctrineExtension.php @@ -129,11 +129,11 @@ abstract class AbstractDoctrineExtension extends Extension */ protected function setMappingDriverConfig(array $mappingConfig, $mappingName) { - if (is_dir($mappingConfig['dir'])) { - $this->drivers[$mappingConfig['type']][$mappingConfig['prefix']] = realpath($mappingConfig['dir']); - } else { + if (!is_dir($mappingConfig['dir'])) { throw new \InvalidArgumentException(sprintf('Invalid Doctrine mapping path given. Cannot load Doctrine mapping/bundle named "%s".', $mappingName)); } + + $this->drivers[$mappingConfig['type']][$mappingConfig['prefix']] = realpath($mappingConfig['dir']); } /** diff --git a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php index fdfd65421e..964fbdc935 100644 --- a/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php +++ b/src/Symfony/Bridge/Doctrine/Form/ChoiceList/EntityChoiceList.php @@ -16,6 +16,7 @@ use Symfony\Component\Form\Exception\StringCastException; use Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList; use Doctrine\Common\Persistence\ObjectManager; use Symfony\Component\PropertyAccess\PropertyAccessorInterface; +use Doctrine\Common\Persistence\Mapping\ClassMetadata; /** * A choice list presenting a list of Doctrine entities as choices. @@ -35,7 +36,7 @@ class EntityChoiceList extends ObjectChoiceList private $class; /** - * @var \Doctrine\Common\Persistence\Mapping\ClassMetadata + * @var ClassMetadata */ private $classMetadata; @@ -132,7 +133,7 @@ class EntityChoiceList extends ObjectChoiceList * * @return array * - * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface + * @see ChoiceListInterface */ public function getChoices() { @@ -148,7 +149,7 @@ class EntityChoiceList extends ObjectChoiceList * * @return array * - * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface + * @see ChoiceListInterface */ public function getValues() { @@ -165,7 +166,7 @@ class EntityChoiceList extends ObjectChoiceList * * @return array * - * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface + * @see ChoiceListInterface */ public function getPreferredViews() { @@ -182,7 +183,7 @@ class EntityChoiceList extends ObjectChoiceList * * @return array * - * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface + * @see ChoiceListInterface */ public function getRemainingViews() { @@ -200,7 +201,7 @@ class EntityChoiceList extends ObjectChoiceList * * @return array * - * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface + * @see ChoiceListInterface */ public function getChoicesForValues(array $values) { @@ -253,7 +254,7 @@ class EntityChoiceList extends ObjectChoiceList * * @return array * - * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface + * @see ChoiceListInterface */ public function getValuesForChoices(array $entities) { @@ -293,7 +294,7 @@ class EntityChoiceList extends ObjectChoiceList * * @return array * - * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface + * @see ChoiceListInterface */ public function getIndicesForChoices(array $entities) { @@ -333,7 +334,7 @@ class EntityChoiceList extends ObjectChoiceList * * @return array * - * @see Symfony\Component\Form\Extension\Core\ChoiceList\ChoiceListInterface + * @see ChoiceListInterface */ public function getIndicesForValues(array $values) { @@ -416,6 +417,8 @@ class EntityChoiceList extends ObjectChoiceList /** * Loads the list with entities. + * + * @throws StringCastException */ private function load() { diff --git a/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmExtension.php b/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmExtension.php index 3553b2c4ae..570cc8f189 100644 --- a/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmExtension.php +++ b/src/Symfony/Bridge/Doctrine/Form/DoctrineOrmExtension.php @@ -12,6 +12,7 @@ namespace Symfony\Bridge\Doctrine\Form; use Doctrine\Common\Persistence\ManagerRegistry; +use Symfony\Bridge\Doctrine\Form\Type\EntityType; use Symfony\Component\Form\AbstractExtension; use Symfony\Component\PropertyAccess\PropertyAccess; @@ -27,7 +28,7 @@ class DoctrineOrmExtension extends AbstractExtension protected function loadTypes() { return array( - new Type\EntityType($this->registry, PropertyAccess::createPropertyAccessor()), + new EntityType($this->registry, PropertyAccess::createPropertyAccessor()), ); } diff --git a/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php b/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php index b928bccfc7..4edf1043c5 100644 --- a/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php +++ b/src/Symfony/Bridge/Doctrine/Form/EventListener/MergeDoctrineCollectionListener.php @@ -23,7 +23,7 @@ use Symfony\Component\EventDispatcher\EventSubscriberInterface; * * @author Bernhard Schussek * - * @see Doctrine\Common\Collections\Collection + * @see Collection */ class MergeDoctrineCollectionListener implements EventSubscriberInterface { diff --git a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php index 40112462c6..feb170cb72 100644 --- a/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php +++ b/src/Symfony/Bridge/Doctrine/Security/RememberMe/DoctrineTokenProvider.php @@ -41,14 +41,14 @@ class DoctrineTokenProvider implements TokenProviderInterface * Doctrine DBAL database connection * F.ex. service id: doctrine.dbal.default_connection. * - * @var \Doctrine\DBAL\Connection + * @var Connection */ private $conn; /** * new DoctrineTokenProvider for the RemembeMe authentication service. * - * @param \Doctrine\DBAL\Connection $conn + * @param Connection $conn */ public function __construct(Connection $conn) { @@ -65,14 +65,10 @@ class DoctrineTokenProvider implements TokenProviderInterface $paramValues = array('series' => $series); $paramTypes = array('series' => \PDO::PARAM_STR); $stmt = $this->conn->executeQuery($sql, $paramValues, $paramTypes); - $row = $stmt->fetch(\PDO::FETCH_ASSOC); + $row = $stmt->fetch(\PDO::FETCH_ASSOC); + if ($row) { - return new PersistentToken($row['class'], - $row['username'], - $series, - $row['value'], - new \DateTime($row['lastUsed']) - ); + return new PersistentToken($row['class'], $row['username'], $series, $row['value'], new \DateTime($row['lastUsed'])); } throw new TokenNotFoundException('No token found.'); diff --git a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php index da66a4b9f6..e4bbcaff9b 100644 --- a/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php +++ b/src/Symfony/Bridge/Doctrine/Validator/Constraints/UniqueEntityValidator.php @@ -29,9 +29,6 @@ class UniqueEntityValidator extends ConstraintValidator */ private $registry; - /** - * @param ManagerRegistry $registry - */ public function __construct(ManagerRegistry $registry) { $this->registry = $registry; diff --git a/src/Symfony/Bridge/Monolog/Logger.php b/src/Symfony/Bridge/Monolog/Logger.php index b675069ef7..cf8b537bdf 100644 --- a/src/Symfony/Bridge/Monolog/Logger.php +++ b/src/Symfony/Bridge/Monolog/Logger.php @@ -55,7 +55,7 @@ class Logger extends BaseLogger implements LoggerInterface, DebugLoggerInterface } /** - * @see Symfony\Component\HttpKernel\Log\DebugLoggerInterface + * {@inheritdoc} */ public function getLogs() { @@ -67,7 +67,7 @@ class Logger extends BaseLogger implements LoggerInterface, DebugLoggerInterface } /** - * @see Symfony\Component\HttpKernel\Log\DebugLoggerInterface + * {@inheritdoc} */ public function countErrors() { diff --git a/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php b/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php index a11deed45b..04d4f80ad2 100644 --- a/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php +++ b/src/Symfony/Bridge/Propel1/Form/ChoiceList/ModelChoiceList.php @@ -11,11 +11,11 @@ namespace Symfony\Bridge\Propel1\Form\ChoiceList; -use ModelCriteria; -use BaseObject; -use Persistent; +use Symfony\Bridge\Propel1\Form\Type\ModelType; use Symfony\Component\Form\Exception\StringCastException; use Symfony\Component\Form\Extension\Core\ChoiceList\ObjectChoiceList; +use Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer; +use Symfony\Component\Form\Extension\Core\DataTransformer\ChoicesToValuesTransformer; use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; use Symfony\Component\OptionsResolver\Exception\MissingOptionsException; use Symfony\Component\PropertyAccess\PropertyAccessorInterface; @@ -40,14 +40,14 @@ class ModelChoiceList extends ObjectChoiceList /** * The query to retrieve the choices of this list. * - * @var ModelCriteria + * @var \ModelCriteria */ protected $query; /** * The query to retrieve the preferred choices for this list. * - * @var ModelCriteria + * @var \ModelCriteria */ protected $preferredQuery; @@ -68,16 +68,16 @@ class ModelChoiceList extends ObjectChoiceList /** * Constructor. * - * @see \Symfony\Bridge\Propel1\Form\Type\ModelType How to use the preferred choices. + * @see ModelType How to use the preferred choices. * * @param string $class The FQCN of the model class to be loaded. * @param string $labelPath A property path pointing to the property used for the choice labels. * @param array $choices An optional array to use, rather than fetching the models. - * @param ModelCriteria $queryObject The query to use retrieving model data from database. + * @param \ModelCriteria $queryObject The query to use retrieving model data from database. * @param string $groupPath A property path pointing to the property used to group the choices. - * @param array|ModelCriteria $preferred The preferred items of this choice. + * @param array|\ModelCriteria $preferred The preferred items of this choice. * Either an array if $choices is given, - * or a ModelCriteria to be merged with the $queryObject. + * or a \ModelCriteria to be merged with the $queryObject. * @param PropertyAccessorInterface $propertyAccessor The reflection graph for reading property paths. * * @throws MissingOptionsException when no model class is given @@ -101,7 +101,7 @@ class ModelChoiceList extends ObjectChoiceList $this->identifier = $this->query->getTableMap()->getPrimaryKeys(); $this->loaded = is_array($choices) || $choices instanceof \Traversable; - if ($preferred instanceof ModelCriteria) { + if ($preferred instanceof \ModelCriteria) { $this->preferredQuery = $preferred->mergeWith($this->query); } @@ -184,8 +184,8 @@ class ModelChoiceList extends ObjectChoiceList * * The choice option "expanded" is set to false. * * The current request is the submission of the selected value. * - * @see \Symfony\Component\Form\Extension\Core\DataTransformer\ChoicesToValuesTransformer::reverseTransform - * @see \Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer::reverseTransform + * @see ChoicesToValuesTransformer::reverseTransform() + * @see ChoiceToValueTransformer::reverseTransform() */ if (!$this->loaded) { if (1 === count($this->identifier)) { @@ -239,8 +239,8 @@ class ModelChoiceList extends ObjectChoiceList * It correlates with the performance optimization in {@link ModelChoiceList::getChoicesForValues()} * as it won't load the actual entries from the database. * - * @see \Symfony\Component\Form\Extension\Core\DataTransformer\ChoicesToValuesTransformer::transform - * @see \Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToValueTransformer::transform + * @see ChoicesToValuesTransformer::transform() + * @see ChoiceToValueTransformer::transform() */ if (1 === count($this->identifier)) { $values = array(); @@ -404,7 +404,7 @@ class ModelChoiceList extends ObjectChoiceList $models = (array) $this->query->find(); $preferred = array(); - if ($this->preferredQuery instanceof ModelCriteria) { + if ($this->preferredQuery instanceof \ModelCriteria) { $preferred = (array) $this->preferredQuery->find(); } @@ -435,12 +435,12 @@ class ModelChoiceList extends ObjectChoiceList return array(); } - if ($model instanceof Persistent) { + if ($model instanceof \Persistent) { return array($model->getPrimaryKey()); } - // readonly="true" models do not implement Persistent. - if ($model instanceof BaseObject && method_exists($model, 'getPrimaryKey')) { + // readonly="true" models do not implement \Persistent. + if ($model instanceof \BaseObject && method_exists($model, 'getPrimaryKey')) { return array($model->getPrimaryKey()); } diff --git a/src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php b/src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php index 6c5043f2c5..0101026794 100644 --- a/src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php +++ b/src/Symfony/Bridge/ProxyManager/LazyProxy/Instantiator/RuntimeInstantiator.php @@ -27,17 +27,13 @@ use Symfony\Component\DependencyInjection\LazyProxy\Instantiator\InstantiatorInt class RuntimeInstantiator implements InstantiatorInterface { /** - * @var \ProxyManager\Factory\LazyLoadingValueHolderFactory + * @var LazyLoadingValueHolderFactory */ private $factory; - /** - * Constructor. - */ public function __construct() { $config = new Configuration(); - $config->setGeneratorStrategy(new EvaluatingGeneratorStrategy()); $this->factory = new LazyLoadingValueHolderFactory($config); diff --git a/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php b/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php index bcc6a4ca48..2865879ec1 100644 --- a/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php +++ b/src/Symfony/Bridge/ProxyManager/LazyProxy/PhpDumper/ProxyDumper.php @@ -27,12 +27,12 @@ use Symfony\Component\DependencyInjection\LazyProxy\PhpDumper\DumperInterface; class ProxyDumper implements DumperInterface { /** - * @var \ProxyManager\ProxyGenerator\LazyLoadingValueHolderGenerator + * @var LazyLoadingValueHolderGenerator */ private $proxyGenerator; /** - * @var \ProxyManager\GeneratorStrategy\BaseGeneratorStrategy + * @var BaseGeneratorStrategy */ private $classGenerator; diff --git a/src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php b/src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php index 2510f24920..4d9919d16c 100644 --- a/src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php +++ b/src/Symfony/Bridge/Twig/Extension/HttpKernelExtension.php @@ -50,7 +50,7 @@ class HttpKernelExtension extends \Twig_Extension * * @return string The fragment content * - * @see Symfony\Component\HttpKernel\Fragment\FragmentHandler::render() + * @see FragmentHandler::render() */ public function renderFragment($uri, $options = array()) { @@ -69,7 +69,7 @@ class HttpKernelExtension extends \Twig_Extension * * @return string The fragment content * - * @see Symfony\Component\HttpKernel\Fragment\FragmentHandler::render() + * @see FragmentHandler::render() */ public function renderFragmentStrategy($strategy, $uri, $options = array()) { diff --git a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php index 7c441a8748..07f81f5878 100644 --- a/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php +++ b/src/Symfony/Bundle/FrameworkBundle/CacheWarmer/TemplateFinder.php @@ -55,7 +55,7 @@ class TemplateFinder implements TemplateFinderInterface $templates = array(); - foreach ($this->kernel->getBundles() as $name => $bundle) { + foreach ($this->kernel->getBundles() as $bundle) { $templates = array_merge($templates, $this->findTemplatesInBundle($bundle)); } diff --git a/src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php b/src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php index 7d1f16696a..a54f18294f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php +++ b/src/Symfony/Bundle/FrameworkBundle/Command/RouterMatchCommand.php @@ -72,7 +72,7 @@ EOF $traces = $matcher->getTraces($input->getArgument('path_info')); $matches = false; - foreach ($traces as $i => $trace) { + foreach ($traces as $trace) { if (TraceableUrlMatcher::ROUTE_ALMOST_MATCHES == $trace['level']) { $output->writeln(sprintf('Route "%s" almost matches but %s', $trace['name'], lcfirst($trace['log']))); } elseif (TraceableUrlMatcher::ROUTE_MATCHES == $trace['level']) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php b/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php index 58569d0983..8dc35f2962 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php +++ b/src/Symfony/Bundle/FrameworkBundle/Controller/Controller.php @@ -22,6 +22,7 @@ use Symfony\Component\Form\FormTypeInterface; use Symfony\Component\Form\Form; use Symfony\Component\Form\FormBuilder; use Symfony\Component\Routing\Generator\UrlGeneratorInterface; +use Symfony\Component\Security\Core\Authentication\Token\TokenInterface; use Doctrine\Bundle\DoctrineBundle\Registry; /** @@ -209,7 +210,7 @@ class Controller extends ContainerAware * * @throws \LogicException If SecurityBundle is not available * - * @see Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getUser() + * @see TokenInterface::getUser() */ public function getUser() { diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/ActionsHelper.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/ActionsHelper.php index 253d348547..d4a855d53b 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/ActionsHelper.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/ActionsHelper.php @@ -42,7 +42,7 @@ class ActionsHelper extends Helper * * @return string The fragment content * - * @see Symfony\Component\HttpKernel\Fragment\FragmentHandler::render() + * @see FragmentHandler::render() */ public function render($uri, array $options = array()) { diff --git a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php index c098be8cf6..9f001f7f3f 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php +++ b/src/Symfony/Bundle/FrameworkBundle/Templating/Helper/RequestHelper.php @@ -41,7 +41,7 @@ class RequestHelper extends Helper * * @return mixed * - * @see Symfony\Component\HttpFoundation\Request::get() + * @see Request::get() */ public function getParameter($key, $default = null) { diff --git a/src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php b/src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php index a976c585ee..74889454b2 100644 --- a/src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php +++ b/src/Symfony/Bundle/SecurityBundle/Command/InitAclCommand.php @@ -59,7 +59,7 @@ EOF try { $schema->addToSchema($connection->getSchemaManager()->createSchema()); } catch (SchemaException $e) { - $output->writeln("Aborting: ".$e->getMessage()); + $output->writeln('Aborting: '.$e->getMessage()); return 1; } diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php index 55d607d1e7..79afd37527 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/MainConfiguration.php @@ -49,7 +49,7 @@ class MainConfiguration implements ConfigurationInterface /** * Generates the configuration tree builder. * - * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder + * @return TreeBuilder The tree builder */ public function getConfigTreeBuilder() { diff --git a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php index d6e0bad243..00f251765a 100644 --- a/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php +++ b/src/Symfony/Bundle/SecurityBundle/DependencyInjection/SecurityExtension.php @@ -490,7 +490,7 @@ class SecurityExtension extends Extension } // Parses a tag and returns the id for the related user provider service - private function createUserDaoProvider($name, $provider, ContainerBuilder $container, $master = true) + private function createUserDaoProvider($name, $provider, ContainerBuilder $container) { $name = $this->getUserProviderId(strtolower($name)); diff --git a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/CsrfFormLoginBundle/Form/UserLoginFormType.php b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/CsrfFormLoginBundle/Form/UserLoginFormType.php index 21389efd07..11753cb126 100644 --- a/src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/CsrfFormLoginBundle/Form/UserLoginFormType.php +++ b/src/Symfony/Bundle/SecurityBundle/Tests/Functional/Bundle/CsrfFormLoginBundle/Form/UserLoginFormType.php @@ -40,7 +40,7 @@ class UserLoginFormType extends AbstractType } /** - * @see Symfony\Component\Form\AbstractType::buildForm() + * {@inheritdoc} */ public function buildForm(FormBuilderInterface $builder, array $options) { @@ -75,7 +75,7 @@ class UserLoginFormType extends AbstractType } /** - * @see Symfony\Component\Form\AbstractType::setDefaultOptions() + * {@inheritdoc} */ public function setDefaultOptions(OptionsResolverInterface $resolver) { @@ -89,7 +89,7 @@ class UserLoginFormType extends AbstractType } /** - * @see Symfony\Component\Form\FormTypeInterface::getName() + * {@inheritdoc} */ public function getName() { diff --git a/src/Symfony/Bundle/SecurityBundle/Twig/Extension/LogoutUrlExtension.php b/src/Symfony/Bundle/SecurityBundle/Twig/Extension/LogoutUrlExtension.php index 7fc00bc46a..8d28b3f246 100644 --- a/src/Symfony/Bundle/SecurityBundle/Twig/Extension/LogoutUrlExtension.php +++ b/src/Symfony/Bundle/SecurityBundle/Twig/Extension/LogoutUrlExtension.php @@ -22,18 +22,13 @@ class LogoutUrlExtension extends \Twig_Extension { private $helper; - /** - * Constructor. - * - * @param LogoutUrlHelper $helper - */ public function __construct(LogoutUrlHelper $helper) { $this->helper = $helper; } /** - * @see Twig_Extension::getFunctions() + * {@inheritdoc} */ public function getFunctions() { @@ -44,7 +39,7 @@ class LogoutUrlExtension extends \Twig_Extension } /** - * Generate the relative logout URL for the firewall. + * Generates the relative logout URL for the firewall. * * @param string $key The firewall key * @@ -56,7 +51,7 @@ class LogoutUrlExtension extends \Twig_Extension } /** - * Generate the absolute logout URL for the firewall. + * Generates the absolute logout URL for the firewall. * * @param string $key The firewall key * @@ -68,7 +63,7 @@ class LogoutUrlExtension extends \Twig_Extension } /** - * @see Twig_ExtensionInterface::getName() + * {@inheritdoc} */ public function getName() { diff --git a/src/Symfony/Bundle/TwigBundle/Command/LintCommand.php b/src/Symfony/Bundle/TwigBundle/Command/LintCommand.php index aa01ce6e7b..f18ce09d60 100644 --- a/src/Symfony/Bundle/TwigBundle/Command/LintCommand.php +++ b/src/Symfony/Bundle/TwigBundle/Command/LintCommand.php @@ -77,7 +77,6 @@ EOF throw new \RuntimeException(sprintf('File or directory "%s" is not readable', $filename)); } - $files = array(); if (is_file($filename)) { $files = array($filename); } elseif (is_dir($filename)) { diff --git a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php index 5e85512e9d..a20ca8c1a8 100644 --- a/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/TwigBundle/DependencyInjection/Configuration.php @@ -25,7 +25,7 @@ class Configuration implements ConfigurationInterface /** * Generates the configuration tree builder. * - * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder + * @return TreeBuilder The tree builder */ public function getConfigTreeBuilder() { diff --git a/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php b/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php index be96d69c04..3b08bd6859 100644 --- a/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php +++ b/src/Symfony/Bundle/TwigBundle/Extension/ActionsExtension.php @@ -12,6 +12,7 @@ namespace Symfony\Bundle\TwigBundle\Extension; use Symfony\Bundle\TwigBundle\TokenParser\RenderTokenParser; +use Symfony\Bundle\FrameworkBundle\Templating\Helper\ActionsHelper; use Symfony\Component\DependencyInjection\ContainerInterface; /** @@ -41,7 +42,7 @@ class ActionsExtension extends \Twig_Extension * @param string $uri A URI * @param array $options An array of options * - * @see Symfony\Bundle\FrameworkBundle\Controller\ControllerResolver::render() + * @see ActionsHelper::render() */ public function renderUri($uri, array $options = array()) { @@ -51,7 +52,7 @@ class ActionsExtension extends \Twig_Extension /** * Returns the token parser instance to add to the existing list. * - * @return array An array of Twig_TokenParser instances + * @return array An array of \Twig_TokenParser instances */ public function getTokenParsers() { diff --git a/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php b/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php index d171a8885f..f4a84bf568 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php +++ b/src/Symfony/Bundle/WebProfilerBundle/Controller/RouterController.php @@ -36,11 +36,7 @@ class RouterController $this->profiler = $profiler; $this->twig = $twig; $this->matcher = $matcher; - $this->routes = $routes; - - if (null === $this->routes && $this->matcher instanceof RouterInterface) { - $this->routes = $matcher->getRouteCollection(); - } + $this->routes = (null === $routes && $matcher instanceof RouterInterface) ? $matcher->getRouteCollection() : $routes; } /** diff --git a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php index 79ad59f870..4f84378f8d 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php +++ b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/Configuration.php @@ -27,7 +27,7 @@ class Configuration implements ConfigurationInterface /** * Generates the configuration tree builder. * - * @return \Symfony\Component\Config\Definition\Builder\TreeBuilder The tree builder + * @return TreeBuilder The tree builder */ public function getConfigTreeBuilder() { diff --git a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php index e4b4cb72a0..e5e84ae4f7 100644 --- a/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php +++ b/src/Symfony/Bundle/WebProfilerBundle/DependencyInjection/WebProfilerExtension.php @@ -25,7 +25,7 @@ use Symfony\Bundle\WebProfilerBundle\EventListener\WebDebugToolbarListener; * + * /> * * @author Fabien Potencier */ diff --git a/src/Symfony/Component/BrowserKit/Client.php b/src/Symfony/Component/BrowserKit/Client.php index b3f90a094d..7f640a7919 100644 --- a/src/Symfony/Component/BrowserKit/Client.php +++ b/src/Symfony/Component/BrowserKit/Client.php @@ -205,7 +205,7 @@ abstract class Client * * @return object|null A response instance * - * @see doRequest + * @see doRequest() * * @api */ @@ -234,7 +234,7 @@ abstract class Client * * @return object|null A Request instance * - * @see doRequest + * @see doRequest() * * @api */ diff --git a/src/Symfony/Component/Console/Command/Command.php b/src/Symfony/Component/Console/Command/Command.php index 771e45cee4..47e8432890 100644 --- a/src/Symfony/Component/Console/Command/Command.php +++ b/src/Symfony/Component/Console/Command/Command.php @@ -165,7 +165,7 @@ class Command * * @throws \LogicException When this abstract method is not implemented * - * @see setCode() + * @see setCode() */ protected function execute(InputInterface $input, OutputInterface $output) { diff --git a/src/Symfony/Component/Console/Input/ArgvInput.php b/src/Symfony/Component/Console/Input/ArgvInput.php index 1aa6a1f171..7234f75608 100644 --- a/src/Symfony/Component/Console/Input/ArgvInput.php +++ b/src/Symfony/Component/Console/Input/ArgvInput.php @@ -33,8 +33,8 @@ namespace Symfony\Component\Console\Input; * * @author Fabien Potencier * - * @see http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html - * @see http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02 + * @see http://www.gnu.org/software/libc/manual/html_node/Argument-Syntax.html + * @see http://www.opengroup.org/onlinepubs/009695399/basedefs/xbd_chap12.html#tag_12_02 * * @api */ diff --git a/src/Symfony/Component/Debug/ExceptionHandler.php b/src/Symfony/Component/Debug/ExceptionHandler.php index d957241fdb..9ab418c945 100644 --- a/src/Symfony/Component/Debug/ExceptionHandler.php +++ b/src/Symfony/Component/Debug/ExceptionHandler.php @@ -61,8 +61,8 @@ class ExceptionHandler * * @param \Exception $exception An \Exception instance * - * @see sendPhpResponse - * @see createResponse + * @see sendPhpResponse() + * @see createResponse() */ public function handle(\Exception $exception) { diff --git a/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php b/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php index bf8fcd87e8..897fafd4f1 100644 --- a/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php +++ b/src/Symfony/Component/EventDispatcher/ContainerAwareEventDispatcher.php @@ -103,7 +103,7 @@ class ContainerAwareEventDispatcher extends EventDispatcher } /** - * @see EventDispatcherInterface::hasListeners + * @see EventDispatcherInterface::hasListeners() */ public function hasListeners($eventName = null) { @@ -119,7 +119,7 @@ class ContainerAwareEventDispatcher extends EventDispatcher } /** - * @see EventDispatcherInterface::getListeners + * @see EventDispatcherInterface::getListeners() */ public function getListeners($eventName = null) { diff --git a/src/Symfony/Component/EventDispatcher/Event.php b/src/Symfony/Component/EventDispatcher/Event.php index 53a6ad33c5..ea89f56bcd 100644 --- a/src/Symfony/Component/EventDispatcher/Event.php +++ b/src/Symfony/Component/EventDispatcher/Event.php @@ -47,7 +47,7 @@ class Event /** * Returns whether further event listeners should be triggered. * - * @see Event::stopPropagation + * @see Event::stopPropagation() * * @return bool Whether propagation was already stopped for this event. * diff --git a/src/Symfony/Component/EventDispatcher/EventDispatcher.php b/src/Symfony/Component/EventDispatcher/EventDispatcher.php index 3700125f38..12c75fcafd 100644 --- a/src/Symfony/Component/EventDispatcher/EventDispatcher.php +++ b/src/Symfony/Component/EventDispatcher/EventDispatcher.php @@ -33,7 +33,7 @@ class EventDispatcher implements EventDispatcherInterface private $sorted = array(); /** - * @see EventDispatcherInterface::dispatch + * @see EventDispatcherInterface::dispatch() * * @api */ @@ -56,7 +56,7 @@ class EventDispatcher implements EventDispatcherInterface } /** - * @see EventDispatcherInterface::getListeners + * @see EventDispatcherInterface::getListeners() */ public function getListeners($eventName = null) { @@ -78,7 +78,7 @@ class EventDispatcher implements EventDispatcherInterface } /** - * @see EventDispatcherInterface::hasListeners + * @see EventDispatcherInterface::hasListeners() */ public function hasListeners($eventName = null) { @@ -86,7 +86,7 @@ class EventDispatcher implements EventDispatcherInterface } /** - * @see EventDispatcherInterface::addListener + * @see EventDispatcherInterface::addListener() * * @api */ @@ -97,7 +97,7 @@ class EventDispatcher implements EventDispatcherInterface } /** - * @see EventDispatcherInterface::removeListener + * @see EventDispatcherInterface::removeListener() */ public function removeListener($eventName, $listener) { @@ -113,7 +113,7 @@ class EventDispatcher implements EventDispatcherInterface } /** - * @see EventDispatcherInterface::addSubscriber + * @see EventDispatcherInterface::addSubscriber() * * @api */ @@ -133,7 +133,7 @@ class EventDispatcher implements EventDispatcherInterface } /** - * @see EventDispatcherInterface::removeSubscriber + * @see EventDispatcherInterface::removeSubscriber() */ public function removeSubscriber(EventSubscriberInterface $subscriber) { diff --git a/src/Symfony/Component/Finder/Adapter/AbstractAdapter.php b/src/Symfony/Component/Finder/Adapter/AbstractAdapter.php index c534a6015c..4ddd913174 100644 --- a/src/Symfony/Component/Finder/Adapter/AbstractAdapter.php +++ b/src/Symfony/Component/Finder/Adapter/AbstractAdapter.php @@ -228,7 +228,7 @@ abstract class AbstractAdapter implements AdapterInterface * isSupported in the adapters as the generic implementation provides a cache * layer. * - * @see isSupported + * @see isSupported() * * @return bool Whether the adapter is supported */ diff --git a/src/Symfony/Component/Finder/Comparator/NumberComparator.php b/src/Symfony/Component/Finder/Comparator/NumberComparator.php index 65326e7883..c8587dc5ba 100644 --- a/src/Symfony/Component/Finder/Comparator/NumberComparator.php +++ b/src/Symfony/Component/Finder/Comparator/NumberComparator.php @@ -30,7 +30,7 @@ namespace Symfony\Component\Finder\Comparator; * @copyright 2004-2005 Fabien Potencier * @copyright 2002 Richard Clamp * - * @see http://physics.nist.gov/cuu/Units/binary.html + * @see http://physics.nist.gov/cuu/Units/binary.html */ class NumberComparator extends Comparator { diff --git a/src/Symfony/Component/Finder/Finder.php b/src/Symfony/Component/Finder/Finder.php index 8aed2bcd02..0eeda75911 100644 --- a/src/Symfony/Component/Finder/Finder.php +++ b/src/Symfony/Component/Finder/Finder.php @@ -15,7 +15,17 @@ use Symfony\Component\Finder\Adapter\AdapterInterface; use Symfony\Component\Finder\Adapter\GnuFindAdapter; use Symfony\Component\Finder\Adapter\BsdFindAdapter; use Symfony\Component\Finder\Adapter\PhpAdapter; +use Symfony\Component\Finder\Comparator\DateComparator; +use Symfony\Component\Finder\Comparator\NumberComparator; use Symfony\Component\Finder\Exception\ExceptionInterface; +use Symfony\Component\Finder\Iterator\CustomFilterIterator; +use Symfony\Component\Finder\Iterator\DateRangeFilterIterator; +use Symfony\Component\Finder\Iterator\DepthRangeFilterIterator; +use Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator; +use Symfony\Component\Finder\Iterator\FilecontentFilterIterator; +use Symfony\Component\Finder\Iterator\FilenameFilterIterator; +use Symfony\Component\Finder\Iterator\SizeRangeFilterIterator; +use Symfony\Component\Finder\Iterator\SortableIterator; /** * Finder allows to build rules to find files and directories. @@ -202,8 +212,8 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\DepthRangeFilterIterator - * @see Symfony\Component\Finder\Comparator\NumberComparator + * @see DepthRangeFilterIterator + * @see NumberComparator * * @api */ @@ -229,8 +239,8 @@ class Finder implements \IteratorAggregate, \Countable * @return Finder The current Finder instance * * @see strtotime - * @see Symfony\Component\Finder\Iterator\DateRangeFilterIterator - * @see Symfony\Component\Finder\Comparator\DateComparator + * @see DateRangeFilterIterator + * @see DateComparator * * @api */ @@ -254,7 +264,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\FilenameFilterIterator + * @see FilenameFilterIterator * * @api */ @@ -272,7 +282,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\FilenameFilterIterator + * @see FilenameFilterIterator * * @api */ @@ -295,7 +305,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\FilecontentFilterIterator + * @see FilecontentFilterIterator */ public function contains($pattern) { @@ -316,7 +326,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\FilecontentFilterIterator + * @see FilecontentFilterIterator */ public function notContains($pattern) { @@ -339,7 +349,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\FilenameFilterIterator + * @see FilenameFilterIterator */ public function path($pattern) { @@ -362,7 +372,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\FilenameFilterIterator + * @see FilenameFilterIterator */ public function notPath($pattern) { @@ -382,8 +392,8 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\SizeRangeFilterIterator - * @see Symfony\Component\Finder\Comparator\NumberComparator + * @see SizeRangeFilterIterator + * @see NumberComparator * * @api */ @@ -401,7 +411,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator + * @see ExcludeDirectoryFilterIterator * * @api */ @@ -419,7 +429,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator + * @see ExcludeDirectoryFilterIterator * * @api */ @@ -441,7 +451,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\ExcludeDirectoryFilterIterator + * @see ExcludeDirectoryFilterIterator * * @api */ @@ -459,7 +469,7 @@ class Finder implements \IteratorAggregate, \Countable /** * Adds VCS patterns. * - * @see ignoreVCS + * @see ignoreVCS() * * @param string|string[] $pattern VCS patterns to ignore */ @@ -483,7 +493,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\SortableIterator + * @see SortableIterator * * @api */ @@ -501,7 +511,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\SortableIterator + * @see SortableIterator * * @api */ @@ -519,7 +529,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\SortableIterator + * @see SortableIterator * * @api */ @@ -539,7 +549,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\SortableIterator + * @see SortableIterator * * @api */ @@ -561,7 +571,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\SortableIterator + * @see SortableIterator * * @api */ @@ -581,7 +591,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\SortableIterator + * @see SortableIterator * * @api */ @@ -602,7 +612,7 @@ class Finder implements \IteratorAggregate, \Countable * * @return Finder The current Finder instance * - * @see Symfony\Component\Finder\Iterator\CustomFilterIterator + * @see CustomFilterIterator * * @api */ diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php index 358cc4cd17..d9d00ef7d1 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceList.php @@ -501,7 +501,7 @@ class ChoiceList implements ChoiceListInterface * * @return array The fixed choices. * - * @see fixChoice + * @see fixChoice() */ protected function fixChoices(array $choices) { diff --git a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceListInterface.php b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceListInterface.php index c74a666228..d205b92d4d 100644 --- a/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceListInterface.php +++ b/src/Symfony/Component/Form/Extension/Core/ChoiceList/ChoiceListInterface.php @@ -88,7 +88,7 @@ interface ChoiceListInterface * choice indices as keys on the lowest levels and the choice * group names in the keys of the higher levels * - * @see getPreferredValues + * @see getPreferredValues() */ public function getRemainingViews(); diff --git a/src/Symfony/Component/Form/Tests/FormBuilderTest.php b/src/Symfony/Component/Form/Tests/FormBuilderTest.php index 71cd70cfbb..c49d393b44 100644 --- a/src/Symfony/Component/Form/Tests/FormBuilderTest.php +++ b/src/Symfony/Component/Form/Tests/FormBuilderTest.php @@ -16,9 +16,7 @@ use Symfony\Component\Form\FormBuilder; class FormBuilderTest extends \PHPUnit_Framework_TestCase { private $dispatcher; - private $factory; - private $builder; protected function setUp() @@ -43,7 +41,7 @@ class FormBuilderTest extends \PHPUnit_Framework_TestCase * Changing the name is not allowed, otherwise the name and property path * are not synchronized anymore. * - * @see FormType::buildForm + * @see FormType::buildForm() */ public function testNoSetName() { diff --git a/src/Symfony/Component/HttpFoundation/File/UploadedFile.php b/src/Symfony/Component/HttpFoundation/File/UploadedFile.php index 6693742e27..98b1176063 100644 --- a/src/Symfony/Component/HttpFoundation/File/UploadedFile.php +++ b/src/Symfony/Component/HttpFoundation/File/UploadedFile.php @@ -139,7 +139,7 @@ class UploadedFile extends File * * @return string|null The mime type * - * @see getMimeType + * @see getMimeType() * * @api */ diff --git a/src/Symfony/Component/HttpFoundation/Request.php b/src/Symfony/Component/HttpFoundation/Request.php index 5756c49cbe..4544c090e5 100644 --- a/src/Symfony/Component/HttpFoundation/Request.php +++ b/src/Symfony/Component/HttpFoundation/Request.php @@ -1223,7 +1223,7 @@ class Request * * @api * - * @see getRealMethod + * @see getRealMethod() */ public function getMethod() { @@ -1247,7 +1247,7 @@ class Request * * @return string The request method * - * @see getMethod + * @see getMethod() */ public function getRealMethod() { diff --git a/src/Symfony/Component/HttpKernel/Client.php b/src/Symfony/Component/HttpKernel/Client.php index d1a29ef8d0..ca3f45b6bf 100644 --- a/src/Symfony/Component/HttpKernel/Client.php +++ b/src/Symfony/Component/HttpKernel/Client.php @@ -162,7 +162,7 @@ EOF; * If the size of a file is greater than the allowed size (from php.ini) then * an invalid UploadedFile is returned with an error set to UPLOAD_ERR_INI_SIZE. * - * @see Symfony\Component\HttpFoundation\File\UploadedFile + * @see UploadedFile * * @param array $files An array of files * diff --git a/src/Symfony/Component/HttpKernel/Controller/ControllerReference.php b/src/Symfony/Component/HttpKernel/Controller/ControllerReference.php index 22d6cd320d..3d1592e83a 100644 --- a/src/Symfony/Component/HttpKernel/Controller/ControllerReference.php +++ b/src/Symfony/Component/HttpKernel/Controller/ControllerReference.php @@ -11,6 +11,8 @@ namespace Symfony\Component\HttpKernel\Controller; +use Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface; + /** * Acts as a marker and a data holder for a Controller. * @@ -20,8 +22,7 @@ namespace Symfony\Component\HttpKernel\Controller; * * @author Fabien Potencier * - * @see Symfony\Component\HttpKernel\FragmentRenderer - * @see Symfony\Component\HttpKernel\Fragment\FragmentRendererInterface + * @see FragmentRendererInterface */ class ControllerReference { diff --git a/src/Symfony/Component/HttpKernel/Fragment/EsiFragmentRenderer.php b/src/Symfony/Component/HttpKernel/Fragment/EsiFragmentRenderer.php index 8ff0e6ad44..43f6520f5a 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/EsiFragmentRenderer.php +++ b/src/Symfony/Component/HttpKernel/Fragment/EsiFragmentRenderer.php @@ -56,7 +56,7 @@ class EsiFragmentRenderer extends RoutableFragmentRenderer * * alt: an alternative URI to render in case of an error * * comment: a comment to add when returning an esi:include tag * - * @see Symfony\Component\HttpKernel\HttpCache\ESI + * @see Esi */ public function render($uri, Request $request, array $options = array()) { diff --git a/src/Symfony/Component/HttpKernel/Fragment/FragmentRendererInterface.php b/src/Symfony/Component/HttpKernel/Fragment/FragmentRendererInterface.php index ae172df80d..b177c3ac12 100644 --- a/src/Symfony/Component/HttpKernel/Fragment/FragmentRendererInterface.php +++ b/src/Symfony/Component/HttpKernel/Fragment/FragmentRendererInterface.php @@ -19,8 +19,6 @@ use Symfony\Component\HttpFoundation\Response; * Interface implemented by all rendering strategies. * * @author Fabien Potencier - * - * @see Symfony\Component\HttpKernel\FragmentRenderer */ interface FragmentRendererInterface { diff --git a/src/Symfony/Component/HttpKernel/Tests/Fixtures/ExtensionPresentBundle/Command/BarCommand.php b/src/Symfony/Component/HttpKernel/Tests/Fixtures/ExtensionPresentBundle/Command/BarCommand.php index 0eb420f789..f3fd14b55d 100644 --- a/src/Symfony/Component/HttpKernel/Tests/Fixtures/ExtensionPresentBundle/Command/BarCommand.php +++ b/src/Symfony/Component/HttpKernel/Tests/Fixtures/ExtensionPresentBundle/Command/BarCommand.php @@ -3,11 +3,12 @@ namespace Symfony\Component\HttpKernel\Tests\Fixtures\ExtensionPresentBundle\Command; use Symfony\Component\Console\Command\Command; +use Symfony\Component\HttpKernel\Bundle; /** * This command has a required parameter on the constructor and will be ignored by the default Bundle implementation. * - * @see Symfony\Component\HttpKernel\Bundle\Bundle::registerCommands + * @see Bundle::registerCommands() */ class BarCommand extends Command { diff --git a/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php b/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php index 56a92a1cb8..b35b943dd4 100644 --- a/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php +++ b/src/Symfony/Component/Intl/NumberFormatter/NumberFormatter.php @@ -510,7 +510,7 @@ class NumberFormatter * * @return bool|string The parsed value of false on error * - * @see http://www.php.net/manual/en/numberformatter.parse.php + * @see http://www.php.net/manual/en/numberformatter.parse.php */ public function parse($value, $type = self::TYPE_DOUBLE, &$position = 0) { diff --git a/src/Symfony/Component/Intl/Resources/stubs/Collator.php b/src/Symfony/Component/Intl/Resources/stubs/Collator.php index 3886f5cbd6..2e73e5aace 100644 --- a/src/Symfony/Component/Intl/Resources/stubs/Collator.php +++ b/src/Symfony/Component/Intl/Resources/stubs/Collator.php @@ -9,13 +9,16 @@ * file that was distributed with this source code. */ +use Symfony\Component\Intl\Collator\Collator as IntlCollator; +use Symfony\Component\Intl\Collator\StubCollator; + /** * Stub implementation for the Collator class of the intl extension. * * @author Bernhard Schussek * - * @see \Symfony\Component\Intl\Collator\StubCollator + * @see StubCollator */ -class Collator extends \Symfony\Component\Intl\Collator\Collator +class Collator extends IntlCollator { } diff --git a/src/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php b/src/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php index 38bb50e14f..e5209b62cc 100644 --- a/src/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php +++ b/src/Symfony/Component/Intl/Resources/stubs/IntlDateFormatter.php @@ -9,13 +9,15 @@ * file that was distributed with this source code. */ +use Symfony\Component\Intl\DateFormatter\IntlDateFormatter as BaseIntlDateFormatter; + /** * Stub implementation for the IntlDateFormatter class of the intl extension. * * @author Bernhard Schussek * - * @see \Symfony\Component\Intl\DateFormatter\IntlDateFormatter + * @see BaseIntlDateFormatter */ -class IntlDateFormatter extends \Symfony\Component\Intl\DateFormatter\IntlDateFormatter +class IntlDateFormatter extends BaseIntlDateFormatter { } diff --git a/src/Symfony/Component/Intl/Resources/stubs/Locale.php b/src/Symfony/Component/Intl/Resources/stubs/Locale.php index 704c8e3be1..8a3b89bc3e 100644 --- a/src/Symfony/Component/Intl/Resources/stubs/Locale.php +++ b/src/Symfony/Component/Intl/Resources/stubs/Locale.php @@ -9,13 +9,15 @@ * file that was distributed with this source code. */ +use Symfony\Component\Intl\Locale\Locale as IntlLocale; + /** * Stub implementation for the Locale class of the intl extension. * * @author Bernhard Schussek * - * @see \Symfony\Component\Intl\Locale\Locale + * @see IntlLocale */ -class Locale extends \Symfony\Component\Intl\Locale\Locale +class Locale extends IntlLocale { } diff --git a/src/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php b/src/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php index 0ab6562958..c8e689b3ab 100644 --- a/src/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php +++ b/src/Symfony/Component/Intl/Resources/stubs/NumberFormatter.php @@ -9,13 +9,15 @@ * file that was distributed with this source code. */ +use Symfony\Component\Intl\NumberFormatter\NumberFormatter as IntlNumberFormatter; + /** * Stub implementation for the NumberFormatter class of the intl extension. * * @author Bernhard Schussek * - * @see \Symfony\Component\Intl\NumberFormatter\NumberFormatter + * @see IntlNumberFormatter */ -class NumberFormatter extends \Symfony\Component\Intl\NumberFormatter\NumberFormatter +class NumberFormatter extends IntlNumberFormatter { } diff --git a/src/Symfony/Component/Intl/Resources/stubs/functions.php b/src/Symfony/Component/Intl/Resources/stubs/functions.php index 0cf404b846..704f0f0c72 100644 --- a/src/Symfony/Component/Intl/Resources/stubs/functions.php +++ b/src/Symfony/Component/Intl/Resources/stubs/functions.php @@ -22,7 +22,7 @@ if (!function_exists('intl_is_failure')) { * * @return bool Whether the error code indicates an error. * - * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::isFailure + * @see IntlGlobals::isFailure() */ function intl_is_failure($errorCode) { @@ -38,7 +38,7 @@ if (!function_exists('intl_is_failure')) { * @return bool The error code of the last intl function call or * IntlGlobals::U_ZERO_ERROR if no error occurred. * - * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorCode + * @see IntlGlobals::getErrorCode() */ function intl_get_error_code() { @@ -54,7 +54,7 @@ if (!function_exists('intl_is_failure')) { * @return bool The error message of the last intl function call or * "U_ZERO_ERROR" if no error occurred. * - * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorMessage + * @see IntlGlobals::getErrorMessage() */ function intl_get_error_message() { @@ -69,7 +69,7 @@ if (!function_exists('intl_is_failure')) { * * @return string The name of the error code constant. * - * @see \Symfony\Component\Intl\Globals\StubIntlGlobals::getErrorName + * @see IntlGlobals::getErrorName() */ function intl_error_name($errorCode) { diff --git a/src/Symfony/Component/Security/Core/Util/ClassUtils.php b/src/Symfony/Component/Security/Core/Util/ClassUtils.php index 0585204622..6107c40fa6 100644 --- a/src/Symfony/Component/Security/Core/Util/ClassUtils.php +++ b/src/Symfony/Component/Security/Core/Util/ClassUtils.php @@ -11,11 +11,13 @@ namespace Symfony\Component\Security\Core\Util; +use Doctrine\Common\Util\ClassUtils as DoctrineClassUtils; + /** * Class related functionality for objects that * might or might not be proxy objects at the moment. * - * @see Doctrine\Common\Util\ClassUtils + * @see DoctrineClassUtils * * @author Benjamin Eberlei * @author Johannes Schmitt diff --git a/src/Symfony/Component/Stopwatch/Stopwatch.php b/src/Symfony/Component/Stopwatch/Stopwatch.php index b1935a38e7..31f5a3096a 100644 --- a/src/Symfony/Component/Stopwatch/Stopwatch.php +++ b/src/Symfony/Component/Stopwatch/Stopwatch.php @@ -58,7 +58,7 @@ class Stopwatch * * The id parameter is used to retrieve the events from this section. * - * @see getSectionEvents + * @see getSectionEvents() * * @param string $id The identifier of the section * diff --git a/src/Symfony/Component/Validator/ConstraintViolationInterface.php b/src/Symfony/Component/Validator/ConstraintViolationInterface.php index 01bec9d013..232fb5513f 100644 --- a/src/Symfony/Component/Validator/ConstraintViolationInterface.php +++ b/src/Symfony/Component/Validator/ConstraintViolationInterface.php @@ -65,7 +65,7 @@ interface ConstraintViolationInterface * @return array A possibly empty list of parameters indexed by the names * that appear in the message template. * - * @see getMessageTemplate + * @see getMessageTemplate() * * @api */ diff --git a/src/Symfony/Component/Validator/GlobalExecutionContextInterface.php b/src/Symfony/Component/Validator/GlobalExecutionContextInterface.php index aff44b3507..199d36c61b 100644 --- a/src/Symfony/Component/Validator/GlobalExecutionContextInterface.php +++ b/src/Symfony/Component/Validator/GlobalExecutionContextInterface.php @@ -41,7 +41,7 @@ interface GlobalExecutionContextInterface * * @return mixed The root value. * - * @see ExecutionContextInterface::getRoot + * @see ExecutionContextInterface::getRoot() */ public function getRoot(); diff --git a/src/Symfony/Component/Validator/Mapping/Loader/FilesLoader.php b/src/Symfony/Component/Validator/Mapping/Loader/FilesLoader.php index a20c797a0a..a631093296 100644 --- a/src/Symfony/Component/Validator/Mapping/Loader/FilesLoader.php +++ b/src/Symfony/Component/Validator/Mapping/Loader/FilesLoader.php @@ -18,8 +18,8 @@ namespace Symfony\Component\Validator\Mapping\Loader; * * @author Bulat Shakirzyanov * - * @see Symfony\Component\Validator\Mapping\Loader\YamlFileLoader - * @see Symfony\Component\Validator\Mapping\Loader\XmlFileLoader + * @see YamlFileLoader + * @see XmlFileLoader */ abstract class FilesLoader extends LoaderChain { diff --git a/src/Symfony/Component/Validator/Mapping/Loader/XmlFilesLoader.php b/src/Symfony/Component/Validator/Mapping/Loader/XmlFilesLoader.php index bba6dd9e06..3b7043feaf 100644 --- a/src/Symfony/Component/Validator/Mapping/Loader/XmlFilesLoader.php +++ b/src/Symfony/Component/Validator/Mapping/Loader/XmlFilesLoader.php @@ -16,7 +16,7 @@ namespace Symfony\Component\Validator\Mapping\Loader; * * @author Bulat Shakirzyanov * - * @see Symfony\Component\Validator\Mapping\Loader\FilesLoader + * @see FilesLoader */ class XmlFilesLoader extends FilesLoader { diff --git a/src/Symfony/Component/Validator/Mapping/Loader/YamlFilesLoader.php b/src/Symfony/Component/Validator/Mapping/Loader/YamlFilesLoader.php index 8ca5ed4eb0..e01def2f67 100644 --- a/src/Symfony/Component/Validator/Mapping/Loader/YamlFilesLoader.php +++ b/src/Symfony/Component/Validator/Mapping/Loader/YamlFilesLoader.php @@ -16,7 +16,7 @@ namespace Symfony\Component\Validator\Mapping\Loader; * * @author Bulat Shakirzyanov * - * @see Symfony\Component\Validator\Mapping\Loader\FilesLoader + * @see FilesLoader */ class YamlFilesLoader extends FilesLoader {