Skip to content

Commit d0d2b92

Browse files
committed
Fix cs
1 parent e92cb0c commit d0d2b92

File tree

56 files changed

+414
-412
lines changed

Some content is hidden

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

56 files changed

+414
-412
lines changed

src/AbusedClient.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@
77
use Soap\Engine\HttpBinding\SoapRequest;
88
use Soap\Engine\HttpBinding\SoapResponse;
99
use Soap\ExtSoapEngine\Exception\RequestException;
10+
use SoapClient;
1011

11-
final class AbusedClient extends \SoapClient
12+
final class AbusedClient extends SoapClient
1213
{
1314
private ?SoapRequest $storedRequest = null;
1415
private ?SoapResponse $storedResponse = null;

src/Configuration/ClassMap/ClassMap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\ClassMap;
44

src/Configuration/ClassMap/ClassMapCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\ClassMap;
44

src/Configuration/ClassMap/ClassMapInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\ClassMap;
44

src/Configuration/TypeConverter/DateTimeTypeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\TypeConverter;
44

src/Configuration/TypeConverter/DateTypeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\TypeConverter;
44

src/Configuration/TypeConverter/DecimalTypeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\TypeConverter;
44

src/Configuration/TypeConverter/DoubleTypeConverter.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\TypeConverter;
44

src/Configuration/TypeConverter/TypeConverterCollection.php

Lines changed: 8 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\TypeConverter;
44

5+
use ArrayIterator;
6+
use InvalidArgumentException;
57
use IteratorAggregate;
6-
use Traversable;
78

89
final class TypeConverterCollection implements IteratorAggregate
910
{
@@ -24,11 +25,7 @@ public function __construct(array $converters = [])
2425
}
2526
}
2627

27-
/**
28-
* @param TypeConverterInterface $converter
29-
*
30-
* @return string
31-
*/
28+
3229
private function serialize(TypeConverterInterface $converter): string
3330
{
3431
return $converter->getTypeNamespace() . ':' . $converter->getTypeName();
@@ -44,7 +41,7 @@ private function serialize(TypeConverterInterface $converter): string
4441
public function add(TypeConverterInterface $converter): self
4542
{
4643
if ($this->has($converter)) {
47-
throw new \InvalidArgumentException(
44+
throw new InvalidArgumentException(
4845
'Converter for this type already exists'
4946
);
5047
}
@@ -71,9 +68,7 @@ public function set(TypeConverterInterface $converter): self
7168
* Returns true if the collection contains a type converter for a certain
7269
* namespace and name
7370
*
74-
* @param TypeConverterInterface $converter
7571
*
76-
* @return bool
7772
*/
7873
public function has(TypeConverterInterface $converter): bool
7974
{
@@ -86,10 +81,10 @@ public function has(TypeConverterInterface $converter): bool
8681
}
8782

8883
/**
89-
* @return \ArrayIterator|TypeConverterInterface[]
84+
* @return ArrayIterator|TypeConverterInterface[]
9085
*/
91-
public function getIterator(): \ArrayIterator
86+
public function getIterator(): ArrayIterator
9287
{
93-
return new \ArrayIterator($this->converters);
88+
return new ArrayIterator($this->converters);
9489
}
9590
}

src/Configuration/TypeConverter/TypeConverterInterface.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<?php
1+
<?php declare(strict_types=1);
22

33
namespace Soap\ExtSoapEngine\Configuration\TypeConverter;
44

@@ -14,14 +14,12 @@ interface TypeConverterInterface
1414
/**
1515
* Get type namespace.
1616
*
17-
* @return string
1817
*/
1918
public function getTypeNamespace(): string;
2019

2120
/**
2221
* Get type name.
2322
*
24-
* @return string
2523
*/
2624
public function getTypeName(): string;
2725

@@ -39,7 +37,6 @@ public function convertXmlToPhp(string $xml);
3937
*
4038
* @param mixed $php PHP type
4139
*
42-
* @return string
4340
*/
4441
public function convertPhpToXml($php): string;
4542
}

0 commit comments

Comments
 (0)