mirror of
https://github.com/flarum/core.git
synced 2025-08-04 15:37:51 +02:00
Applied fixes from StyleCI
This commit is contained in:
@@ -13,7 +13,6 @@ namespace Flarum\Lock\Access;
|
|||||||
use Flarum\Core\Access\AbstractPolicy;
|
use Flarum\Core\Access\AbstractPolicy;
|
||||||
use Flarum\Core\Discussion;
|
use Flarum\Core\Discussion;
|
||||||
use Flarum\Core\User;
|
use Flarum\Core\User;
|
||||||
use Illuminate\Contracts\Events\Dispatcher;
|
|
||||||
|
|
||||||
class DiscussionPolicy extends AbstractPolicy
|
class DiscussionPolicy extends AbstractPolicy
|
||||||
{
|
{
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Flarum.
|
* This file is part of Flarum.
|
||||||
*
|
*
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Flarum.
|
* This file is part of Flarum.
|
||||||
*
|
*
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Flarum.
|
* This file is part of Flarum.
|
||||||
*
|
*
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Flarum.
|
* This file is part of Flarum.
|
||||||
*
|
*
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Flarum.
|
* This file is part of Flarum.
|
||||||
*
|
*
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Flarum.
|
* This file is part of Flarum.
|
||||||
*
|
*
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Flarum.
|
* This file is part of Flarum.
|
||||||
*
|
*
|
||||||
|
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* This file is part of Flarum.
|
* This file is part of Flarum.
|
||||||
*
|
*
|
||||||
@@ -50,19 +51,19 @@ class DiscussionLockedPost extends AbstractEventPost implements MergeableInterfa
|
|||||||
/**
|
/**
|
||||||
* Create a new instance in reply to a discussion.
|
* Create a new instance in reply to a discussion.
|
||||||
*
|
*
|
||||||
* @param integer $discussionId
|
* @param int $discussionId
|
||||||
* @param integer $userId
|
* @param int $userId
|
||||||
* @param boolean $isLocked
|
* @param bool $isLocked
|
||||||
* @return static
|
* @return static
|
||||||
*/
|
*/
|
||||||
public static function reply($discussionId, $userId, $isLocked)
|
public static function reply($discussionId, $userId, $isLocked)
|
||||||
{
|
{
|
||||||
$post = new static;
|
$post = new static;
|
||||||
|
|
||||||
$post->content = static::buildContent($isLocked);
|
$post->content = static::buildContent($isLocked);
|
||||||
$post->time = time();
|
$post->time = time();
|
||||||
$post->discussion_id = $discussionId;
|
$post->discussion_id = $discussionId;
|
||||||
$post->user_id = $userId;
|
$post->user_id = $userId;
|
||||||
|
|
||||||
return $post;
|
return $post;
|
||||||
}
|
}
|
||||||
@@ -70,7 +71,7 @@ class DiscussionLockedPost extends AbstractEventPost implements MergeableInterfa
|
|||||||
/**
|
/**
|
||||||
* Build the content attribute.
|
* Build the content attribute.
|
||||||
*
|
*
|
||||||
* @param boolean $isLocked Whether or not the discussion is stickied.
|
* @param bool $isLocked Whether or not the discussion is stickied.
|
||||||
* @return array
|
* @return array
|
||||||
*/
|
*/
|
||||||
public static function buildContent($isLocked)
|
public static function buildContent($isLocked)
|
||||||
|
Reference in New Issue
Block a user