diff --git a/extensions/bbcode/.php_cs b/extensions/bbcode/.php_cs index c55085293..20d29c766 100755 --- a/extensions/bbcode/.php_cs +++ b/extensions/bbcode/.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/bbcode/LICENSE b/extensions/bbcode/LICENSE new file mode 100644 index 000000000..aa1e5fb86 --- /dev/null +++ b/extensions/bbcode/LICENSE @@ -0,0 +1,21 @@ +The MIT License (MIT) + +Copyright (c) 2014-2015 Toby Zerner + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/extensions/bbcode/bootstrap.php b/extensions/bbcode/bootstrap.php index c5398075a..7384ebccf 100644 --- a/extensions/bbcode/bootstrap.php +++ b/extensions/bbcode/bootstrap.php @@ -1,10 +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 the name of our Extension class. Flarum will register it as a service -// provider, allowing it to register bindings and execute code when the -// application boots. return 'Flarum\BBCode\Extension'; diff --git a/extensions/bbcode/src/Extension.php b/extensions/bbcode/src/Extension.php index 91f245fc8..3bab39caa 100644 --- a/extensions/bbcode/src/Extension.php +++ b/extensions/bbcode/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\BBCode; use Flarum\Support\Extension as BaseExtension; use Illuminate\Events\Dispatcher; diff --git a/extensions/bbcode/src/Listeners/AddBBCodeFormatter.php b/extensions/bbcode/src/Listeners/AddBBCodeFormatter.php index ffa2778b7..e59d3664c 100644 --- a/extensions/bbcode/src/Listeners/AddBBCodeFormatter.php +++ b/extensions/bbcode/src/Listeners/AddBBCodeFormatter.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\BBCode\Listeners; use Flarum\Events\FormatterConfigurator; use Illuminate\Contracts\Events\Dispatcher; diff --git a/extensions/bbcode/src/Listeners/AddClientAssets.php b/extensions/bbcode/src/Listeners/AddClientAssets.php index 8d2d15bec..731b5e150 100644 --- a/extensions/bbcode/src/Listeners/AddClientAssets.php +++ b/extensions/bbcode/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\BBCode\Listeners; use Flarum\Events\RegisterLocales; use Flarum\Events\BuildClientView;