-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #30 from FriendsOfCXML/feat/version-2
cXML Version 2.0.0 (PHP 8.2+)
- Loading branch information
Showing
139 changed files
with
2,096 additions
and
2,211 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,6 @@ | |
vendor | ||
composer.lock | ||
.idea | ||
.phpunit.result.cache | ||
/.phpunit.result.cache | ||
/.phpunit.cache | ||
/.phpstan/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,44 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use PhpCsFixer\Config; | ||
use PhpCsFixer\Finder; | ||
use PhpCsFixer\Runner\Parallel\ParallelConfig; | ||
|
||
$finder = Finder::create() | ||
->in(__DIR__ . '/src') | ||
->in(__DIR__ . '/tests'); | ||
|
||
$config = new Config(); | ||
|
||
return $config | ||
->setParallelConfig((new ParallelConfig())) | ||
->setRiskyAllowed(true) | ||
->setRules([ | ||
'@PSR2' => true, | ||
'@PSR1' => true, | ||
'@PhpCsFixer' => true, | ||
'@PhpCsFixer:risky' => false, | ||
'@Symfony' => true, | ||
'@Symfony:risky' => false, | ||
'nullable_type_declaration_for_default_null_value' => false, | ||
'void_return' => true, | ||
'random_api_migration' => true, | ||
'pow_to_exponentiation' => true, | ||
'combine_nested_dirname' => true, | ||
'phpdoc_separation' => false, | ||
'phpdoc_align' => ['align' => 'left'], | ||
'@PHP82Migration' => true, | ||
'global_namespace_import' => ['import_classes' => true, 'import_constants' => true, 'import_functions' => true], | ||
'modernize_strpos' => true, | ||
'function_declaration' => ['closure_function_spacing' => 'one', 'closure_fn_spacing' => 'one'], | ||
'phpdoc_to_comment' => ['ignored_tags' => ['todo', 'var', 'property']], | ||
'general_phpdoc_annotation_remove' => ['annotations' => ['expectedDeprecation']], | ||
'array_syntax' => ['syntax' => 'short'], | ||
'cast_spaces' => ['space' => 'none'], | ||
'concat_space' => ['spacing' => 'one'], | ||
'multiline_whitespace_before_semicolons' => ['strategy' => 'no_multi_line'], | ||
'trailing_comma_in_multiline' => ['after_heredoc' => true, 'elements' => ['arguments', 'arrays', 'match', 'parameters']], | ||
]) | ||
->setFinder($finder); |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" bootstrap="tests/bootstrap.php" xsi:noNamespaceSchemaLocation="https://schema.phpunit.de/10.5/phpunit.xsd" cacheDirectory=".phpunit.cache"> | ||
<!-- <coverage>--> | ||
<!-- <report>--> | ||
<!-- <html outputDirectory="./.tmp/report" lowUpperBound="35" highLowerBound="70"/>--> | ||
<!-- </report>--> | ||
<!-- </coverage>--> | ||
<testsuites> | ||
<testsuite name="cXML Test Suite"> | ||
<directory>tests/</directory> | ||
</testsuite> | ||
</testsuites> | ||
<logging/> | ||
<source> | ||
<include> | ||
<directory suffix=".php">src</directory> | ||
</include> | ||
</source> | ||
</phpunit> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
use Rector\Caching\ValueObject\Storage\FileCacheStorage; | ||
use Rector\Config\RectorConfig; | ||
use Rector\PHPUnit\Set\PHPUnitSetList; | ||
use Rector\Set\ValueObject\SetList; | ||
use Rector\Symfony\Set\JMSSetList; | ||
|
||
return RectorConfig::configure() | ||
->withPaths([ | ||
__DIR__ . '/src', | ||
__DIR__ . '/tests', | ||
]) | ||
->withSets([ | ||
JMSSetList::ANNOTATIONS_TO_ATTRIBUTES, | ||
PHPUnitSetList::PHPUNIT_100, | ||
PHPUnitSetList::PHPUNIT_CODE_QUALITY, | ||
PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES, | ||
SetList::TYPE_DECLARATION, | ||
SetList::CODE_QUALITY, | ||
SetList::CODING_STYLE, | ||
SetList::DEAD_CODE, | ||
SetList::PHP_82, | ||
SetList::PRIVATIZATION, | ||
SetList::EARLY_RETURN, | ||
SetList::INSTANCEOF, | ||
SetList::STRICT_BOOLEANS, | ||
]) | ||
->withFileExtensions(['php']) | ||
->withCache( | ||
cacheDirectory: '/tmp/rector', | ||
cacheClass: FileCacheStorage::class, | ||
) | ||
->withParallel( | ||
maxNumberOfProcess: 4, | ||
jobSize: 16, | ||
) | ||
->withImportNames( | ||
importDocBlockNames: false, | ||
removeUnusedImports: true, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
|
||
namespace CXml\Authentication; | ||
|
||
use CXml\Context; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.