Commit Graph

16 Commits

Author SHA1 Message Date
Yusuf Kandemir 7e7fe217a2 Added null type to docblock 2018-12-18 10:00:58 +03:00
Yusuf Kandemir dcd54585cc Make handling of absolute uris changable through a callback 2018-12-17 20:15:13 +03:00
Yusuf Kandemir d317ebdfb7 Remove registering of DOMDocument
As stated in documentation of DOMDocument, registering DOMDocument is unnecessary.

Source: https://secure.php.net/manual/en/domdocument.registernodeclass.php#example-6650
2018-12-17 17:35:48 +03:00
Yusuf Kandemir 1ce3f5fd17 Added references to W3C Specification in docblocks
This is much better for understanding whats going on. Also as the reference links are pointing to 26/04/2018 version, it helps understanding if things have been changed etc.
2018-12-14 10:05:33 +03:00
Yusuf Kandemir 9eaf3cbcfa Docblocking and type hinting 2018-12-13 09:50:04 +03:00
Yusuf Kandemir e17ceac9ea Added MicrodataDOMDocument
This is for both gaining flexibility and made code cleaner.
2018-11-12 18:05:31 +03:00
Yusuf Kandemir 2225011252 Added tests for output methods 2018-11-12 11:30:42 +03:00
Yusuf Kandemir d769253701 Added different output methods 2018-11-12 11:20:01 +03:00
Yusuf Kandemir 87dd20f753 Changed \DOMElement typehints to MicrodataDOMElement 2018-11-11 23:07:44 +03:00
Yusuf Kandemir 89dfec9e39 Small fix 2018-11-11 22:49:31 +03:00
Yusuf Kandemir 4cdd720082 Refactoring 2018-11-11 22:47:37 +03:00
Yusuf Kandemir faeb1f97a0 Some refactoring 2018-11-11 21:53:08 +03:00
Yusuf Kandemir 65f35e747b Removed comments that only shows steps
This steps was only helpful while implementing the algorithm. And could be useful while comparing with the W3C specification, but they take up too much space.
2018-11-11 21:00:12 +03:00
Yusuf Kandemir 793d596541 Changed array_map to foreach
Unfortunately array_map only accepts arrays. Foreach looks more understandable (and performant) this way.
2018-11-11 20:54:31 +03:00
Yusuf Kandemir 0e2f17ac37 Extracted methods to a class 2018-11-11 20:49:54 +03:00
Yusuf Kandemir 880d3d8346 Same functionality implemented in OOP 2018-11-10 15:06:43 +03:00