1
0
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:
Toby Zerner
2016-02-25 22:09:39 -05:00
committed by StyleCI Bot
parent 83c22d73a4
commit a6cf10f854
96 changed files with 240 additions and 245 deletions

View File

@@ -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.
*/

View File

@@ -11,7 +11,6 @@
namespace Flarum\Core\Command;
use Flarum\Core\Access\AssertPermissionTrait;
use Flarum\Core\Notification;
use Flarum\Core\Repository\NotificationRepository;
class ReadAllNotificationsHandler

View File

@@ -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)
{

View File

@@ -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");
}
}

View File

@@ -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

View File

@@ -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();