Skip to content

Commit

Permalink
Apply php-cs-fixer changes
Browse files Browse the repository at this point in the history
  • Loading branch information
fashxp authored and actions-user committed Dec 15, 2021
1 parent 3be9c94 commit 1141aea
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 21 deletions.
2 changes: 1 addition & 1 deletion bundles/AdminBundle/Controller/AdminController.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ abstract class AdminController extends Controller implements AdminControllerInte
* {@inheritdoc}
*
*/
public static function getSubscribedServices()/*: array */
public static function getSubscribedServices()// : array
{
$services = parent::getSubscribedServices();
$services['translator'] = TranslatorInterface::class;
Expand Down
2 changes: 1 addition & 1 deletion bundles/AdminBundle/HttpFoundation/JsonResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class JsonResponse extends BaseJsonResponse
/**
* {@inheritdoc}
*/
public function setData($data = [])/*: self */
public function setData($data = [])// : self
{
$serializer = Serialize::getAdminSerializer();

Expand Down
12 changes: 6 additions & 6 deletions bundles/AdminBundle/Security/User/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,23 +58,23 @@ public function getUsername()
/**
* {@inheritdoc}
*/
public function getUserIdentifier()/*: string */
public function getUserIdentifier()// : string
{
return $this->user->getName();
}

/**
* @return PimcoreUser
*/
public function getUser()/*: PimcoreUser */
public function getUser()// : PimcoreUser
{
return $this->user;
}

/**
* {@inheritdoc}
*/
public function getRoles()/*: array */
public function getRoles()// : array
{
$roles = [];

Expand All @@ -97,15 +97,15 @@ public function getRoles()/*: array */
/**
* {@inheritdoc}
*/
public function getPassword()/*: ?string */
public function getPassword()// : ?string
{
return $this->user->getPassword();
}

/**
* {@inheritdoc}
*/
public function getSalt()/*: ?string */
public function getSalt()// : ?string
{
return null;
}
Expand All @@ -122,7 +122,7 @@ public function eraseCredentials()
/**
* {@inheritdoc}
*/
public function isEqualTo(UserInterface $user)/*: bool */
public function isEqualTo(UserInterface $user)// : bool
{
return $user instanceof self && $user->getId() === $this->getId();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ final class WebsiteConfigValueResolver implements ArgumentValueResolverInterface
/**
* @param Request $request
* @param ArgumentMetadata $argument
*
* @return bool
*/
public function supports(Request $request, ArgumentMetadata $argument): bool
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ protected function renderView(string $view, array $parameters = []): string
* {@inheritdoc}
*
*/
public static function getSubscribedServices()/* :array */
public static function getSubscribedServices()// :array
{
$services = parent::getSubscribedServices();
$services['pimcore.templating'] = '?'.EngineInterface::class;
Expand Down
2 changes: 1 addition & 1 deletion lib/Controller/FrontendController.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ abstract class FrontendController extends Controller
* {@inheritdoc}
*
*/
public static function getSubscribedServices()/*: array */
public static function getSubscribedServices()// : array
{
$services = parent::getSubscribedServices();
$services[EditmodeResolver::class] = '?'.EditmodeResolver::class;
Expand Down
2 changes: 1 addition & 1 deletion lib/Db/PimcoreExtensionsTrait.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ trait PimcoreExtensionsTrait
*
*@see \Doctrine\DBAL\Connection::connect
*/
public function connect()/*: bool */
public function connect()// : bool
{
$returnValue = parent::connect();

Expand Down
10 changes: 5 additions & 5 deletions lib/Routing/Element/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function setContext(RequestContext $context)
*
* @return RequestContext
*/
public function getContext()/*: RequestContext */
public function getContext()// : RequestContext
{
return $this->context;
}
Expand All @@ -77,15 +77,15 @@ public function getContext()/*: RequestContext */
*
* @return bool
*/
public function supports($name)/*: bool */
public function supports($name)// : bool
{
return $name === 'pimcore_element';
}

/**
* {@inheritdoc}
*/
public function getRouteDebugMessage($name, array $parameters = [])/*: string */
public function getRouteDebugMessage($name, array $parameters = [])// : string
{
$element = $parameters['element'] ?? null;
if ($element instanceof ElementInterface) {
Expand All @@ -98,7 +98,7 @@ public function getRouteDebugMessage($name, array $parameters = [])/*: string */
/**
* {@inheritdoc}
*/
public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH)/*: string */
public function generate(string $name, array $parameters = [], int $referenceType = self::ABSOLUTE_PATH)// : string
{
$element = $parameters['element'] ?? null;
if ($element instanceof Document || $element instanceof Asset) {
Expand Down Expand Up @@ -202,7 +202,7 @@ public function match($pathinfo)
*
* @return RouteCollection
*/
public function getRouteCollection()/*: RouteCollection */
public function getRouteCollection()// : RouteCollection
{
return new RouteCollection();
}
Expand Down
2 changes: 1 addition & 1 deletion lib/Test/KernelTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class KernelTestCase extends \Symfony\Bundle\FrameworkBundle\Test\Kerne
*
* @return KernelInterface
*/
protected static function createKernel(array $options = [])/*: KernelInterface */
protected static function createKernel(array $options = [])// : KernelInterface
{
$kernel = parent::createKernel($options);

Expand Down
2 changes: 1 addition & 1 deletion lib/Test/WebTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ abstract class WebTestCase extends \Symfony\Bundle\FrameworkBundle\Test\WebTestC
*
* @return KernelInterface
*/
protected static function createKernel(array $options = [])/*: KernelInterface */
protected static function createKernel(array $options = [])// : KernelInterface
{
$kernel = parent::createKernel($options);

Expand Down
2 changes: 1 addition & 1 deletion lib/Translation/Translator.php
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,7 @@ public function getLocale()
/**
* {@inheritdoc}
*/
public function getCatalogue(string $locale = null)/*: MessageCatalogueInterface */
public function getCatalogue(string $locale = null)// : MessageCatalogueInterface
{
return $this->translator->getCatalogue($locale);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function __construct(string $workflowName, array $places, array $stateMap
*
* @throws LogicException
*/
public function getMarking($subject)/*: Marking */
public function getMarking($subject)// : Marking
{
$this->checkIfSubjectIsValid($subject);

Expand Down
2 changes: 1 addition & 1 deletion lib/Workflow/MarkingStore/StateTableMarkingStore.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ public function __construct(string $workflowName)
/**
* {@inheritdoc}
*/
public function getMarking($subject)/*: Marking */
public function getMarking($subject)// : Marking
{
$subject = $this->checkIfSubjectIsValid($subject);

Expand Down

0 comments on commit 1141aea

Please sign in to comment.