Merge pull request #6 from flarum/analysis-qBMxag

Applied fixes from StyleCI
This commit is contained in:
Toby Zerner 2016-02-26 14:25:43 +10:30
commit e0aecfce1e
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)