Skip to content

Commit

Permalink
update files notices and add ecs cache
Browse files Browse the repository at this point in the history
  • Loading branch information
juliangut committed Dec 9, 2023
1 parent e578e22 commit 5bc6933
Show file tree
Hide file tree
Showing 110 changed files with 121 additions and 342 deletions.
19 changes: 8 additions & 11 deletions ecs.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand All @@ -17,21 +15,20 @@
use PhpCsFixerCustomFixers\Fixer\NoNullableBooleanTypeFixer;
use Symplify\EasyCodingStandard\Config\ECSConfig;

$header = <<<'HEADER'
slim-routing (https://github.com/juliangut/slim-routing).
Slim framework routing.
return static function (ECSConfig $ecsConfig): void {
$header = <<<'HEADER'
(c) 2017-{{year}} Julián Gutiérrez <[email protected]>
@license BSD-3-Clause
@link https://github.com/juliangut/slim-routing
@author Julián Gutiérrez <[email protected]>
HEADER;
@license BSD-3-Clause
@link https://github.com/juliangut/slim-routing
HEADER;

return static function (ECSConfig $ecsConfig) use ($header): void {
$ecsConfig->paths([
__FILE__,
__DIR__ . '/src',
__DIR__ . '/tests',
]);
$ecsConfig->cacheDirectory('.ecs.cache');

$skips = [
NoSilencedErrorsSniff::class . '.Forbidden' => [
Expand Down
4 changes: 1 addition & 3 deletions src/AppFactory.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Configuration.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Console/AbstractRoutingCommand.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Console/ListCommand.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Console/MatchCommand.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Annotation/ArgumentTrait.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Annotation/Group.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Annotation/MiddlewareTrait.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Annotation/PathTrait.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Annotation/Route.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Annotation/Router.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Annotation/TransformerTrait.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
8 changes: 3 additions & 5 deletions src/Mapping/Attribute/Group.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand All @@ -24,10 +22,10 @@ public function __construct(
private ?string $pattern = null,
/**
* @var array<string, string>
*/ private array $placeholders = [],
*/ private array $placeholders = [],
/**
* @var array<string, string>
*/ private array $arguments = [],
*/ private array $arguments = [],
) {}

public function getPrefix(): ?string
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Attribute/Middleware.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
8 changes: 3 additions & 5 deletions src/Mapping/Attribute/Route.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand All @@ -32,10 +30,10 @@ public function __construct(
private ?string $pattern = null,
/**
* @var array<string, string>
*/ private array $placeholders = [],
*/ private array $placeholders = [],
/**
* @var array<string, string>
*/ private array $arguments = [],
*/ private array $arguments = [],
protected bool $xmlHttpRequest = false,
protected int $priority = 0,
) {
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Attribute/Transformer.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Driver/AnnotationDriver.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Driver/AttributeDriver.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Driver/DriverFactory.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Driver/FileMappingTrait.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Driver/JsonDriver.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Driver/PhpDriver.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
4 changes: 1 addition & 3 deletions src/Mapping/Driver/XmlDriver.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
<?php

/*
* slim-routing (https://github.com/juliangut/slim-routing).
* Slim framework routing.
* (c) 2017-2023 Julián Gutiérrez <[email protected]>
*
* @license BSD-3-Clause
* @link https://github.com/juliangut/slim-routing
* @author Julián Gutiérrez <[email protected]>
*/

declare(strict_types=1);
Expand Down
Loading

0 comments on commit 5bc6933

Please sign in to comment.