1
0
mirror of https://github.com/flarum/core.git synced 2025-10-15 00:44:40 +02:00

Add header comment; PSR-2 fixes; remove seeders

This commit is contained in:
Toby Zerner
2015-08-26 16:18:58 +09:30
parent dae8e617ae
commit 0b8aa5c124
307 changed files with 3277 additions and 580 deletions

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core;
use Closure;
use RuntimeException;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core;
use Flarum\Core\Users\User;
use Flarum\Events\ModelAllow;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core;
use Flarum\Core;
use Flarum\Support\ServiceProvider;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Commands;
use Flarum\Core\Discussions\DiscussionRepository;
use Flarum\Events\DiscussionWillBeDeleted;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Commands;
use Flarum\Core\Discussions\DiscussionRepository;
use Flarum\Events\DiscussionWillBeSaved;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Commands;
use Flarum\Core\Discussions\DiscussionRepository;
use Flarum\Events\DiscussionStateWillBeSaved;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Commands;
use Flarum\Events\DiscussionWillBeSaved;
use Flarum\Core\Forum;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions;
use Flarum\Core\Model;
use Flarum\Events\DiscussionWasDeleted;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions;
use Illuminate\Database\Eloquent\Builder;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions;
use Flarum\Events\DiscussionWasRead;
use Flarum\Core\Model;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions;
use Flarum\Core\Search\GambitManager;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Listeners;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Listeners;
use Flarum\Core\Posts\Post;
use Flarum\Events\PostWasPosted;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Search;
use Flarum\Core\Search\Search;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Search;
use Flarum\Core\Discussions\Discussion;
use Flarum\Core\Search\AppliesParametersToSearch;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Search\Fulltext;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Search\Fulltext;
interface Driver
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Search\Fulltext;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Search\Fulltext;
use Flarum\Core\Posts\Post;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Search\Gambits;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Search\Gambits;
use Flarum\Core\Discussions\Search\DiscussionSearch;
use Flarum\Core\Users\UserRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Search\Gambits;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Search\Gambits;
use Flarum\Core\Discussions\Search\DiscussionSearch;
use Flarum\Core\Discussions\Search\Fulltext\Driver;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Discussions\Search\Gambits;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Discussions\Search\Gambits;
use Flarum\Core\Discussions\DiscussionRepository;
use Flarum\Core\Discussions\Search\DiscussionSearch;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Exceptions;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Exceptions;
use Exception;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Exceptions;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Exceptions;
use Exception;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Exceptions;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Exceptions;
use Exception;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Formatter;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Formatter;
use Illuminate\Contracts\Cache\Repository;
use s9e\TextFormatter\Configurator;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Formatter;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Formatter;
use Flarum\Support\ServiceProvider;
use Flarum\Extend;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core;
use Flarum\Core\Support\Locked;
use Flarum\Core;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups\Commands;
use Flarum\Core\Groups\Group;
use Flarum\Core\Forum;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups\Commands;
use Flarum\Core\Groups\Group;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups\Commands;
use Flarum\Core\Groups\Group;
use Flarum\Core\Groups\GroupRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups\Commands;
use Flarum\Core\Groups\Group;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups\Commands;
use Flarum\Core\Groups\Group;
use Flarum\Core\Groups\GroupRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups;
use Flarum\Core\Model;
use Flarum\Core\Support\Locked;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups;
use Flarum\Core\Users\User;
use Illuminate\Database\Eloquent\Builder;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups;
use Flarum\Events\ModelAllow;
use Flarum\Support\ServiceProvider;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Groups;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Groups;
use Flarum\Core\Model;
use Illuminate\Database\Eloquent\Builder;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core;
use Flarum\Core\Exceptions\PermissionDeniedException;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications;
/**
* A notification Blueprint, when instantiated, represents a notification about

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications\Commands;
use Flarum\Core\Notifications\Notification;
use Flarum\Core\Exceptions\PermissionDeniedException;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications;
use Flarum\Core\Posts\DiscussionRenamedPost;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications\Listeners;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications\Listeners;
use Flarum\Events\DiscussionWasRenamed;
use Flarum\Core\Posts\DiscussionRenamedPost;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications;
interface MailableBlueprint
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications;
use Flarum\Core\Model;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications;
use Flarum\Core\Users\User;
use Illuminate\Contracts\Mail\Mailer;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications;
use Flarum\Events\NotificationWillBeSent;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Notifications;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Notifications;
use Flarum\Core\Users\User;
use Flarum\Events\RegisterNotificationTypes;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts\Commands;
use Flarum\Core\Posts\PostRepository;
use Flarum\Events\PostWillBeDeleted;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts\Commands;
use Flarum\Core\Posts\PostRepository;
use Flarum\Events\PostWillBeSaved;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts\Commands;
use Flarum\Events\PostWillBeSaved;
use Flarum\Core\Discussions\DiscussionRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts;
use DomainException;
use Flarum\Core\Formatter\Formatter;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts;
/**
* A post which indicates that a discussion's title was changed.

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts;
abstract class EventPost extends Post
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts;
/**
* A post that has the ability to be merged into an adjacent post.

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts;
use DomainException;
use Flarum\Events\PostWasDeleted;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts;
use Illuminate\Database\Eloquent\Builder;
use Illuminate\Database\Eloquent\ModelNotFoundException;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts;
use Flarum\Core\Discussions\Discussion;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Posts;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Posts;
use Illuminate\Database\Eloquent\ScopeInterface;
use Illuminate\Database\Eloquent\Builder;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Search;
trait AppliesParametersToSearch
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Search;
interface Gambit
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Search;
use Illuminate\Contracts\Container\Container;
use LogicException;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Search;
abstract class RegexGambit implements Gambit
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Search;
use Flarum\Core\Users\User;
use Illuminate\Database\Query\Builder;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Search;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Search;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Search;
use Illuminate\Database\Eloquent\Collection;

View File

@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Settings;
use Illuminate\Database\ConnectionInterface;

View File

@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Settings;
class MemoryCacheSettingsRepository implements SettingsRepository
@@ -29,7 +38,7 @@ class MemoryCacheSettingsRepository implements SettingsRepository
{
if (array_key_exists($key, $this->cache)) {
return $this->cache[$key];
} else if (!$this->isCached) {
} elseif (!$this->isCached) {
return array_get($this->all(), $key, $default);
}

View File

@@ -1,5 +1,14 @@
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Settings;
interface SettingsRepository

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Settings;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Settings;
use Flarum\Support\ServiceProvider;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Support;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Support;
trait DispatchesEvents
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Support;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Support;
trait EventGenerator
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Support;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Support;
use Flarum\Core\Exceptions\PermissionDeniedException;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Support;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Support;
use Flarum\Events\ModelValidator;
use Illuminate\Validation\Factory;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Support;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Support;
use Flarum\Events\ScopeModelVisibility;
use Illuminate\Database\Eloquent\Builder;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
class ConfirmEmail
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\UserRepository;
use Flarum\Events\UserWillBeSaved;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Events\AvatarWillBeDeleted;
use Flarum\Core\Users\UserRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\User;
use Flarum\Core\Users\UserRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\User;
use Flarum\Core\Users\UserRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\User;
use Flarum\Events\UserWillBeSaved;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
class RequestPasswordReset
{

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Settings\SettingsRepository;
use Flarum\Core\Users\PasswordToken;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Core\Users\User;
use Psr\Http\Message\UploadedFileInterface;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Commands;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Commands;
use Flarum\Events\AvatarWillBeSaved;
use Flarum\Core\Users\UserRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users;
use Flarum\Core\Model;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users;
use Flarum\Core\Groups\Group;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Listeners;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Listeners;
use Flarum\Core\Settings\SettingsRepository;
use Flarum\Events\UserWasRegistered;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users\Listeners;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users\Listeners;
use Flarum\Core\Users\User;
use Flarum\Events\PostWasPosted;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Core\Users;
<?php
/*
* This file is part of Flarum.
*
* (c) Toby Zerner <toby.zerner@gmail.com>
*
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/
namespace Flarum\Core\Users;
use Flarum\Core\Model;

Some files were not shown because too many files have changed in this diff Show More