Skip to content

Commit

Permalink
Remove unused use-statements and order them alphabetically
Browse files Browse the repository at this point in the history
  • Loading branch information
tvdijen committed Jan 11, 2024
1 parent 418a50b commit 0ac5ba4
Show file tree
Hide file tree
Showing 27 changed files with 8 additions and 32 deletions.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,8 @@
},
"config": {
"allow-plugins": {
"composer/package-versions-deprecated": true
"composer/package-versions-deprecated": true,
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}
2 changes: 1 addition & 1 deletion src/SOAP11/XML/env/AbstractSoapElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace SimpleSAML\SOAP11\XML\env;

use SimpleSAML\XML\AbstractElement;
use SimpleSAML\SOAP\Constants as C;
use SimpleSAML\XML\AbstractElement;

/**
* Abstract class to be implemented by all the classes in this namespace
Expand Down
2 changes: 1 addition & 1 deletion src/SOAP11/XML/env/Body.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
use SimpleSAML\SOAP\Exception\ProtocolViolationException;
use SimpleSAML\XML\Chunk;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\ExtendableElementTrait;
use SimpleSAML\XML\ExtendableAttributesTrait;
use SimpleSAML\XML\ExtendableElementTrait;
use SimpleSAML\XML\XsNamespace as NS;

use function array_diff;
Expand Down
2 changes: 1 addition & 1 deletion src/SOAP11/XML/env/Envelope.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\Exception\MissingElementException;
use SimpleSAML\XML\Exception\TooManyElementsException;
use SimpleSAML\XML\ExtendableElementTrait;
use SimpleSAML\XML\ExtendableAttributesTrait;
use SimpleSAML\XML\ExtendableElementTrait;
use SimpleSAML\XML\XsNamespace as NS;

/**
Expand Down
2 changes: 1 addition & 1 deletion src/SOAP12/XML/env/AbstractSoapElement.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@

namespace SimpleSAML\SOAP12\XML\env;

use SimpleSAML\XML\AbstractElement;
use SimpleSAML\SOAP\Constants as C;
use SimpleSAML\XML\AbstractElement;

/**
* Abstract class to be implemented by all the classes in this namespace
Expand Down
2 changes: 1 addition & 1 deletion src/SOAP12/XML/env/Node.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace SimpleSAML\SOAP12\XML\env;

use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\StringElementTrait;
use SimpleSAML\XML\Exception\SchemaViolationException;
use SimpleSAML\XML\StringElementTrait;

/**
* Class representing a env:Node element.
Expand Down
2 changes: 1 addition & 1 deletion src/SOAP12/XML/env/Role.php
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
namespace SimpleSAML\SOAP12\XML\env;

use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\StringElementTrait;
use SimpleSAML\XML\Exception\SchemaViolationException;
use SimpleSAML\XML\StringElementTrait;

/**
* Class representing a env:Role element.
Expand Down
1 change: 0 additions & 1 deletion src/SOAP12/XML/env/Subcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use DOMElement;
use SimpleSAML\Assert\Assert;
use SimpleSAML\SOAP\Exception\ProtocolViolationException;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\Exception\MissingElementException;
use SimpleSAML\XML\Exception\TooManyElementsException;
Expand Down
4 changes: 0 additions & 4 deletions src/SOAP12/XML/env/Text.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,7 @@

namespace SimpleSAML\SOAP12\XML\env;

use DOMAttr;
use DOMElement;
use DOMNameSpaceNode;
use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\Exception\InvalidDOMElementException;
use SimpleSAML\XML\LocalizedStringElementTrait;

/**
Expand Down
1 change: 0 additions & 1 deletion src/SOAP12/XML/env/Value.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\SOAP12\XML\env;

use SimpleSAML\Assert\Assert;
use SimpleSAML\XML\QNameElementTrait;

/**
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP11/XML/env/BodyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP11\XML\env;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP\Exception\ProtocolViolationException;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP11/XML/env/DetailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP11\XML\env;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP11\XML\env\Detail;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP11/XML/env/EnvelopeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP11\XML\env;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP11\XML\env\Body;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP11/XML/env/FaultCodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP11\XML\env;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP11\XML\env\FaultCode;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP11/XML/env/FaultStringTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@

use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP11\XML\env\FaultString;
use SimpleSAML\SOAP11\XML\env\Text;
use SimpleSAML\XML\DOMDocumentFactory;
use SimpleSAML\XML\TestUtils\SerializableElementTestTrait;

Expand Down
2 changes: 0 additions & 2 deletions tests/SOAP11/XML/env/FaultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace SimpleSAML\Test\SOAP11\XML\env;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP\Constants as C;
use SimpleSAML\SOAP11\XML\env\Detail;
use SimpleSAML\SOAP11\XML\env\Fault;
use SimpleSAML\SOAP11\XML\env\FaultActor;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP11/XML/env/HeaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP11\XML\env;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP11\XML\env\Header;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/BodyTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP\Exception\ProtocolViolationException;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/CodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP\Constants as C;
use SimpleSAML\SOAP12\XML\env\Code;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/DetailTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP12\XML\env\Detail;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/EnvelopeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP12\XML\env\Body;
Expand Down
2 changes: 0 additions & 2 deletions tests/SOAP12/XML/env/FaultTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP\Constants as C;
use SimpleSAML\SOAP12\XML\env\Code;
use SimpleSAML\SOAP12\XML\env\Detail;
use SimpleSAML\SOAP12\XML\env\Fault;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/HeaderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use DOMElement;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP12\XML\env\Header;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/SubcodeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP12\XML\env\Subcode;
use SimpleSAML\SOAP12\XML\env\Value;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/SupportedEnvelopeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP12\XML\env\SupportedEnvelope;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/UpgradeTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP12\XML\env\SupportedEnvelope;
use SimpleSAML\SOAP12\XML\env\Upgrade;
Expand Down
1 change: 0 additions & 1 deletion tests/SOAP12/XML/env/ValueTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@

namespace SimpleSAML\Test\SOAP12\XML\env;

use DOMDocument;
use PHPUnit\Framework\TestCase;
use SimpleSAML\SOAP12\XML\env\Value;
use SimpleSAML\XML\DOMDocumentFactory;
Expand Down

0 comments on commit 0ac5ba4

Please sign in to comment.