From f02d0ec6025dbdb1bcd4c282ea529772461b4063 Mon Sep 17 00:00:00 2001 From: Toby Zerner Date: Fri, 4 Sep 2015 12:32:27 +0930 Subject: [PATCH] Add LICENSE information --- extensions/likes/.php_cs | 1 - extensions/likes/{LICENSE.txt => LICENSE} | 0 extensions/likes/bootstrap.php | 9 +++++++++ .../2015_05_11_000000_create_posts_likes_table.php | 9 +++++++++ ...015_09_04_000000_add_default_like_permissions.php | 9 +++++++++ extensions/likes/src/Events/PostWasLiked.php | 12 +++++++++++- extensions/likes/src/Events/PostWasUnliked.php | 12 +++++++++++- extensions/likes/src/Extension.php | 12 +++++++++++- extensions/likes/src/Listeners/AddApiAttributes.php | 12 +++++++++++- extensions/likes/src/Listeners/AddClientAssets.php | 12 +++++++++++- .../likes/src/Listeners/AddModelRelationship.php | 12 +++++++++++- extensions/likes/src/Listeners/NotifyPostLiked.php | 12 +++++++++++- extensions/likes/src/Listeners/PersistData.php | 12 +++++++++++- .../likes/src/Notifications/PostLikedBlueprint.php | 12 +++++++++++- 14 files changed, 126 insertions(+), 10 deletions(-) rename extensions/likes/{LICENSE.txt => LICENSE} (100%) diff --git a/extensions/likes/.php_cs b/extensions/likes/.php_cs index c55085293..20d29c766 100755 --- a/extensions/likes/.php_cs +++ b/extensions/likes/.php_cs @@ -17,7 +17,6 @@ $finder = Symfony\CS\Finder\DefaultFinder::create() ->in(__DIR__); return Symfony\CS\Config\Config::create() - ->setUsingCache(true) ->level(Symfony\CS\FixerInterface::PSR2_LEVEL) ->fixers([ 'short_array_syntax', diff --git a/extensions/likes/LICENSE.txt b/extensions/likes/LICENSE similarity index 100% rename from extensions/likes/LICENSE.txt rename to extensions/likes/LICENSE diff --git a/extensions/likes/bootstrap.php b/extensions/likes/bootstrap.php index 15cfc3883..1452bd2b1 100644 --- a/extensions/likes/bootstrap.php +++ b/extensions/likes/bootstrap.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + require __DIR__.'/vendor/autoload.php'; return 'Flarum\Likes\Extension'; diff --git a/extensions/likes/migrations/2015_05_11_000000_create_posts_likes_table.php b/extensions/likes/migrations/2015_05_11_000000_create_posts_likes_table.php index e4ef11649..fa68bf5a9 100644 --- a/extensions/likes/migrations/2015_05_11_000000_create_posts_likes_table.php +++ b/extensions/likes/migrations/2015_05_11_000000_create_posts_likes_table.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Illuminate\Database\Schema\Blueprint; use Flarum\Migrations\Migration; diff --git a/extensions/likes/migrations/2015_09_04_000000_add_default_like_permissions.php b/extensions/likes/migrations/2015_09_04_000000_add_default_like_permissions.php index 73c09581f..c7567f386 100644 --- a/extensions/likes/migrations/2015_09_04_000000_add_default_like_permissions.php +++ b/extensions/likes/migrations/2015_09_04_000000_add_default_like_permissions.php @@ -1,5 +1,14 @@ + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + use Illuminate\Database\Schema\Blueprint; use Flarum\Migrations\Migration; use Flarum\Core\Groups\Group; diff --git a/extensions/likes/src/Events/PostWasLiked.php b/extensions/likes/src/Events/PostWasLiked.php index 948eb0d45..589f8f0e0 100644 --- a/extensions/likes/src/Events/PostWasLiked.php +++ b/extensions/likes/src/Events/PostWasLiked.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes\Events; use Flarum\Core\Posts\Post; use Flarum\Core\Users\User; diff --git a/extensions/likes/src/Events/PostWasUnliked.php b/extensions/likes/src/Events/PostWasUnliked.php index 4a5d2bd4c..624d0c6cf 100644 --- a/extensions/likes/src/Events/PostWasUnliked.php +++ b/extensions/likes/src/Events/PostWasUnliked.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes\Events; use Flarum\Core\Posts\Post; use Flarum\Core\Users\User; diff --git a/extensions/likes/src/Extension.php b/extensions/likes/src/Extension.php index 8d8aa2601..a929386e7 100644 --- a/extensions/likes/src/Extension.php +++ b/extensions/likes/src/Extension.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes; use Flarum\Support\Extension as BaseExtension; use Illuminate\Events\Dispatcher; diff --git a/extensions/likes/src/Listeners/AddApiAttributes.php b/extensions/likes/src/Listeners/AddApiAttributes.php index 1fedb1d1d..34a090c1c 100755 --- a/extensions/likes/src/Listeners/AddApiAttributes.php +++ b/extensions/likes/src/Listeners/AddApiAttributes.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes\Listeners; use Flarum\Events\ApiAttributes; use Flarum\Events\ApiRelationship; diff --git a/extensions/likes/src/Listeners/AddClientAssets.php b/extensions/likes/src/Listeners/AddClientAssets.php index b34eacda3..f54f21699 100755 --- a/extensions/likes/src/Listeners/AddClientAssets.php +++ b/extensions/likes/src/Listeners/AddClientAssets.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes\Listeners; use Flarum\Events\RegisterLocales; use Flarum\Events\BuildClientView; diff --git a/extensions/likes/src/Listeners/AddModelRelationship.php b/extensions/likes/src/Listeners/AddModelRelationship.php index e3912ef6d..a0eca598b 100755 --- a/extensions/likes/src/Listeners/AddModelRelationship.php +++ b/extensions/likes/src/Listeners/AddModelRelationship.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes\Listeners; use Flarum\Events\ModelRelationship; use Flarum\Core\Posts\Post; diff --git a/extensions/likes/src/Listeners/NotifyPostLiked.php b/extensions/likes/src/Listeners/NotifyPostLiked.php index a00fb5232..e9a257047 100755 --- a/extensions/likes/src/Listeners/NotifyPostLiked.php +++ b/extensions/likes/src/Listeners/NotifyPostLiked.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes\Listeners; use Flarum\Likes\Notifications\PostLikedBlueprint; use Flarum\Events\RegisterNotificationTypes; diff --git a/extensions/likes/src/Listeners/PersistData.php b/extensions/likes/src/Listeners/PersistData.php index f2efb5f07..d1f7cd3c5 100755 --- a/extensions/likes/src/Listeners/PersistData.php +++ b/extensions/likes/src/Listeners/PersistData.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes\Listeners; use Flarum\Likes\Events\PostWasLiked; use Flarum\Likes\Events\PostWasUnliked; diff --git a/extensions/likes/src/Notifications/PostLikedBlueprint.php b/extensions/likes/src/Notifications/PostLikedBlueprint.php index be6cef1bf..9b932140f 100644 --- a/extensions/likes/src/Notifications/PostLikedBlueprint.php +++ b/extensions/likes/src/Notifications/PostLikedBlueprint.php @@ -1,4 +1,14 @@ - + * + * For the full copyright and license information, please view the LICENSE + * file that was distributed with this source code. + */ + +namespace Flarum\Likes\Notifications; use Flarum\Core\Posts\Post; use Flarum\Core\Users\User;