Skip to content

Commit c8e0d83

Browse files
committed
Refactor code structure for improved readability and maintainability; removed redundant code blocks and optimized functions.
1 parent 4e01a43 commit c8e0d83

File tree

82 files changed

+1424
-1909
lines changed

Some content is hidden

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

82 files changed

+1424
-1909
lines changed

.gitattributes

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
/tests export-ignore
22
/tests linguist-documentation
3-
/.scrutinizar.yml export-ignore
4-
/.travis.yml export-ignore
3+
/.gitattributes export-ignore
54
/.gitignore export-ignore
65
/CHANGELOG.md export-ignore
76
/CONTRIBUTING.md export-ignore
87
/LICENSE.md export-ignore
98
/README.md export-ignore
109
/phpunit.php export-ignore
1110
/phpunit.xml export-ignore
12-
/infection.json.dist export-ignore
13-
/.phan export-ignore
1411
/.php_cs.dist export-ignore

.github/FUNDING.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
composer.phar
22
composer.lock
3-
infection.log
43
/vendor/
54
.idea/
65
.php_cs.cache
76
*.swp
7+
.phpunit.result.cache

.phan/config.php

Lines changed: 0 additions & 382 deletions
This file was deleted.

.php_cs.dist

Lines changed: 0 additions & 149 deletions
This file was deleted.

.scrutinizer.yml

Lines changed: 0 additions & 41 deletions
This file was deleted.

.travis.yml

Lines changed: 0 additions & 19 deletions
This file was deleted.

CHANGELOG.md

Lines changed: 2 additions & 86 deletions
Original file line numberDiff line numberDiff line change
@@ -5,89 +5,5 @@ All notable changes to this project will be documented in this file.
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## 3.1.1
9-
10-
### Changed
11-
- Fixed issue with numbers in comments.
12-
- Updated minimume php version to correct version.
13-
- Comment tags are now self-closing when cleanup input is set to false.
14-
15-
## 3.1.0
16-
17-
### Changed
18-
- Updated to include Tidelift subscription option.
19-
- Removed php-coverall.
20-
- Removed Guzzle 6 Adapter.
21-
- Added support for Guzzle 7.
22-
23-
## 3.0.1
24-
25-
### Changed
26-
- Updated all DTOs to make them immutable.
27-
- Updated documentation.
28-
29-
## 3.0.0
30-
31-
### Added
32-
- Support for PSR7 HTTP clients and requests for URL calls has been added.
33-
- PHAN support and fixed all issues from PHAN has been added.
34-
- PHP-CS-Fixer added.
35-
- Support for html5 charset detection.
36-
- Added the ability to match both parent and children.
37-
- Added character set conversion in load.
38-
39-
### Changed
40-
- Fixed issue with \ causing an infite loop.
41-
- CDATA should not be altered when cleanupInput is false.
42-
- Added tag attribute DTO.
43-
- Cleaned up the selector logic.
44-
- Fixed issue with greedy regex for charset detection.
45-
- Fixed bug causing infinite loops in some cases.
46-
- Refactored the way we handle options. Removed the magical option array.
47-
48-
### Removed
49-
- Curl interface and curl implementation has been removed.
50-
- Removed support for the depth first search option.
51-
- `findById()` method removed from Dom object.
52-
- Removed `load()` method in Dom object.
53-
- Removed support for php 7.1.
54-
55-
## 2.2.1
56-
57-
### Added
58-
- Added php_cs.
59-
- Added support for PSR7 requests.
60-
- Added the attribute type dto.
61-
62-
## 2.2.0
63-
64-
### Added
65-
- Added support for php 7.4.
66-
- Added custom header support for curl request.
67-
- Added gzip detection and decoding.
68-
- Added additional type checking.
69-
70-
### Changed
71-
- Fixed bug with multiple selectors query.
72-
- Updated documentation.
73-
- Fixed issue with Dom object.
74-
75-
76-
## 2.1.0
77-
78-
### Added
79-
- New `removeSmartyScripts` configuration setting. Defaults to true.
80-
- Added `declare(strict_types=1)` to all source files.
81-
- Added new option `depthFirstSearch`.
82-
- Deprecated option `depthFirstSearch` and marked for removal in `3.0.0`.
83-
- Added multi class selections support.
84-
- Added case insensitive attribute matching.
85-
- Added new option `htmlSpecialCharsDecode`.
86-
87-
### Changed
88-
- Started using a changelog.
89-
- Fixed bug that caused an infinite loop when no content found in tags.
90-
- Moved the Mock object to the tests directory, where it belongs.
91-
- Changes from `PSR-0` to `PSR-4` autoloading.
92-
- Updated `CONTRIBUTING.md` contents.
93-
- Updated docblocks.
8+
## 1.0.0
9+
- Initial release. After changes of paquettg/php-html-parser

CONTRIBUTING.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ This page contains guidelines for contributing to the PHPHtmlParser package. Ple
44

55
## Coding Guidelines
66

7-
We follow the [PSR-4](https://www.php-fig.org/psr/psr-4/) autoloading standard and follow the [PSR-12](https://www.php-fig.org/psr/psr-12/) coding style guide. To make it easy to comply with the coding standard we use php-cs-fixer to manage the style of the code base. Before pushing your code please ensure you run the following on your changes.
7+
We follow the [PSR-4](https://www.php-fig.org/psr/psr-4/) autoloading standard and follow the [PSR-12](https://www.php-fig.org/psr/psr-12/) coding style guide. To make it easy to comply with the coding standard we use pint to manage the style of the code base. Before pushing your code please ensure you run the following on your changes.
88

99
```bash
10-
./vendor/bin/php-cs-fixer fix
10+
./vendor/bin/pint
1111
```
1212

13-
Please ensure you comply to these standards when creating a PR to make it easy to review and merge.
13+
Please ensure you comply to these standards when creating a PR to make it easy to review and merge.
1414
Thank you.

0 commit comments

Comments
 (0)