1
0
mirror of https://github.com/flarum/core.git synced 2025-07-29 04:30:56 +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 30c2a415e0
commit 455b00e234
307 changed files with 3277 additions and 580 deletions

26
framework/core/.php_cs Executable file
View File

@@ -0,0 +1,26 @@
<?php
$header = <<<EOF
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.
EOF;
Symfony\CS\Fixer\Contrib\HeaderCommentFixer::setHeader($header);
$finder = Symfony\CS\Finder\DefaultFinder::create()
->exclude('stubs')
->in(__DIR__);
return Symfony\CS\Config\Config::create()
->setUsingCache(true)
->level(Symfony\CS\FixerInterface::PSR2_LEVEL)
->fixers([
'short_array_syntax',
'header_comment',
'-psr0'
])
->finder($finder);

View File

@@ -1,7 +1,8 @@
language: php language: php
php: php:
- 5.4 - 5.5
- 5.6
matrix: matrix:
allow_failures: allow_failures:

View File

@@ -29,9 +29,9 @@
} }
} }
// PHONES: Somewhere on the page there will be a .back-button, a .primary- // PHONES: Somewhere on the page there will be a .App-backControl, a
// control, and a .App-titleControl. We will position these on the left, right, // .App-primaryControl, and a .App-titleControl. We will position these on the
// and center of the header respectively. // left, right, and center of the header respectively.
@media @phone { @media @phone {
.App-primaryControl, .App-titleControl, .App-backControl { .App-primaryControl, .App-titleControl, .App-backControl {
position: absolute !important; position: absolute !important;

View File

@@ -1,5 +1,14 @@
<?php <?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.
*/
return [ return [
'plural' => function ($count) { 'plural' => function ($count) {
return $count == 1 ? 'one' : 'other'; return $count == 1 ? 'one' : 'other';

View File

@@ -1,5 +1,14 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;

View File

@@ -1,11 +1,19 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
class CreateConfigTable extends Migration class CreateConfigTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *

View File

@@ -1,11 +1,19 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
class CreateDiscussionsTable extends Migration class CreateDiscussionsTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *

View File

@@ -1,5 +1,14 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;

View File

@@ -1,5 +1,14 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;

View File

@@ -1,11 +1,19 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
class CreateNotificationsTable extends Migration class CreateNotificationsTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *

View File

@@ -1,5 +1,14 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;

View File

@@ -1,11 +1,19 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
class CreatePermissionsTable extends Migration class CreatePermissionsTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *

View File

@@ -1,11 +1,19 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
class CreatePostsTable extends Migration class CreatePostsTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *

View File

@@ -1,11 +1,19 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
class CreateUsersDiscussionsTable extends Migration class CreateUsersDiscussionsTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *

View File

@@ -1,11 +1,19 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
class CreateUsersGroupsTable extends Migration class CreateUsersGroupsTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *

View File

@@ -1,11 +1,19 @@
<?php <?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.
*/
use Flarum\Migrations\Migration; use Flarum\Migrations\Migration;
use Illuminate\Database\Schema\Blueprint; use Illuminate\Database\Schema\Blueprint;
class CreateUsersTable extends Migration class CreateUsersTable extends Migration
{ {
/** /**
* Run the migrations. * Run the migrations.
* *

View File

@@ -1,5 +1,14 @@
<?php <?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 spec\Flarum\Core\Settings; namespace spec\Flarum\Core\Settings;
use Flarum\Core\Settings\SettingsRepository; use Flarum\Core\Settings\SettingsRepository;
@@ -8,17 +17,17 @@ use Prophecy\Argument;
class MemoryCacheSettingsRepositorySpec extends ObjectBehavior class MemoryCacheSettingsRepositorySpec extends ObjectBehavior
{ {
function let(SettingsRepository $inner) public function let(SettingsRepository $inner)
{ {
$this->beConstructedWith($inner); $this->beConstructedWith($inner);
} }
function it_is_initializable() public function it_is_initializable()
{ {
$this->shouldHaveType('Flarum\Core\Settings\MemoryCacheSettingsRepository'); $this->shouldHaveType('Flarum\Core\Settings\MemoryCacheSettingsRepository');
} }
function it_retrieves_data_from_inner(SettingsRepository $inner) public function it_retrieves_data_from_inner(SettingsRepository $inner)
{ {
$settings = ['a' => 1, 'b' => 2]; $settings = ['a' => 1, 'b' => 2];
$inner->all()->willReturn($settings); $inner->all()->willReturn($settings);
@@ -38,13 +47,13 @@ class MemoryCacheSettingsRepositorySpec extends ObjectBehavior
$this->get('d', 'foobar')->shouldReturn('foobar'); $this->get('d', 'foobar')->shouldReturn('foobar');
} }
function it_passes_new_data_to_inner(SettingsRepository $inner) public function it_passes_new_data_to_inner(SettingsRepository $inner)
{ {
$this->set('a', 1); $this->set('a', 1);
$inner->set('a', 1)->shouldHaveBeenCalled(); $inner->set('a', 1)->shouldHaveBeenCalled();
} }
function it_caches_new_data(SettingsRepository $inner) public function it_caches_new_data(SettingsRepository $inner)
{ {
$this->set('b', 2); $this->set('b', 2);
$this->get('b')->shouldReturn(2); $this->get('b')->shouldReturn(2);

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Admin\Actions; <?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\Admin\Actions;
use Flarum\Support\ClientAction as BaseClientAction; use Flarum\Support\ClientAction as BaseClientAction;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Admin; <?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\Admin;
use Flarum\Http\RouteCollection; use Flarum\Http\RouteCollection;
use Flarum\Http\UrlGenerator; use Flarum\Http\UrlGenerator;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Admin\Middleware; <?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\Admin\Middleware;
use Flarum\Api\AccessToken; use Flarum\Api\AccessToken;
use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Container\Container;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api; <?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\Api;
use Flarum\Core\Model; use Flarum\Core\Model;
use DateTime; use DateTime;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Api\Request; use Flarum\Api\Request;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Api\Request; use Flarum\Api\Request;
use Flarum\Core\Settings\SettingsRepository; use Flarum\Core\Settings\SettingsRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Api\JsonApiRequest; use Flarum\Api\JsonApiRequest;
use Flarum\Api\Request; use Flarum\Api\Request;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Api\Request; use Flarum\Api\Request;
use Zend\Diactoros\Response\EmptyResponse; use Zend\Diactoros\Response\EmptyResponse;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Discussions;
use Flarum\Core\Discussions\Commands\StartDiscussion; use Flarum\Core\Discussions\Commands\StartDiscussion;
use Flarum\Core\Discussions\Commands\ReadDiscussion; use Flarum\Core\Discussions\Commands\ReadDiscussion;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Discussions;
use Flarum\Core\Discussions\Commands\DeleteDiscussion; use Flarum\Core\Discussions\Commands\DeleteDiscussion;
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Discussions;
use Flarum\Core\Search\SearchCriteria; use Flarum\Core\Search\SearchCriteria;
use Flarum\Core\Discussions\Search\DiscussionSearcher; use Flarum\Core\Discussions\Search\DiscussionSearcher;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Discussions;
use Flarum\Core\Discussions\DiscussionRepository; use Flarum\Core\Discussions\DiscussionRepository;
use Flarum\Core\Posts\PostRepository; use Flarum\Core\Posts\PostRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Discussions;
use Flarum\Core\Discussions\Commands\EditDiscussion; use Flarum\Core\Discussions\Commands\EditDiscussion;
use Flarum\Core\Discussions\Commands\ReadDiscussion; use Flarum\Core\Discussions\Commands\ReadDiscussion;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\Extensions; <?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\Api\Actions\Extensions;
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;
use Flarum\Api\Request; use Flarum\Api\Request;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\Extensions; <?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\Api\Actions\Extensions;
use Flarum\Api\Actions\JsonApiAction; use Flarum\Api\Actions\JsonApiAction;
use Flarum\Api\Request; use Flarum\Api\Request;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Api\Request; use Flarum\Api\Request;
use Flarum\Core\Users\UserRepository; use Flarum\Core\Users\UserRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\Forum; <?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\Api\Actions\Forum;
use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\Actions\SerializeResourceAction;
use Flarum\Api\JsonApiRequest; use Flarum\Api\JsonApiRequest;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\Forum; <?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\Api\Actions\Forum;
use Flarum\Core\Exceptions\PermissionDeniedException; use Flarum\Core\Exceptions\PermissionDeniedException;
use Flarum\Core\Settings\SettingsRepository; use Flarum\Core\Settings\SettingsRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Groups;
use Flarum\Core\Groups\Commands\CreateGroup; use Flarum\Core\Groups\Commands\CreateGroup;
use Flarum\Api\Actions\CreateAction as BaseCreateAction; use Flarum\Api\Actions\CreateAction as BaseCreateAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Groups;
use Flarum\Core\Groups\Commands\DeleteGroup; use Flarum\Core\Groups\Commands\DeleteGroup;
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Groups;
use Flarum\Core\Groups\Group; use Flarum\Core\Groups\Group;
use Flarum\Api\Actions\SerializeCollectionAction; use Flarum\Api\Actions\SerializeCollectionAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Groups;
use Flarum\Core\Groups\Commands\EditGroup; use Flarum\Core\Groups\Commands\EditGroup;
use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\Actions\SerializeResourceAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Api\Request; use Flarum\Api\Request;
use Illuminate\Contracts\Validation\ValidationException; use Illuminate\Contracts\Validation\ValidationException;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Notifications;
use Flarum\Core\Notifications\NotificationRepository; use Flarum\Core\Notifications\NotificationRepository;
use Flarum\Core\Exceptions\PermissionDeniedException; use Flarum\Core\Exceptions\PermissionDeniedException;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Notifications;
use Flarum\Core\Notifications\Commands\ReadNotification; use Flarum\Core\Notifications\Commands\ReadNotification;
use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\Actions\SerializeResourceAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Api\Request; use Flarum\Api\Request;
use Flarum\Core\Groups\Permission; use Flarum\Core\Groups\Permission;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Posts;
use Flarum\Core\Posts\Commands\PostReply; use Flarum\Core\Posts\Commands\PostReply;
use Flarum\Core\Discussions\Commands\ReadDiscussion; use Flarum\Core\Discussions\Commands\ReadDiscussion;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Posts;
use Flarum\Core\Posts\Commands\DeletePost; use Flarum\Core\Posts\Commands\DeletePost;
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Posts;
use Flarum\Api\JsonApiRequest; use Flarum\Api\JsonApiRequest;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Posts;
use Flarum\Core\Posts\PostRepository; use Flarum\Core\Posts\PostRepository;
use Flarum\Api\Actions\SerializeCollectionAction; use Flarum\Api\Actions\SerializeCollectionAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Posts;
use Illuminate\Database\Eloquent\ModelNotFoundException; use Illuminate\Database\Eloquent\ModelNotFoundException;
use Flarum\Core\Posts\PostRepository; use Flarum\Core\Posts\PostRepository;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Posts;
use Flarum\Core\Posts\Commands\EditPost; use Flarum\Core\Posts\Commands\EditPost;
use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\Actions\SerializeResourceAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Events\BuildApiAction; use Flarum\Events\BuildApiAction;
use Flarum\Events\WillSerializeData; use Flarum\Events\WillSerializeData;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Tobscure\JsonApi\SerializerInterface; use Tobscure\JsonApi\SerializerInterface;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Tobscure\JsonApi\SerializerInterface; use Tobscure\JsonApi\SerializerInterface;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions; <?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\Api\Actions;
use Flarum\Api\Commands\GenerateAccessToken; use Flarum\Api\Commands\GenerateAccessToken;
use Flarum\Api\Request; use Flarum\Api\Request;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Users;
use Flarum\Core\Users\Commands\RegisterUser; use Flarum\Core\Users\Commands\RegisterUser;
use Flarum\Api\Actions\CreateAction as BaseCreateAction; use Flarum\Api\Actions\CreateAction as BaseCreateAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Users;
use Flarum\Core\Users\Commands\DeleteUser; use Flarum\Core\Users\Commands\DeleteUser;
use Flarum\Api\Actions\DeleteAction as BaseDeleteAction; use Flarum\Api\Actions\DeleteAction as BaseDeleteAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Users;
use Flarum\Core\Users\Commands\DeleteAvatar; use Flarum\Core\Users\Commands\DeleteAvatar;
use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\Actions\SerializeResourceAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Users;
use Flarum\Core\Search\SearchCriteria; use Flarum\Core\Search\SearchCriteria;
use Flarum\Core\Users\Search\UserSearcher; use Flarum\Core\Users\Search\UserSearcher;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Users;
use Flarum\Core\Users\UserRepository; use Flarum\Core\Users\UserRepository;
use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\Actions\SerializeResourceAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Users;
use Flarum\Core\Users\Commands\EditUser; use Flarum\Core\Users\Commands\EditUser;
use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\Actions\SerializeResourceAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Actions\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\Api\Actions\Users;
use Flarum\Core\Users\Commands\UploadAvatar; use Flarum\Core\Users\Commands\UploadAvatar;
use Flarum\Api\Actions\SerializeResourceAction; use Flarum\Api\Actions\SerializeResourceAction;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api; <?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\Api;
use Flarum\Api\Serializers\ActivitySerializer; use Flarum\Api\Serializers\ActivitySerializer;
use Flarum\Api\Serializers\NotificationSerializer; use Flarum\Api\Serializers\NotificationSerializer;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api; <?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\Api;
use Flarum\Core\Users\User; use Flarum\Core\Users\User;
use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Container\Container;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\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\Api\Commands;
class GenerateAccessToken class GenerateAccessToken
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\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\Api\Commands;
use Flarum\Api\AccessToken; use Flarum\Api\AccessToken;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api; <?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\Api;
class JsonApiRequest extends Request class JsonApiRequest extends Request
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Middleware; <?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\Api\Middleware;
use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Middleware; <?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\Api\Middleware;
use Flarum\Api\AccessToken; use Flarum\Api\AccessToken;
use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Container\Container;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Middleware; <?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\Api\Middleware;
use Psr\Http\Message\ResponseInterface as Response; use Psr\Http\Message\ResponseInterface as Response;
use Psr\Http\Message\ServerRequestInterface as Request; use Psr\Http\Message\ServerRequestInterface as Request;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api; <?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\Api;
use Flarum\Core\Users\Guest; use Flarum\Core\Users\Guest;
use Flarum\Core\Users\User; use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api; <?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\Api;
use Psr\Http\Message\ResponseInterface; use Psr\Http\Message\ResponseInterface;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class ActivitySerializer extends Serializer class ActivitySerializer extends Serializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class CurrentUserSerializer extends UserSerializer class CurrentUserSerializer extends UserSerializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class DiscussionBasicSerializer extends Serializer class DiscussionBasicSerializer extends Serializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
use Flarum\Core\Discussions\Discussion; use Flarum\Core\Discussions\Discussion;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
use Flarum\Core; use Flarum\Core;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class GroupSerializer extends Serializer class GroupSerializer extends Serializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class NotificationSerializer extends Serializer class NotificationSerializer extends Serializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class PostBasicSerializer extends Serializer class PostBasicSerializer extends Serializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class PostSerializer extends PostBasicSerializer class PostSerializer extends PostBasicSerializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
use Closure; use Closure;
use Flarum\Core\Users\User; use Flarum\Core\Users\User;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class UserBasicSerializer extends Serializer class UserBasicSerializer extends Serializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Api\Serializers; <?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\Api\Serializers;
class UserSerializer extends UserBasicSerializer class UserSerializer extends UserBasicSerializer
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Assets; <?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\Assets;
use DomainException; use DomainException;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Assets; <?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\Assets;
interface Compiler interface Compiler
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Assets; <?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\Assets;
class JsCompiler extends RevisionCompiler class JsCompiler extends RevisionCompiler
{ {

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Assets; <?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\Assets;
use Less_Parser; use Less_Parser;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Assets; <?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\Assets;
use Illuminate\Support\Str; use Illuminate\Support\Str;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Console; <?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\Console;
use Symfony\Component\Console\Command\Command as SymfonyCommand; use Symfony\Component\Console\Command\Command as SymfonyCommand;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Console; <?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\Console;
use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Container\Container;
use Symfony\Component\Console\Input\InputOption; use Symfony\Component\Console\Input\InputOption;

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Console; <?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\Console;
use Illuminate\Console\Command; use Illuminate\Console\Command;
use Illuminate\Foundation\Application; use Illuminate\Foundation\Application;
@@ -14,7 +24,6 @@ use Symfony\Component\Console\Helper\ProgressBar;
class ImportCommand extends Command class ImportCommand extends Command
{ {
/** /**
* The console command name. * The console command name.
* *

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum\Console; <?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\Console;
use Illuminate\Contracts\Container\Container; use Illuminate\Contracts\Container\Container;
use Symfony\Component\Console\Input\InputInterface; use Symfony\Component\Console\Input\InputInterface;
@@ -41,7 +51,7 @@ class UpgradeCommand extends Command
protected function upgrade() protected function upgrade()
{ {
$this->container->bind('Illuminate\Database\Schema\Builder', function($container) { $this->container->bind('Illuminate\Database\Schema\Builder', function ($container) {
return $container->make('Illuminate\Database\ConnectionInterface')->getSchemaBuilder(); return $container->make('Illuminate\Database\ConnectionInterface')->getSchemaBuilder();
}); });

View File

@@ -1,4 +1,14 @@
<?php namespace Flarum; <?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;
class Core class Core
{ {

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 Closure;
use RuntimeException; 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\Core\Users\User;
use Flarum\Events\ModelAllow; 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\Core;
use Flarum\Support\ServiceProvider; 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; 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\Core\Discussions\DiscussionRepository;
use Flarum\Events\DiscussionWillBeDeleted; 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; 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\Core\Discussions\DiscussionRepository;
use Flarum\Events\DiscussionWillBeSaved; 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; use Flarum\Core\Users\User;

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