Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/Activity.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public function subject()
/**
* Fetch an activity feed for the given user.
*
* @param User $user
* @param User $user
* @param int $take
* @return \Illuminate\Database\Eloquent\Collection;
*/
Expand Down
2 changes: 1 addition & 1 deletion app/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public function archive()
/**
* Set the name of the channel.
*
* @param string $name
* @param string $name
*/
public function setNameAttribute($name)
{
Expand Down
6 changes: 3 additions & 3 deletions app/Console/Commands/InstallCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ public function handle()
/**
* Update the .env file from an array of $key => $value pairs.
*
* @param array $updatedValues
* @param array $updatedValues
* @return void
*/
protected function updateEnvironmentFile($updatedValues)
Expand Down Expand Up @@ -118,7 +118,7 @@ protected function createEnvFile()
/**
* Migrate the db with the new credentials.
*
* @param array $credentials
* @param array $credentials
* @return void
*/
protected function migrateDatabaseWithFreshCredentials($credentials)
Expand All @@ -142,7 +142,7 @@ protected function migrateDatabaseWithFreshCredentials($credentials)
* Prompt the user for optional input but hide the answer from the console.
*
* @param string $question
* @param bool $fallback
* @param bool $fallback
* @return string
*/
public function askHiddenWithDefault($question, $fallback = true)
Expand Down
6 changes: 3 additions & 3 deletions app/Events/ThreadReceivedNewReply.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Events;

use Illuminate\Queue\SerializesModels;
use Illuminate\Foundation\Events\Dispatchable;
use Illuminate\Queue\SerializesModels;

class ThreadReceivedNewReply
{
Expand All @@ -12,14 +12,14 @@ class ThreadReceivedNewReply
/**
* The reply that was posted.
*
* @param \App\Reply $reply
* @param \App\Reply $reply
*/
public $reply;

/**
* Create a new event instance.
*
* @param \App\Reply $reply
* @param \App\Reply $reply
*/
public function __construct($reply)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Events/ThreadWasPublished.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ class ThreadWasPublished
/**
* Create a new event instance.
*
* @param \App\Thread $thread
* @param \App\Thread $thread
* @return void
*/
public function __construct($thread)
Expand Down
4 changes: 2 additions & 2 deletions app/Filters/Filters.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ abstract class Filters
/**
* Create a new ThreadFilters instance.
*
* @param Request $request
* @param Request $request
*/
public function __construct(Request $request)
{
Expand All @@ -38,7 +38,7 @@ public function __construct(Request $request)
/**
* Apply the filters.
*
* @param \Illuminate\Database\Eloquent\Builder $builder
* @param \Illuminate\Database\Eloquent\Builder $builder
* @return \Illuminate\Database\Eloquent\Builder
*/
public function apply($builder)
Expand Down
2 changes: 1 addition & 1 deletion app/Filters/ThreadFilters.php
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ class ThreadFilters extends Filters
/**
* Filter the query by a given username.
*
* @param string $username
* @param string $username
* @return \Illuminate\Database\Eloquent\Builder
*/
protected function by($username)
Expand Down
4 changes: 2 additions & 2 deletions app/HasReputation.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public function clearReputation()
/**
* Award reputation points to the model.
*
* @param string $action
* @param string $action
*/
public function gainReputation($action)
{
Expand All @@ -29,7 +29,7 @@ public function gainReputation($action)
/**
* Reduce reputation points for the model.
*
* @param string $action
* @param string $action
*/
public function loseReputation($action)
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Admin/ChannelsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
namespace App\Http\Controllers\Admin;

use App\Channel;
use Illuminate\Validation\Rule;
use App\Http\Controllers\Controller;
use Illuminate\Validation\Rule;

class ChannelsController extends Controller
{
Expand Down
2 changes: 1 addition & 1 deletion app/Http/Controllers/Api/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

namespace App\Http\Controllers\Api;

use App\User;
use App\Http\Controllers\Controller;
use App\User;

class UsersController extends Controller
{
Expand Down
3 changes: 1 addition & 2 deletions app/Http/Controllers/Auth/RegisterConfirmationController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@

namespace App\Http\Controllers\Auth;

use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\User;

class RegisterConfirmationController extends Controller
{
Expand Down
6 changes: 3 additions & 3 deletions app/Http/Controllers/Auth/RegisterController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

namespace App\Http\Controllers\Auth;

use App\User;
use Illuminate\Http\Request;
use App\Http\Controllers\Controller;
use App\Mail\PleaseConfirmYourEmail;
use App\User;
use Illuminate\Foundation\Auth\RegistersUsers;
use Illuminate\Http\Request;
use Illuminate\Support\Facades\Mail;
use Illuminate\Support\Facades\Validator;
use Illuminate\Foundation\Auth\RegistersUsers;

class RegisterController extends Controller
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/Controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

namespace App\Http\Controllers;

use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Foundation\Bus\DispatchesJobs;
use Illuminate\Routing\Controller as BaseController;
use Illuminate\Foundation\Validation\ValidatesRequests;
use Illuminate\Foundation\Auth\Access\AuthorizesRequests;
use Illuminate\Routing\Controller as BaseController;

class Controller extends BaseController
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/FavoritesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function __construct()
/**
* Store a new favorite in the database.
*
* @param Reply $reply
* @param Reply $reply
*/
public function store(Reply $reply)
{
Expand All @@ -29,7 +29,7 @@ public function store(Reply $reply)
/**
* Delete the favorite.
*
* @param Reply $reply
* @param Reply $reply
*/
public function destroy(Reply $reply)
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/PinnedThreadsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ class PinnedThreadsController extends Controller
/**
* Pin the given thread.
*
* @param \App\Thread $thread
* @param \App\Thread $thread
*/
public function store(Thread $thread)
{
Expand All @@ -19,7 +19,7 @@ public function store(Thread $thread)
/**
* Un-Pin the given thread.
*
* @param \App\Thread $thread
* @param \App\Thread $thread
*/
public function destroy(Thread $thread)
{
Expand Down
4 changes: 2 additions & 2 deletions app/Http/Controllers/ProfilesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,15 @@

namespace App\Http\Controllers;

use App\User;
use App\Activity;
use App\User;

class ProfilesController extends Controller
{
/**
* Show the user's profile.
*
* @param User $user
* @param User $user
* @return \Response
*/
public function show(User $user)
Expand Down
16 changes: 8 additions & 8 deletions app/Http/Controllers/RepliesController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@

namespace App\Http\Controllers;

use App\Http\Requests\CreatePostRequest;
use App\Reply;
use App\Thread;
use App\Http\Requests\CreatePostRequest;

class RepliesController extends Controller
{
Expand All @@ -19,8 +19,8 @@ public function __construct()
/**
* Fetch all relevant replies.
*
* @param int $channelId
* @param Thread $thread
* @param int $channelId
* @param Thread $thread
*/
public function index($channelId, Thread $thread)
{
Expand All @@ -30,9 +30,9 @@ public function index($channelId, Thread $thread)
/**
* Persist a new reply.
*
* @param int $channelId
* @param Thread $thread
* @param CreatePostRequest $form
* @param int $channelId
* @param Thread $thread
* @param CreatePostRequest $form
* @return \Illuminate\Database\Eloquent\Model
*/
public function store($channelId, Thread $thread, CreatePostRequest $form)
Expand All @@ -50,7 +50,7 @@ public function store($channelId, Thread $thread, CreatePostRequest $form)
/**
* Update an existing reply.
*
* @param Reply $reply
* @param Reply $reply
*/
public function update(Reply $reply)
{
Expand All @@ -61,7 +61,7 @@ public function update(Reply $reply)
/**
* Delete the given reply.
*
* @param Reply $reply
* @param Reply $reply
* @return \Illuminate\Http\RedirectResponse
*/
public function destroy(Reply $reply)
Expand Down
8 changes: 4 additions & 4 deletions app/Http/Controllers/ThreadSubscriptionsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ class ThreadSubscriptionsController extends Controller
/**
* Store a new thread subscription.
*
* @param int $channelId
* @param Thread $thread
* @param int $channelId
* @param Thread $thread
*/
public function store($channelId, Thread $thread)
{
Expand All @@ -20,8 +20,8 @@ public function store($channelId, Thread $thread)
/**
* Delete an existing thread subscription.
*
* @param int $channelId
* @param Thread $thread
* @param int $channelId
* @param Thread $thread
*/
public function destroy($channelId, Thread $thread)
{
Expand Down
30 changes: 15 additions & 15 deletions app/Http/Controllers/ThreadsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

namespace App\Http\Controllers;

use App\Thread;
use App\Channel;
use App\Trending;
use App\Rules\Recaptcha;
use App\Filters\ThreadFilters;
use App\Rules\Recaptcha;
use App\Thread;
use App\Trending;
use Illuminate\Validation\Rule;

class ThreadsController extends Controller
Expand All @@ -22,9 +22,9 @@ public function __construct()
/**
* Display a listing of the resource.
*
* @param Channel $channel
* @param ThreadFilters $filters
* @param \App\Trending $trending
* @param Channel $channel
* @param ThreadFilters $filters
* @param \App\Trending $trending
* @return \Illuminate\Http\Response
*/
public function index(Channel $channel, ThreadFilters $filters)
Expand Down Expand Up @@ -56,7 +56,7 @@ public function create()
/**
* Store a newly created resource in storage.
*
* @param \App\Rules\Recaptcha $recaptcha
* @param \App\Rules\Recaptcha $recaptcha
* @return \Illuminate\Http\Response
*/
public function store(Recaptcha $recaptcha)
Expand Down Expand Up @@ -91,9 +91,9 @@ public function store(Recaptcha $recaptcha)
/**
* Display the specified resource.
*
* @param int $channel
* @param int $channel
* @param \App\Thread $thread
* @param \App\Trending $trending
* @param \App\Trending $trending
* @return \Illuminate\Http\Response
*/
public function show($channel, Thread $thread, Trending $trending)
Expand All @@ -112,8 +112,8 @@ public function show($channel, Thread $thread, Trending $trending)
/**
* Update the given thread.
*
* @param string $channel
* @param Thread $thread
* @param string $channel
* @param Thread $thread
*/
public function update($channel, Thread $thread)
{
Expand All @@ -130,8 +130,8 @@ public function update($channel, Thread $thread)
/**
* Delete the given thread.
*
* @param $channel
* @param Thread $thread
* @param $channel
* @param Thread $thread
* @return mixed
*/
public function destroy($channel, Thread $thread)
Expand All @@ -150,8 +150,8 @@ public function destroy($channel, Thread $thread)
/**
* Fetch all relevant threads.
*
* @param Channel $channel
* @param ThreadFilters $filters
* @param Channel $channel
* @param ThreadFilters $filters
* @return mixed
*/
protected function getThreads(Channel $channel, ThreadFilters $filters)
Expand Down
Loading