Skip to content
This repository has been archived by the owner on Feb 24, 2023. It is now read-only.

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
fabpot committed Jan 20, 2021
1 parent d77e676 commit 6cc5b17
Show file tree
Hide file tree
Showing 7 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/Configuration/Method.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

namespace Sensio\Bundle\FrameworkExtraBundle\Configuration;

@trigger_error(sprintf('The "%s" annotation is deprecated since version 5.2. Use "%s" instead.', Method::class, \Symfony\Component\Routing\Annotation\Route::class), E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s" annotation is deprecated since version 5.2. Use "%s" instead.', Method::class, \Symfony\Component\Routing\Annotation\Route::class), \E_USER_DEPRECATED);

/**
* The Method class handles the Method annotation parts.
Expand Down
2 changes: 1 addition & 1 deletion src/Configuration/Route.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

use Symfony\Component\Routing\Annotation\Route as BaseRoute;

@trigger_error(sprintf('The "%s" annotation is deprecated since version 5.2. Use "%s" instead.', Route::class, BaseRoute::class), E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s" annotation is deprecated since version 5.2. Use "%s" instead.', Route::class, BaseRoute::class), \E_USER_DEPRECATED);

/**
* @author Kris Wallsmith <[email protected]>
Expand Down
2 changes: 1 addition & 1 deletion src/DependencyInjection/SensioFrameworkExtraExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ public function load(array $configs, ContainerBuilder $container)
$definitionsToRemove = [];

if ($config['router']['annotations']) {
@trigger_error(sprintf('Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "%s" annotation from Symfony itself.', \Symfony\Component\Routing\Annotation\Route::class), E_USER_DEPRECATED);
@trigger_error(sprintf('Enabling the "sensio_framework_extra.router.annotations" configuration is deprecated since version 5.2. Set it to false and use the "%s" annotation from Symfony itself.', \Symfony\Component\Routing\Annotation\Route::class), \E_USER_DEPRECATED);

$annotationsToLoad[] = 'routing.xml';
}
Expand Down
2 changes: 1 addition & 1 deletion src/Request/ParamConverter/DateTimeParamConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public function apply(Request $request, ParamConverter $configuration)
throw new NotFoundHttpException(sprintf('Invalid date given for parameter "%s".', $param));
}
} else {
$valueIsInt = filter_var($value, FILTER_VALIDATE_INT, ['options' => ['min_range' => 0]]);
$valueIsInt = filter_var($value, \FILTER_VALIDATE_INT, ['options' => ['min_range' => 0]]);
if (false !== $valueIsInt) {
$date = (new $class())->setTimestamp($value);
} else {
Expand Down
4 changes: 2 additions & 2 deletions src/Request/ParamConverter/DoctrineParamConverter.php
Original file line number Diff line number Diff line change
Expand Up @@ -311,11 +311,11 @@ private function getOptions(ParamConverter $configuration, $strict = true)
$passedOptions = $configuration->getOptions();

if (isset($passedOptions['repository_method'])) {
@trigger_error('The repository_method option of @ParamConverter is deprecated and will be removed in 6.0. Use the expr option or @Entity.', E_USER_DEPRECATED);
@trigger_error('The repository_method option of @ParamConverter is deprecated and will be removed in 6.0. Use the expr option or @Entity.', \E_USER_DEPRECATED);
}

if (isset($passedOptions['map_method_signature'])) {
@trigger_error('The map_method_signature option of @ParamConverter is deprecated and will be removed in 6.0. Use the expr option or @Entity.', E_USER_DEPRECATED);
@trigger_error('The map_method_signature option of @ParamConverter is deprecated and will be removed in 6.0. Use the expr option or @Entity.', \E_USER_DEPRECATED);
}

$extraKeys = array_diff(array_keys($passedOptions), array_keys($this->defaultOptions));
Expand Down
2 changes: 1 addition & 1 deletion src/Routing/AnnotatedRouteControllerLoader.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
use Symfony\Component\Routing\Loader\AnnotationClassLoader;
use Symfony\Component\Routing\Route;

@trigger_error(sprintf('The "%s" class is deprecated since version 5.2. Use "%s" instead.', AnnotatedRouteControllerLoader::class, \Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader::class), E_USER_DEPRECATED);
@trigger_error(sprintf('The "%s" class is deprecated since version 5.2. Use "%s" instead.', AnnotatedRouteControllerLoader::class, \Symfony\Bundle\FrameworkBundle\Routing\AnnotatedRouteControllerLoader::class), \E_USER_DEPRECATED);

/**
* AnnotatedRouteControllerLoader is an implementation of AnnotationClassLoader
Expand Down
2 changes: 1 addition & 1 deletion src/Templating/TemplateGuesser.php
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ public function guessTemplateName($controller, Request $request)
$matchAction = strtolower(preg_replace('/([a-z\d])([A-Z])/', '\\1_\\2', $matchAction));
$bundleName = $this->getBundleForClass($className);

return sprintf(($bundleName ? '@'.$bundleName.'/' : '').$matchController.($matchController ? '/' : '').$matchAction.'.'.$request->getRequestFormat().'.twig');
return ($bundleName ? '@'.$bundleName.'/' : '').$matchController.($matchController ? '/' : '').$matchAction.'.'.$request->getRequestFormat().'.twig';
}

/**
Expand Down

0 comments on commit 6cc5b17

Please sign in to comment.