1
0
mirror of https://github.com/flarum/core.git synced 2025-08-20 07:11:31 +02:00

Compare commits

..

2 Commits

Author SHA1 Message Date
StyleCI Bot
29da25dec7 Apply fixes from StyleCI 2024-06-21 21:01:38 +00:00
Daniël Klabbers
b94c6f913c chore: fix links and images 2024-06-21 23:01:12 +02:00
2 changed files with 7 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
<p align="center"> <p align="center">
<a href="https://flarum.org/"><img src="https://flarum.org/assets/img/logo.png"></a> <a href="https://flarum.org/"><img src="https://flarum.org/images/flarum.svg"></a>
</p> </p>
<p align="center"> <p align="center">
@@ -7,7 +7,6 @@
<a href="https://packagist.org/packages/flarum/core"><img src="https://img.shields.io/packagist/dt/flarum/core" alt="Total Downloads"></a> <a href="https://packagist.org/packages/flarum/core"><img src="https://img.shields.io/packagist/dt/flarum/core" alt="Total Downloads"></a>
<a href="https://packagist.org/packages/flarum/core"><img src="https://img.shields.io/github/v/release/flarum/core?sort=semver" alt="Latest Version"></a> <a href="https://packagist.org/packages/flarum/core"><img src="https://img.shields.io/github/v/release/flarum/core?sort=semver" alt="Latest Version"></a>
<a href="https://packagist.org/packages/flarum/core"><img src="https://img.shields.io/packagist/l/flarum/core" alt="License"></a> <a href="https://packagist.org/packages/flarum/core"><img src="https://img.shields.io/packagist/l/flarum/core" alt="License"></a>
<a href="https://huntr.dev/bounties/disclose/?target=https://github.com/flarum/core"><img src="https://cdn.huntr.dev/huntr_security_badge_mono.svg" alt="huntr"></a>
<a href="https://github.styleci.io/repos/28257573"><img src="https://github.styleci.io/repos/28257573/shield?style=flat" alt="StyleCI"></a> <a href="https://github.styleci.io/repos/28257573"><img src="https://github.styleci.io/repos/28257573/shield?style=flat" alt="StyleCI"></a>
</p> </p>
@@ -21,7 +20,7 @@
* **Powerful and extensible.** Customize, extend, and integrate Flarum to suit your community. Flarums architecture is amazingly flexible, with a powerful Extension API. * **Powerful and extensible.** Customize, extend, and integrate Flarum to suit your community. Flarums architecture is amazingly flexible, with a powerful Extension API.
![Screenshot of a Flarum instance, showing multiple discussions and tags.](https://flarum.org/assets/img/home-screenshot.png) ![Screenshot of a Flarum instance, showing multiple discussions and tags.](https://flarum.org/assets/flarum/home-screenshot.png)
## Installation ## Installation

View File

@@ -24,40 +24,33 @@ interface BlueprintInterface
* *
* @return User|null * @return User|null
*/ */
public function getFromUser(): ?User; public function getFromUser();
/** /**
* Get the model that is the subject of this activity. * Get the model that is the subject of this activity.
* *
* @return AbstractModel|null * @return AbstractModel|null
*/ */
public function getSubject(): ?AbstractModel; public function getSubject();
/** /**
* Get the data to be stored in the notification. * Get the data to be stored in the notification.
* *
* @return mixed * @return mixed
*/ */
public function getData(): mixed; public function getData();
/** /**
* Get the serialized type of this activity. * Get the serialized type of this activity.
* *
* @return string * @return string
*/ */
public static function getType(): string; public static function getType();
/** /**
* Get the name of the model class for the subject of this activity. * Get the name of the model class for the subject of this activity.
* *
* @return string * @return string
*/ */
public static function getSubjectModel(): string; public static function getSubjectModel();
/**
* Whether the blueprint ignores that a user has not verified their email address.
*
* @return bool
*/
public function ignoresUserVerification(): bool;
} }