diff --git a/components/event_dispatcher/container_aware_dispatcher.rst b/components/event_dispatcher/container_aware_dispatcher.rst index 74acb144643..a1bfe3e2904 100644 --- a/components/event_dispatcher/container_aware_dispatcher.rst +++ b/components/event_dispatcher/container_aware_dispatcher.rst @@ -74,7 +74,7 @@ The ``EventSubscriberInterface`` will be exactly as you would expect:: class StoreSubscriber implements EventSubscriberInterface { - static public function getSubscribedEvents() + public static function getSubscribedEvents() { return array( 'kernel.response' => array( diff --git a/components/event_dispatcher/introduction.rst b/components/event_dispatcher/introduction.rst index e40c6754ea3..2a4ae1e35a2 100644 --- a/components/event_dispatcher/introduction.rst +++ b/components/event_dispatcher/introduction.rst @@ -339,7 +339,7 @@ subscribes to the ``kernel.response`` and ``store.order`` events:: class StoreSubscriber implements EventSubscriberInterface { - static public function getSubscribedEvents() + public static function getSubscribedEvents() { return array( 'kernel.response' => array( diff --git a/reference/constraints/Callback.rst b/reference/constraints/Callback.rst index 9760dd17b61..2c5d0091f60 100644 --- a/reference/constraints/Callback.rst +++ b/reference/constraints/Callback.rst @@ -186,7 +186,7 @@ process. Each method can be one of the following formats: class MyStaticValidatorClass { - static public function isAuthorValid(Author $author, ExecutionContext $context) + public static function isAuthorValid(Author $author, ExecutionContext $context) { // ... }