Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"friendsofphp/php-cs-fixer": "^3.16",
"phpunit/phpunit": "^11.2.9",
"rector/rector": "^2.0.8",
"symplify/easy-coding-standard": "^12.1"
"symplify/easy-coding-standard": "^13.3"
},
"autoload": {
"psr-4": {
Expand Down
5 changes: 1 addition & 4 deletions src/Collection/ElementCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
use Traversable;
use Xparse\ElementFinder\ElementFinder\Element;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class ElementCollection implements IteratorAggregate, Countable
{
/**
Expand Down Expand Up @@ -116,7 +113,7 @@ final public function add(Element $element): ElementCollection
/**
* Retrieve an external iterator
*
* @link http://php.net/manual/en/iteratoraggregate.getiterator.php
* @see http://php.net/manual/en/iteratoraggregate.getiterator.php
* @return Element[]|Traversable An instance of an object implementing Iterator or Traversable
* @throws InvalidArgumentException
*/
Expand Down
3 changes: 0 additions & 3 deletions src/Collection/ObjectCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,6 @@
use Traversable;
use Xparse\ElementFinder\ElementFinderInterface;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class ObjectCollection implements IteratorAggregate, Countable
{
/**
Expand Down
5 changes: 1 addition & 4 deletions src/Collection/StringCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
use Xparse\ElementFinder\Collection\Filters\StringFilter\StringFilterInterface;
use Xparse\ElementFinder\Collection\Modify\StringModify\StringModifyInterface;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class StringCollection implements IteratorAggregate, Countable
{
/**
Expand Down Expand Up @@ -191,7 +188,7 @@ final public function get(int $index): ?string
}

/**
* @link http://php.net/manual/en/iteratoraggregate.getiterator.php
* @see http://php.net/manual/en/iteratoraggregate.getiterator.php
* @return string[]|Traversable
* @throws Exception
*/
Expand Down
3 changes: 0 additions & 3 deletions src/CssExpressionTranslator/CssExpressionTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
use Symfony\Component\CssSelector\CssSelectorConverter;
use Xparse\ElementFinder\ExpressionTranslator\ExpressionTranslatorInterface;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class CssExpressionTranslator extends CssSelectorConverter implements ExpressionTranslatorInterface
{
final public function convertToXpath(string $expression): string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@

/**
* Automatically detect xpath or css query language and convert it to the xpath
*
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class CssOrXpathExpressionTranslator implements ExpressionTranslatorInterface
{
Expand Down
9 changes: 3 additions & 6 deletions src/ElementFinder.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,6 @@
use Xparse\ElementFinder\Helper\NodeHelper;
use Xparse\ElementFinder\Helper\StringHelper;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class ElementFinder implements ElementFinderInterface
{
/**
Expand Down Expand Up @@ -211,9 +208,9 @@ private function setData(string $data): self
if (static::DOCUMENT_HTML === $this->type) {
$data = StringHelper::safeEncodeStr($data);

//Analogue of mb_convert_encoding($data, 'HTML-ENTITIES', 'UTF-8')
//Usage of mb_convert_encoding with encoding to HTML_ENTITIES is deprecated since php version 8.2
//When passing data to ElementFinder in an encoding other than UTF-8, any unrecognized characters will be ignored
// Analogue of mb_convert_encoding($data, 'HTML-ENTITIES', 'UTF-8')
// Usage of mb_convert_encoding with encoding to HTML_ENTITIES is deprecated since php version 8.2
// When passing data to ElementFinder in an encoding other than UTF-8, any unrecognized characters will be ignored
$data = mb_encode_numericentity(
htmlspecialchars_decode(
htmlentities($data, ENT_NOQUOTES | ENT_IGNORE, 'UTF-8', false),
Expand Down
3 changes: 0 additions & 3 deletions src/ElementFinder/Element.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

use DOMElement;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class Element extends DOMElement
{
/**
Expand Down
3 changes: 0 additions & 3 deletions src/ElementFinderInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,6 @@
use Xparse\ElementFinder\Collection\StringCollection;
use Xparse\ElementFinder\DomNodeListAction\DomNodeListActionInterface;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
interface ElementFinderInterface
{
/**
Expand Down
3 changes: 0 additions & 3 deletions src/ExpressionTranslator/ExpressionTranslatorInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Xparse\ElementFinder\ExpressionTranslator;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
interface ExpressionTranslatorInterface
{
/**
Expand Down
3 changes: 0 additions & 3 deletions src/ExpressionTranslator/XpathExpression.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Xparse\ElementFinder\ExpressionTranslator;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class XpathExpression implements ExpressionTranslatorInterface
{
final public function convertToXpath(string $expression): string
Expand Down
3 changes: 0 additions & 3 deletions src/Helper/FormHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
use InvalidArgumentException;
use Xparse\ElementFinder\ElementFinderInterface;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class FormHelper
{
public function __construct(
Expand Down
3 changes: 0 additions & 3 deletions src/Helper/NodeHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
use DOMNode;
use Xparse\ElementFinder\ElementFinder;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class NodeHelper
{
final public static function getOuterContent(DOMNode $node, int $documentType): string
Expand Down
3 changes: 0 additions & 3 deletions src/Helper/StringHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,6 @@

namespace Xparse\ElementFinder\Helper;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class StringHelper
{
final public static function safeEncodeStr(string $str): string
Expand Down
3 changes: 0 additions & 3 deletions tests/Collection/ElementCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
use Xparse\ElementFinder\Collection\ElementCollection;
use Xparse\ElementFinder\ElementFinder\Element;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class ElementCollectionTest extends TestCase
{
public function testIterate(): void
Expand Down
3 changes: 0 additions & 3 deletions tests/Collection/ObjectCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
use Xparse\ElementFinder\Collection\ObjectCollection;
use Xparse\ElementFinder\ElementFinder;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
final class ObjectCollectionTest extends TestCase
{
public function testInvalidObjectIndex(): void
Expand Down
3 changes: 0 additions & 3 deletions tests/Collection/StringCollectionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
use Test\Xparse\ElementFinder\Collection\Dummy\WithLetterFilter;
use Xparse\ElementFinder\Collection\StringCollection;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
final class StringCollectionTest extends TestCase
{
public function testInvalidObjectIndex(): void
Expand Down
3 changes: 0 additions & 3 deletions tests/CssExpressionTranslator/CssExpressionTranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,6 @@
use PHPUnit\Framework\TestCase;
use Xparse\ElementFinder\CssExpressionTranslator\CssExpressionTranslator;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class CssExpressionTranslatorTest extends TestCase
{
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
use PHPUnit\Framework\TestCase;
use Xparse\ElementFinder\CssExpressionTranslator\CssOrXpathExpressionTranslator;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
final class CssOrXpathExpressionTranslatorTest extends TestCase
{
/**
Expand Down
3 changes: 0 additions & 3 deletions tests/Dummy/ItemsByClassExpressionTranslator.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,6 @@

use Xparse\ElementFinder\ExpressionTranslator\ExpressionTranslatorInterface;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class ItemsByClassExpressionTranslator implements ExpressionTranslatorInterface
{
final public function convertToXpath(string $expression): string
Expand Down
3 changes: 0 additions & 3 deletions tests/ElementFinderTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,6 @@
use Xparse\ElementFinder\ElementFinder;
use Xparse\ElementFinder\ElementFinderInterface;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
final class ElementFinderTest extends TestCase
{
public function testLoad(): void
Expand Down
3 changes: 0 additions & 3 deletions tests/ExpressionTranslator/XpathExpressionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
use PHPUnit\Framework\TestCase;
use Xparse\ElementFinder\ExpressionTranslator\XpathExpression;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
class XpathExpressionTest extends TestCase
{
final public function testAssertSameIO(): void
Expand Down
3 changes: 0 additions & 3 deletions tests/Helper/FormHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
use Xparse\ElementFinder\ElementFinder;
use Xparse\ElementFinder\Helper\FormHelper;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
final class FormHelperTest extends TestCase
{
public function testFormData(): void
Expand Down
3 changes: 0 additions & 3 deletions tests/Helper/NodeHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
use Xparse\ElementFinder\ElementFinder;
use Xparse\ElementFinder\Helper\NodeHelper;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
final class NodeHelperTest extends TestCase
{
public function testHtmlOuterContent(): void
Expand Down
3 changes: 0 additions & 3 deletions tests/Helper/StringHelperTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
use PHPUnit\Framework\TestCase;
use Xparse\ElementFinder\Helper\StringHelper;

/**
* @author Ivan Shcherbak <alotofall@gmail.com>
*/
final class StringHelperTest extends TestCase
{
public function testEncode(): void
Expand Down
Loading