diff --git a/extensions/lock/.php_cs b/extensions/lock/.php_cs index c55085293..20d29c766 100755 --- a/extensions/lock/.php_cs +++ b/extensions/lock/.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/lock/LICENSE.txt b/extensions/lock/LICENSE similarity index 100% rename from extensions/lock/LICENSE.txt rename to extensions/lock/LICENSE diff --git a/extensions/lock/bootstrap.php b/extensions/lock/bootstrap.php index 2f622b5d2..8b5b02d82 100644 --- a/extensions/lock/bootstrap.php +++ b/extensions/lock/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\Lock\Extension'; diff --git a/extensions/lock/migrations/2015_02_24_000000_add_locked_to_discussions.php b/extensions/lock/migrations/2015_02_24_000000_add_locked_to_discussions.php index eda1c24cd..58f97771c 100644 --- a/extensions/lock/migrations/2015_02_24_000000_add_locked_to_discussions.php +++ b/extensions/lock/migrations/2015_02_24_000000_add_locked_to_discussions.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/lock/src/Events/DiscussionWasLocked.php b/extensions/lock/src/Events/DiscussionWasLocked.php index c0cf2898d..d3a962def 100644 --- a/extensions/lock/src/Events/DiscussionWasLocked.php +++ b/extensions/lock/src/Events/DiscussionWasLocked.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\Lock\Events; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Users\User; diff --git a/extensions/lock/src/Events/DiscussionWasUnlocked.php b/extensions/lock/src/Events/DiscussionWasUnlocked.php index 07d1d1036..b7ae0a1d2 100644 --- a/extensions/lock/src/Events/DiscussionWasUnlocked.php +++ b/extensions/lock/src/Events/DiscussionWasUnlocked.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\Lock\Events; use Flarum\Core\Discussions\Discussion; use Flarum\Core\Users\User; diff --git a/extensions/lock/src/Extension.php b/extensions/lock/src/Extension.php index d1226c334..1a3827753 100644 --- a/extensions/lock/src/Extension.php +++ b/extensions/lock/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\Lock; use Flarum\Support\Extension as BaseExtension; use Illuminate\Events\Dispatcher; diff --git a/extensions/lock/src/Gambits/LockGambit.php b/extensions/lock/src/Gambits/LockGambit.php index eb801a249..9038ee5ff 100644 --- a/extensions/lock/src/Gambits/LockGambit.php +++ b/extensions/lock/src/Gambits/LockGambit.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\Lock\Gambits; use Flarum\Core\Search\Search; use Flarum\Core\Search\RegexGambit; diff --git a/extensions/lock/src/Listeners/AddApiAttributes.php b/extensions/lock/src/Listeners/AddApiAttributes.php index 0bf1df562..6fd7ec507 100755 --- a/extensions/lock/src/Listeners/AddApiAttributes.php +++ b/extensions/lock/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\Lock\Listeners; use Flarum\Events\ApiAttributes; use Illuminate\Contracts\Events\Dispatcher; diff --git a/extensions/lock/src/Listeners/AddClientAssets.php b/extensions/lock/src/Listeners/AddClientAssets.php index e5d381aa3..193e0d9eb 100755 --- a/extensions/lock/src/Listeners/AddClientAssets.php +++ b/extensions/lock/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\Lock\Listeners; use Flarum\Events\RegisterLocales; use Flarum\Events\BuildClientView; diff --git a/extensions/lock/src/Listeners/ConfigurePermissions.php b/extensions/lock/src/Listeners/ConfigurePermissions.php index 9384d4371..8502bb260 100755 --- a/extensions/lock/src/Listeners/ConfigurePermissions.php +++ b/extensions/lock/src/Listeners/ConfigurePermissions.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\Lock\Listeners; use Flarum\Events\ModelAllow; use Flarum\Core\Discussions\Discussion; diff --git a/extensions/lock/src/Listeners/NotifyDiscussionLocked.php b/extensions/lock/src/Listeners/NotifyDiscussionLocked.php index 0f8cd9a09..25dec2cb9 100755 --- a/extensions/lock/src/Listeners/NotifyDiscussionLocked.php +++ b/extensions/lock/src/Listeners/NotifyDiscussionLocked.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\Lock\Listeners; use Flarum\Events\RegisterPostTypes; use Flarum\Events\RegisterNotificationTypes; diff --git a/extensions/lock/src/Listeners/PersistData.php b/extensions/lock/src/Listeners/PersistData.php index d3dcfe9f6..b0b306b5c 100755 --- a/extensions/lock/src/Listeners/PersistData.php +++ b/extensions/lock/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\Lock\Listeners; use Flarum\Lock\Events\DiscussionWasLocked; use Flarum\Lock\Events\DiscussionWasUnlocked; diff --git a/extensions/lock/src/Notifications/DiscussionLockedBlueprint.php b/extensions/lock/src/Notifications/DiscussionLockedBlueprint.php index 4a7b7f40d..9d15ab17e 100644 --- a/extensions/lock/src/Notifications/DiscussionLockedBlueprint.php +++ b/extensions/lock/src/Notifications/DiscussionLockedBlueprint.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\Lock\Notifications; use Flarum\Lock\Posts\DiscussionLockedPost; use Flarum\Core\Notifications\Blueprint; diff --git a/extensions/lock/src/Posts/DiscussionLockedPost.php b/extensions/lock/src/Posts/DiscussionLockedPost.php index 515826ddf..4ebe2d48d 100755 --- a/extensions/lock/src/Posts/DiscussionLockedPost.php +++ b/extensions/lock/src/Posts/DiscussionLockedPost.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\Lock\Posts; use Flarum\Core\Posts\Post; use Flarum\Core\Posts\EventPost;