1
0
mirror of https://github.com/flarum/core.git synced 2025-08-17 13:54:18 +02:00

Applied fixes from StyleCI

This commit is contained in:
Toby Zerner
2016-02-25 22:58:13 -05:00
committed by StyleCI Bot
parent 5039e30d99
commit 746ecac10a
25 changed files with 63 additions and 42 deletions

View File

@@ -23,7 +23,6 @@ use Illuminate\Database\Query\Expression;
class DiscussionPolicy extends AbstractPolicy
{
/**
* {@inheritdoc}
*/

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*
@@ -20,7 +21,7 @@ use Tobscure\JsonApi\Document;
class CreateTagController extends AbstractCreateController
{
/**
* @inheritdoc
* {@inheritdoc}
*/
public $serializer = TagSerializer::class;

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.
*
@@ -20,7 +21,7 @@ use Tobscure\JsonApi\Document;
class UpdateTagController extends AbstractResourceController
{
/**
* @inheritdoc
* {@inheritdoc}
*/
public $serializer = TagSerializer::class;

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*
@@ -54,7 +55,7 @@ class TagSerializer extends AbstractSerializer
*/
protected function parent($tag)
{
return $this->hasOne($tag, TagSerializer::class);
return $this->hasOne($tag, self::class);
}
/**

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

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.
*
@@ -10,8 +11,8 @@
namespace Flarum\Tags\Listener;
use Flarum\Tags\Api\Controller;
use Flarum\Event\ConfigureApiRoutes;
use Flarum\Tags\Api\Controller;
use Illuminate\Contracts\Events\Dispatcher;
class AddTagsApi

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.
*
@@ -51,8 +52,8 @@ class DiscussionTaggedPost extends AbstractEventPost implements MergeableInterfa
/**
* Create a new instance in reply to a discussion.
*
* @param integer $discussionId
* @param integer $userId
* @param int $discussionId
* @param int $userId
* @param array $oldTagIds
* @param array $newTagIds
* @return static

View File

@@ -1,4 +1,5 @@
<?php
/*
* This file is part of Flarum.
*
@@ -50,7 +51,7 @@ class TagRepository
*
* @param string $slug
* @param User|null $user
* @return integer
* @return int
*/
public function getIdForSlug($slug, User $user = null)
{