mirror of
https://github.com/flarum/core.git
synced 2025-10-11 23:14:29 +02:00
Applied fixes from StyleCI
This commit is contained in:
@@ -17,7 +17,7 @@ class EditDiscussion
|
||||
/**
|
||||
* The ID of the discussion to edit.
|
||||
*
|
||||
* @var integer
|
||||
* @var int
|
||||
*/
|
||||
public $discussionId;
|
||||
|
||||
@@ -36,7 +36,7 @@ class EditDiscussion
|
||||
public $data;
|
||||
|
||||
/**
|
||||
* @param integer $discussionId The ID of the discussion to edit.
|
||||
* @param int $discussionId The ID of the discussion to edit.
|
||||
* @param \Flarum\Core\User $actor The user performing the action.
|
||||
* @param array $data The attributes to update on the discussion.
|
||||
*/
|
||||
|
@@ -11,7 +11,6 @@
|
||||
namespace Flarum\Core\Command;
|
||||
|
||||
use Flarum\Core\Access\AssertPermissionTrait;
|
||||
use Flarum\Core\Notification;
|
||||
use Flarum\Core\Repository\NotificationRepository;
|
||||
|
||||
class ReadAllNotificationsHandler
|
||||
|
@@ -17,7 +17,7 @@ class ReadDiscussion
|
||||
/**
|
||||
* The ID of the discussion to mark as read.
|
||||
*
|
||||
* @var integer
|
||||
* @var int
|
||||
*/
|
||||
public $discussionId;
|
||||
|
||||
@@ -31,14 +31,14 @@ class ReadDiscussion
|
||||
/**
|
||||
* The number of the post to mark as read.
|
||||
*
|
||||
* @var integer
|
||||
* @var int
|
||||
*/
|
||||
public $readNumber;
|
||||
|
||||
/**
|
||||
* @param integer $discussionId The ID of the discussion to mark as read.
|
||||
* @param int $discussionId The ID of the discussion to mark as read.
|
||||
* @param User $actor The user to mark the discussion as read for.
|
||||
* @param integer $readNumber The number of the post to mark as read.
|
||||
* @param int $readNumber The number of the post to mark as read.
|
||||
*/
|
||||
public function __construct($discussionId, User $actor, $readNumber)
|
||||
{
|
||||
|
@@ -170,10 +170,10 @@ class RegisterUserHandler
|
||||
'target' => $this->uploadDir,
|
||||
]);
|
||||
|
||||
$uploadName = Str::lower(Str::quickRandom()) . '.jpg';
|
||||
$uploadName = Str::lower(Str::quickRandom()).'.jpg';
|
||||
|
||||
$user->changeAvatarPath($uploadName);
|
||||
|
||||
$mount->move("source://".pathinfo($tmpFile, PATHINFO_BASENAME), "target://$uploadName");
|
||||
$mount->move('source://'.pathinfo($tmpFile, PATHINFO_BASENAME), "target://$uploadName");
|
||||
}
|
||||
}
|
||||
|
@@ -10,14 +10,14 @@
|
||||
|
||||
namespace Flarum\Core\Command;
|
||||
|
||||
use Flarum\Settings\SettingsRepositoryInterface;
|
||||
use Flarum\Core;
|
||||
use Flarum\Core\PasswordToken;
|
||||
use Flarum\Core\Repository\UserRepository;
|
||||
use Illuminate\Contracts\Mail\Mailer;
|
||||
use Illuminate\Mail\Message;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Flarum\Core;
|
||||
use Flarum\Forum\UrlGenerator;
|
||||
use Flarum\Settings\SettingsRepositoryInterface;
|
||||
use Illuminate\Contracts\Mail\Mailer;
|
||||
use Illuminate\Database\Eloquent\ModelNotFoundException;
|
||||
use Illuminate\Mail\Message;
|
||||
use Symfony\Component\Translation\TranslatorInterface;
|
||||
|
||||
class RequestPasswordResetHandler
|
||||
|
@@ -111,11 +111,11 @@ class UploadAvatarHandler
|
||||
$mount->delete($file);
|
||||
}
|
||||
|
||||
$uploadName = Str::lower(Str::quickRandom()) . '.jpg';
|
||||
$uploadName = Str::lower(Str::quickRandom()).'.jpg';
|
||||
|
||||
$user->changeAvatarPath($uploadName);
|
||||
|
||||
$mount->move("source://".pathinfo($tmpFile, PATHINFO_BASENAME), "target://$uploadName");
|
||||
$mount->move('source://'.pathinfo($tmpFile, PATHINFO_BASENAME), "target://$uploadName");
|
||||
|
||||
$user->save();
|
||||
|
||||
|
Reference in New Issue
Block a user