Skip to content

Commit 637f46b

Browse files
committed
Reformated code to PSR-1/2
1 parent bddea97 commit 637f46b

21 files changed

+2602
-2597
lines changed

CHANGELOG.md

Lines changed: 97 additions & 97 deletions
Original file line numberDiff line numberDiff line change
@@ -1,97 +1,97 @@
1-
### Development
2-
3-
## 1.6.9
4-
5-
- Added Changelog
6-
- Fixed issue with spaces befor closing tag Fixes #45
7-
- Fixed some code quality issues found by scrutinizer
8-
- Added Scrutinizer to README
9-
- Reformated code to comply with PSR-1/2
10-
- Added preserve line break option. Defaults to false. fixes #40
11-
- Updated the tests
12-
- Added options: cleanupInput, removeScripts and removeStyles
13-
14-
## 1.6.8
15-
16-
- Added comments and reformated some code
17-
- Added support for non-escaped quotes in attribute value fixes #37
18-
- Cleaned up the comments and php docs
19-
- Removed version in composer json
20-
- Updated composer version
21-
- Refactoring out isChild method.
22-
- Updated in code documentation
23-
- Updated composer
24-
25-
$$ 1.6.7
26-
27-
- Added tests for the new array access
28-
- Added feature to allow array usage of html node. fixes #26
29-
- Update HtmlNode.php
30-
- Added test to cover issue #28
31-
- FIX: File name is longer than the maximum allowed path
32-
33-
## 1.6.6
34-
35-
- Replaced preg_replace with mb_ereg_replace
36-
- Added child selector fixes #24
37-
- Updated the dev version of phpunit
38-
39-
## 1.6.5
40-
41-
- Fixed bug when no attribute tags are last tag (with out space). fixes #16
42-
- Fixed some documentation inconsistencies fixes #15
43-
- Made loadStr a public methor Fixes #18
44-
- Update a problem with the README fixes #11
45-
- Added setAttribute to the node fixes #7
46-
- Check if open_basedir is enabled: Dont use CURLOPT_FOLLOWLOCATION
47-
48-
## 1.6.4
49-
50-
- Added tests and updated README
51-
- Updated the tests and moved some files
52-
- Added the option to enforce the encoding
53-
- Fixed a problem with handeling the unknown child exception
54-
- Updated some tests
55-
- Added coverall badge and package
56-
57-
## 1.6.3
58-
59-
- Added initial support for 'strict' parsing option
60-
- Added an optional paramter to enable recursive text
61-
- Added appropriat Options tests
62-
- Changed all exception to specific objects
63-
- Added a whitespaceTextNode option and test
64-
- Added support for an options array
65-
66-
## 1.6.2
67-
68-
- Standardised indentation for easyer reading on github
69-
- Update AbstractNode.php
70-
- Added a test for hhvm in my travis.yml
71-
- Added a LICENSE.md file for MIT
72-
- Added build status to README
73-
- Added travis.yml
74-
- Changed the file name of the abstract node
75-
- fixed code in collection class where instance of arrayIterator is to be rturned
76-
- Updated documentation
77-
- Added a curl interface and a simple curl class.
78-
- Removed the Guzzle dependancy
79-
- Abstracted the Node class as it should have been done in the first place
80-
- Added integrity checks for the cached html
81-
- Added some basic caching of the dom html
82-
- Added a toArray() method to the collection and a test
83-
84-
## 1.6.1
85-
86-
- Moved back to using guzzle so expections are thrown when their was an error with loading a url
87-
- Added tests for the Static Facade Fixed a few issues brought to light from the new tests
88-
- Added a static facade
89-
- Changed encoding to be a local attribute instead of a static attribute
90-
- Solved issue #2 When you attempt to load an html page from a URL using loadFromUrl the encoding is incorrect.
91-
- Added easyer loading of files and urls. Still have a problem with encoding while loading from url.
92-
- Added guzzle and loadFromUrl option
93-
- Fixed an issue with no value attributes
94-
- Added magic and each methods to the collection. Plus some tests
95-
- Added a collection object
96-
- Added charset encoding
97-
- fixed a bug with closing tags If a closing tag did not have an opening tag it would cause the scan to end instead of ignoring the closing tag.
1+
### Development
2+
3+
## 1.6.9
4+
5+
- Added Changelog
6+
- Fixed issue with spaces befor closing tag Fixes #45
7+
- Fixed some code quality issues found by scrutinizer
8+
- Added Scrutinizer to README
9+
- Reformated code to comply with PSR-1/2
10+
- Added preserve line break option. Defaults to false. fixes #40
11+
- Updated the tests
12+
- Added options: cleanupInput, removeScripts and removeStyles
13+
14+
## 1.6.8
15+
16+
- Added comments and reformated some code
17+
- Added support for non-escaped quotes in attribute value fixes #37
18+
- Cleaned up the comments and php docs
19+
- Removed version in composer json
20+
- Updated composer version
21+
- Refactoring out isChild method.
22+
- Updated in code documentation
23+
- Updated composer
24+
25+
$$ 1.6.7
26+
27+
- Added tests for the new array access
28+
- Added feature to allow array usage of html node. fixes #26
29+
- Update HtmlNode.php
30+
- Added test to cover issue #28
31+
- FIX: File name is longer than the maximum allowed path
32+
33+
## 1.6.6
34+
35+
- Replaced preg_replace with mb_ereg_replace
36+
- Added child selector fixes #24
37+
- Updated the dev version of phpunit
38+
39+
## 1.6.5
40+
41+
- Fixed bug when no attribute tags are last tag (with out space). fixes #16
42+
- Fixed some documentation inconsistencies fixes #15
43+
- Made loadStr a public methor Fixes #18
44+
- Update a problem with the README fixes #11
45+
- Added setAttribute to the node fixes #7
46+
- Check if open_basedir is enabled: Dont use CURLOPT_FOLLOWLOCATION
47+
48+
## 1.6.4
49+
50+
- Added tests and updated README
51+
- Updated the tests and moved some files
52+
- Added the option to enforce the encoding
53+
- Fixed a problem with handeling the unknown child exception
54+
- Updated some tests
55+
- Added coverall badge and package
56+
57+
## 1.6.3
58+
59+
- Added initial support for 'strict' parsing option
60+
- Added an optional paramter to enable recursive text
61+
- Added appropriat Options tests
62+
- Changed all exception to specific objects
63+
- Added a whitespaceTextNode option and test
64+
- Added support for an options array
65+
66+
## 1.6.2
67+
68+
- Standardised indentation for easyer reading on github
69+
- Update AbstractNode.php
70+
- Added a test for hhvm in my travis.yml
71+
- Added a LICENSE.md file for MIT
72+
- Added build status to README
73+
- Added travis.yml
74+
- Changed the file name of the abstract node
75+
- fixed code in collection class where instance of arrayIterator is to be rturned
76+
- Updated documentation
77+
- Added a curl interface and a simple curl class.
78+
- Removed the Guzzle dependancy
79+
- Abstracted the Node class as it should have been done in the first place
80+
- Added integrity checks for the cached html
81+
- Added some basic caching of the dom html
82+
- Added a toArray() method to the collection and a test
83+
84+
## 1.6.1
85+
86+
- Moved back to using guzzle so expections are thrown when their was an error with loading a url
87+
- Added tests for the Static Facade Fixed a few issues brought to light from the new tests
88+
- Added a static facade
89+
- Changed encoding to be a local attribute instead of a static attribute
90+
- Solved issue #2 When you attempt to load an html page from a URL using loadFromUrl the encoding is incorrect.
91+
- Added easyer loading of files and urls. Still have a problem with encoding while loading from url.
92+
- Added guzzle and loadFromUrl option
93+
- Fixed an issue with no value attributes
94+
- Added magic and each methods to the collection. Plus some tests
95+
- Added a collection object
96+
- Added charset encoding
97+
- fixed a bug with closing tags If a closing tag did not have an opening tag it would cause the scan to end instead of ignoring the closing tag.

src/PHPHtmlParser/Dom/AbstractNode.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,8 @@ public function __get($key)
8282
return $this->text();
8383
case 'tag':
8484
return $this->getTag();
85-
case 'parent': $this->getParent();
85+
case 'parent':
86+
$this->getParent();
8687
}
8788

8889
return null;

0 commit comments

Comments
 (0)