Skip to content

Commit 3c65906

Browse files
committed
noop: Fix codesniffer issues
1 parent c5878eb commit 3c65906

File tree

287 files changed

+1509
-762
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

287 files changed

+1509
-762
lines changed

.github/workflows/php.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
strategy:
2020
fail-fast: false
2121
matrix:
22-
php-version: ['8.1', '8.2', '8.3', '8.4']
22+
php-version: ['8.2', '8.3', '8.4']
2323

2424
uses: simplesamlphp/simplesamlphp-test-framework/.github/workflows/[email protected]
2525
with:
@@ -45,7 +45,7 @@ jobs:
4545
fail-fast: false
4646
matrix:
4747
operating-system: [ubuntu-latest]
48-
php-versions: ['8.1', '8.2', '8.3', '8.4']
48+
php-versions: ['8.2', '8.3', '8.4']
4949

5050
steps:
5151
- name: Setup PHP, with composer and extensions
@@ -107,7 +107,7 @@ jobs:
107107
fail-fast: true
108108
matrix:
109109
operating-system: [windows-latest]
110-
php-versions: ['8.1', '8.2', '8.3', '8.4']
110+
php-versions: ['8.2', '8.3', '8.4']
111111

112112
steps:
113113
- name: Setup PHP, with composer and extensions
@@ -161,7 +161,7 @@ jobs:
161161
with:
162162
# Should be the higest supported version, so we can use the newest tools
163163
php-version: '8.4'
164-
tools: composer, composer-require-checker, composer-unused, phpcs
164+
tools: composer, composer-require-checker, composer-unused
165165
extensions: ctype, date, dom, filter, libxml, pcre, spl, xml
166166
coverage: none
167167

@@ -193,7 +193,7 @@ jobs:
193193
run: composer-unused --excludePackage=simplesamlphp/composer-xmlprovider-installer
194194

195195
- name: PHP Code Sniffer
196-
run: phpcs
196+
run: vendor/bin/phpcs
197197

198198
- name: PHPStan
199199
run: |
@@ -212,7 +212,7 @@ jobs:
212212
uses: shivammathur/setup-php@v2
213213
with:
214214
# Should be the lowest supported version
215-
php-version: '8.1'
215+
php-version: '8.2'
216216
extensions: ctype, date, dom, filter, libxml, pcre, spl, xml
217217
tools: composer
218218
coverage: none

composer.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
}
3333
},
3434
"require": {
35-
"php": "^8.1",
35+
"php": "^8.2",
3636

3737
"ext-bcmath": "*",
3838
"ext-date": "*",
@@ -42,11 +42,11 @@
4242
"ext-pcre": "*",
4343
"ext-spl": "*",
4444

45-
"simplesamlphp/assert": "~1.8.2",
45+
"simplesamlphp/assert": "~1.9.0",
4646
"simplesamlphp/composer-xmlprovider-installer": "~1.0.2"
4747
},
4848
"require-dev": {
49-
"simplesamlphp/simplesamlphp-test-framework": "~1.9.3"
49+
"simplesamlphp/simplesamlphp-test-framework": "~1.10.1"
5050
},
5151
"support": {
5252
"issues": "https://github.com/simplesamlphp/xml-common/issues",

src/XML/AbstractElement.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
use RuntimeException;
99
use SimpleSAML\XML\Assert\Assert;
1010
use SimpleSAML\XML\SerializableElementTrait;
11-
use SimpleSAML\XMLSchema\Exception\{MissingAttributeException, SchemaViolationException};
12-
use SimpleSAML\XMLSchema\Type\{QNameValue, StringValue};
11+
use SimpleSAML\XMLSchema\Exception\MissingAttributeException;
12+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
1313
use SimpleSAML\XMLSchema\Type\Interface\ValueTypeInterface;
14+
use SimpleSAML\XMLSchema\Type\QNameValue;
15+
use SimpleSAML\XMLSchema\Type\StringValue;
1416

1517
use function array_slice;
1618
use function defined;

src/XML/Assert/DecimalTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ trait DecimalTrait
1414
/** @var string */
1515
private static string $decimal_regex = '/^[+-]?((\d+(\.\d*)?)|(\.\d+))$/D';
1616

17+
1718
/**
1819
* @param string $value
1920
* @param string $message

src/XML/Assert/DoubleTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ trait DoubleTrait
1919
|[-]?FIN
2020
)$/Dx';
2121

22+
2223
/**
2324
* @param string $value
2425
* @param string $message

src/XML/Assert/FloatTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ trait FloatTrait
1414
/** @var string */
1515
private static string $float_regex = '/^(([+-]?([0-9]+[.][0-9]*|[.][0-9]+)([e][+-]?[0-9]+)?)|NaN|[-]?FIN)$/D';
1616

17+
1718
/**
1819
* @param string $value
1920
* @param string $message

src/XML/Assert/IntTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ trait IntTrait
4545
)
4646
$/Dx';
4747

48+
4849
/**
4950
* @param string $value
5051
* @param string $message

src/XML/Assert/LongTrait.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,7 @@ trait LongTrait
4444
)
4545
$/Dx';
4646

47+
4748
/**
4849
* @param string $value
4950
* @param string $message

src/XML/Attribute.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,6 @@ public static function fromXML(DOMAttr $attr): static
9898
}
9999

100100

101-
102101
/**
103102
* Create XML from this class
104103
*

src/XML/Chunk.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,10 @@
88
use SimpleSAML\XML\Assert\Assert;
99
use SimpleSAML\XML\DOMDocumentFactory;
1010
use SimpleSAML\XML\SerializableElementTrait;
11-
use SimpleSAML\XMLSchema\Exception\{MissingAttributeException, SchemaViolationException};
12-
use SimpleSAML\XMLSchema\Type\StringValue;
11+
use SimpleSAML\XMLSchema\Exception\MissingAttributeException;
12+
use SimpleSAML\XMLSchema\Exception\SchemaViolationException;
1313
use SimpleSAML\XMLSchema\Type\Interface\ValueTypeInterface;
14+
use SimpleSAML\XMLSchema\Type\StringValue;
1415

1516
/**
1617
* Serializable class used to hold an XML element.

0 commit comments

Comments
 (0)