Skip to content

Commit

Permalink
chore: fixed license
Browse files Browse the repository at this point in the history
  • Loading branch information
lyrixx committed Feb 29, 2024
1 parent bb52aa6 commit 61b998a
Show file tree
Hide file tree
Showing 34 changed files with 216 additions and 189 deletions.
15 changes: 15 additions & 0 deletions .php-cs-fixer.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
<?php

/*
* This file is part of the beberlei/metrics project.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

$fileHeaderComment = <<<'LICENSE'
This file is part of the beberlei/metrics project.
For the full copyright and license information, please view the LICENSE.md
file that was distributed with this source code.
LICENSE;

$finder = PhpCsFixer\Finder::create()
->ignoreVCSIgnored(true)
->in(__DIR__)
Expand All @@ -16,6 +30,7 @@
'@Symfony' => true,
'@Symfony:risky' => true,
'heredoc_indentation' => false,
'header_comment' => ['header' => $fileHeaderComment],
'single_line_empty_body' => false,
'ordered_types' => false, // From @PhpCsFixer but we don't want it
'php_unit_internal_class' => false, // From @PhpCsFixer but we don't want it
Expand Down
19 changes: 19 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Copyright (c) 2004-preset Benjamin Eberlei

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.
7 changes: 7 additions & 0 deletions examples/castor.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
* This file is part of the beberlei/metrics project.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

use Castor\Attribute\AsTask;

use function Castor\import;
Expand Down
7 changes: 7 additions & 0 deletions examples/config/bundles.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
* This file is part of the beberlei/metrics project.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

return [
Symfony\Bundle\FrameworkBundle\FrameworkBundle::class => ['all' => true],
Doctrine\Bundle\DoctrineBundle\DoctrineBundle::class => ['all' => true],
Expand Down
7 changes: 7 additions & 0 deletions examples/config/preload.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
* This file is part of the beberlei/metrics project.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

if (file_exists(dirname(__DIR__) . '/var/cache/prod/App_KernelProdContainer.preload.php')) {
require dirname(__DIR__) . '/var/cache/prod/App_KernelProdContainer.preload.php';
}
14 changes: 5 additions & 9 deletions examples/importmap.php
Original file line number Diff line number Diff line change
@@ -1,16 +1,12 @@
<?php

/**
* Returns the importmap for this application.
/*
* This file is part of the beberlei/metrics project.
*
* - "path" is a path inside the asset mapper system. Use the
* "debug:asset-map" command to see the full list of paths.
*
* - "entrypoint" (JavaScript only) set to true for any module that will
* be used as an "entrypoint" (and passed to the importmap() Twig function).
*
* The "importmap:require" command can be used to add new entries to this file.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

return [
'app' => [
'path' => './assets/app.js',
Expand Down
7 changes: 7 additions & 0 deletions examples/public/index.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
* This file is part of the beberlei/metrics project.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

use App\Kernel;

require_once dirname(__DIR__) . '/vendor/autoload_runtime.php';
Expand Down
7 changes: 7 additions & 0 deletions examples/src/Controller/HomepageController.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
* This file is part of the beberlei/metrics project.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace App\Controller;

use Beberlei\Metrics\Collector\CollectorInterface;
Expand Down
7 changes: 7 additions & 0 deletions examples/src/Kernel.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
* This file is part of the beberlei/metrics project.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace App;

use Symfony\Bundle\FrameworkBundle\Kernel\MicroKernelTrait;
Expand Down
7 changes: 7 additions & 0 deletions examples/tests/bootstrap.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

/*
* This file is part of the beberlei/metrics project.
*
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

use Symfony\Component\Dotenv\Dotenv;

require dirname(__DIR__) . '/vendor/autoload.php';
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/CollectorInterface.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/DoctrineDBAL.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/DogStatsD.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/GaugeableCollectorInterface.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/Graphite.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/InMemory.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/InfluxDB.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/Logger.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/NullCollector.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/Prometheus.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down
14 changes: 5 additions & 9 deletions src/Metrics/Collector/StatsD.php
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
<?php
/**
* Beberlei Metrics.
*
* LICENSE

/*
* This file is part of the beberlei/metrics project.
*
* This source file is subject to the MIT license that is bundled
* with this package in the file LICENSE.txt.
* If you did not receive a copy of the license and are unable to
* obtain it through the world-wide-web, please send an email
* to kontakt@beberlei.de so I can send you a copy immediately.
* For the full copyright and license information, please view the LICENSE.md
* file that was distributed with this source code.
*/

namespace Beberlei\Metrics\Collector;
Expand Down

0 comments on commit 61b998a

Please sign in to comment.