1
0
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:
Toby Zerner
2016-02-25 22:51:15 -05:00
committed by StyleCI Bot
parent aab6d5bda7
commit 7038737236
9 changed files with 23 additions and 16 deletions

View File

@@ -13,7 +13,6 @@ namespace Flarum\Lock\Access;
use Flarum\Core\Access\AbstractPolicy;
use Flarum\Core\Discussion;
use Flarum\Core\User;
use Illuminate\Contracts\Events\Dispatcher;
class DiscussionPolicy extends AbstractPolicy
{

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*

View File

@@ -1,4 +1,5 @@
<?php
/*
* 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.
*
* @param integer $discussionId
* @param integer $userId
* @param boolean $isLocked
* @param int $discussionId
* @param int $userId
* @param bool $isLocked
* @return static
*/
public static function reply($discussionId, $userId, $isLocked)
{
$post = new static;
$post->content = static::buildContent($isLocked);
$post->time = time();
$post->content = static::buildContent($isLocked);
$post->time = time();
$post->discussion_id = $discussionId;
$post->user_id = $userId;
$post->user_id = $userId;
return $post;
}
@@ -70,7 +71,7 @@ class DiscussionLockedPost extends AbstractEventPost implements MergeableInterfa
/**
* 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
*/
public static function buildContent($isLocked)