Skip to content

Commit 0383a1a

Browse files
committed
fixed CS
1 parent 03f9655 commit 0383a1a

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

Node/Specificity.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ public function __construct(int $a, int $b, int $c)
4040
$this->c = $c;
4141
}
4242

43-
public function plus(Specificity $specificity): Specificity
43+
public function plus(self $specificity): self
4444
{
4545
return new self($this->a + $specificity->a, $this->b + $specificity->b, $this->c + $specificity->c);
4646
}
@@ -56,7 +56,7 @@ public function getValue(): int
5656
*
5757
* @return int
5858
*/
59-
public function compareTo(Specificity $specificity)
59+
public function compareTo(self $specificity)
6060
{
6161
if ($this->a !== $specificity->a) {
6262
return $this->a > $specificity->a ? 1 : -1;

XPath/Translator.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ public function selectorToXPath(SelectorNode $selector, string $prefix = 'descen
114114
return ($prefix ?: '').$this->nodeToXPath($selector);
115115
}
116116

117-
public function registerExtension(Extension\ExtensionInterface $extension): Translator
117+
public function registerExtension(Extension\ExtensionInterface $extension): self
118118
{
119119
$this->extensions[$extension->getName()] = $extension;
120120

@@ -139,7 +139,7 @@ public function getExtension(string $name): Extension\ExtensionInterface
139139
return $this->extensions[$name];
140140
}
141141

142-
public function registerParserShortcut(ParserInterface $shortcut): Translator
142+
public function registerParserShortcut(ParserInterface $shortcut): self
143143
{
144144
$this->shortcutParsers[] = $shortcut;
145145

XPath/XPathExpr.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ public function getElement(): string
4343
return $this->element;
4444
}
4545

46-
public function addCondition(string $condition): XPathExpr
46+
public function addCondition(string $condition): self
4747
{
4848
$this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition;
4949

@@ -55,7 +55,7 @@ public function getCondition(): string
5555
return $this->condition;
5656
}
5757

58-
public function addNameTest(): XPathExpr
58+
public function addNameTest(): self
5959
{
6060
if ('*' !== $this->element) {
6161
$this->addCondition('name() = '.Translator::getXpathLiteral($this->element));
@@ -65,7 +65,7 @@ public function addNameTest(): XPathExpr
6565
return $this;
6666
}
6767

68-
public function addStarPrefix(): XPathExpr
68+
public function addStarPrefix(): self
6969
{
7070
$this->path .= '*/';
7171

0 commit comments

Comments
 (0)