Skip to content

Commit 7dc22d9

Browse files
committed
Remove unused function imports across multiple files
1 parent df29314 commit 7dc22d9

File tree

18 files changed

+2
-100
lines changed

18 files changed

+2
-100
lines changed

src/PHPHtmlParser/Content.php

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,6 @@
88
use PHPHtmlParser\Exceptions\ContentLengthException;
99
use PHPHtmlParser\Exceptions\LogicalException;
1010

11-
use function strcspn;
12-
use function strlen;
13-
use function strpos;
14-
use function strspn;
15-
use function substr;
16-
1711
/**
1812
* Class Content.
1913
*/

src/PHPHtmlParser/DTO/Tag/AttributeDTO.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
use StringEncoder\Contracts\EncoderInterface;
88
use StringEncoder\Exceptions\InvalidEncodingException;
99

10-
use function htmlspecialchars_decode;
11-
use function is_null;
12-
1310
final class AttributeDTO
1411
{
1512
/**

src/PHPHtmlParser/Dom.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,6 @@
2323
use Psr\Http\Client\ClientInterface;
2424
use Psr\Http\Message\RequestInterface;
2525

26-
use function file_get_contents;
27-
use function is_null;
28-
use function strlen;
29-
3026
/**
3127
* Class Dom.
3228
*/

src/PHPHtmlParser/Dom/Cleaner.php

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,6 @@
88
use PHPHtmlParser\Exceptions\LogicalException;
99
use PHPHtmlParser\Options;
1010

11-
use function gzdecode;
12-
use function mb_convert_encoding;
13-
use function mb_eregi_replace;
14-
use function mb_regex_encoding;
15-
use function mb_strpos;
16-
use function str_replace;
17-
1811
class Cleaner implements CleanerInterface
1912
{
2013
/**

src/PHPHtmlParser/Dom/Node/AbstractNode.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@
1414
use PHPHtmlParser\Selector\Selector;
1515
use StringEncoder\Contracts\EncoderInterface;
1616

17-
use function is_null;
18-
use function is_string;
19-
use function strtolower;
20-
2117
/**
2218
* Dom node object.
2319
*

src/PHPHtmlParser/Dom/Node/ArrayNode.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,6 @@
99
use IteratorAggregate;
1010
use PHPHtmlParser\Dom\Tag;
1111

12-
use function count;
13-
1412
/**
1513
* Dom node object which will allow users to use it as
1614
* an array.

src/PHPHtmlParser/Dom/Node/Collection.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,6 @@
1111
use PHPHtmlParser\Exceptions\EmptyCollectionException;
1212
use ReturnTypeWillChange;
1313

14-
use function call_user_func_array;
15-
use function count;
16-
use function is_null;
17-
use function reset;
18-
1914
/**
2015
* Class Collection.
2116
*/

src/PHPHtmlParser/Dom/Node/HtmlNode.php

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,6 @@
88
use PHPHtmlParser\Exceptions\ChildNotFoundException;
99
use PHPHtmlParser\Exceptions\UnknownChildTypeException;
1010

11-
use function get_class;
12-
use function is_null;
13-
use function strip_tags;
14-
1511
/**
1612
* Class HtmlNode.
1713
*

src/PHPHtmlParser/Dom/Node/InnerNode.php

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -10,19 +10,6 @@
1010
use PHPHtmlParser\Exceptions\LogicalException;
1111
use StringEncoder\Contracts\EncoderInterface;
1212

13-
use function array_combine;
14-
use function array_keys;
15-
use function array_search;
16-
use function array_splice;
17-
use function array_values;
18-
use function count;
19-
use function end;
20-
use function in_array;
21-
use function is_int;
22-
use function is_null;
23-
use function key;
24-
use function reset;
25-
2613
/**
2714
* Inner node of the html tree, might have children.
2815
*
@@ -94,7 +81,7 @@ public function getChildren(): array
9481
$childrenIds[] = $child->id;
9582
$child = $this->nextChild($child->id());
9683
if (in_array($child->id, $childrenIds, true)) {
97-
throw new CircularException('Circular sibling reference found on child with id ' . $child->id() . ' found twice.');
84+
throw new CircularException('Circular sibling reference found on child with id ' . $child->id() . ' found twice.');
9885
}
9986
} while (true);
10087
} catch (ChildNotFoundException $e) {

src/PHPHtmlParser/Dom/Node/TextNode.php

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,6 @@
77
use PHPHtmlParser\Dom\Tag;
88
use PHPHtmlParser\Exceptions\LogicalException;
99

10-
use function htmlspecialchars_decode;
11-
use function is_null;
12-
use function mb_ereg_replace;
13-
use function str_replace;
14-
1510
/**
1611
* Class TextNode.
1712
*

0 commit comments

Comments
 (0)