@@ -43,45 +43,45 @@ |
||
| 43 | 43 | */ |
| 44 | 44 | class Event implements StoppableEventInterface { |
| 45 | 45 | |
| 46 | - /** |
|
| 47 | - * @var bool |
|
| 48 | - * |
|
| 49 | - * @since 22.0.0 |
|
| 50 | - */ |
|
| 51 | - private $propagationStopped = false; |
|
| 46 | + /** |
|
| 47 | + * @var bool |
|
| 48 | + * |
|
| 49 | + * @since 22.0.0 |
|
| 50 | + */ |
|
| 51 | + private $propagationStopped = false; |
|
| 52 | 52 | |
| 53 | - /** |
|
| 54 | - * Compatibility constructor |
|
| 55 | - * |
|
| 56 | - * In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base |
|
| 57 | - * class that had a constructor (with default arguments). To lower the risk of |
|
| 58 | - * a breaking change (PHP won't allow parent constructor calls if there is none), |
|
| 59 | - * this empty constructor's only purpose is to hopefully not break existing sub- |
|
| 60 | - * classes of this class. |
|
| 61 | - * |
|
| 62 | - * @since 18.0.0 |
|
| 63 | - */ |
|
| 64 | - public function __construct() { |
|
| 65 | - } |
|
| 53 | + /** |
|
| 54 | + * Compatibility constructor |
|
| 55 | + * |
|
| 56 | + * In Nextcloud 17.0.0 this event class used a now deprecated/removed Symfony base |
|
| 57 | + * class that had a constructor (with default arguments). To lower the risk of |
|
| 58 | + * a breaking change (PHP won't allow parent constructor calls if there is none), |
|
| 59 | + * this empty constructor's only purpose is to hopefully not break existing sub- |
|
| 60 | + * classes of this class. |
|
| 61 | + * |
|
| 62 | + * @since 18.0.0 |
|
| 63 | + */ |
|
| 64 | + public function __construct() { |
|
| 65 | + } |
|
| 66 | 66 | |
| 67 | - /** |
|
| 68 | - * Stops the propagation of the event to further event listeners |
|
| 69 | - * |
|
| 70 | - * @return void |
|
| 71 | - * |
|
| 72 | - * @since 22.0.0 |
|
| 73 | - */ |
|
| 74 | - public function stopPropagation(): void { |
|
| 75 | - $this->propagationStopped = true; |
|
| 76 | - } |
|
| 67 | + /** |
|
| 68 | + * Stops the propagation of the event to further event listeners |
|
| 69 | + * |
|
| 70 | + * @return void |
|
| 71 | + * |
|
| 72 | + * @since 22.0.0 |
|
| 73 | + */ |
|
| 74 | + public function stopPropagation(): void { |
|
| 75 | + $this->propagationStopped = true; |
|
| 76 | + } |
|
| 77 | 77 | |
| 78 | - /** |
|
| 79 | - * {@inheritDoc} |
|
| 80 | - * |
|
| 81 | - * @since 22.0.0 |
|
| 82 | - * @see \Psr\EventDispatcher\StoppableEventInterface |
|
| 83 | - */ |
|
| 84 | - public function isPropagationStopped(): bool { |
|
| 85 | - return $this->propagationStopped; |
|
| 86 | - } |
|
| 78 | + /** |
|
| 79 | + * {@inheritDoc} |
|
| 80 | + * |
|
| 81 | + * @since 22.0.0 |
|
| 82 | + * @see \Psr\EventDispatcher\StoppableEventInterface |
|
| 83 | + */ |
|
| 84 | + public function isPropagationStopped(): bool { |
|
| 85 | + return $this->propagationStopped; |
|
| 86 | + } |
|
| 87 | 87 | } |