Skip to content

Commit 389349c

Browse files
committed
fixed CS
1 parent d0a98b3 commit 389349c

6 files changed

+7
-7
lines changed

CssSelector.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class CssSelector
4242
*
4343
* @api
4444
*/
45-
static public function toXPath($cssExpr, $prefix = 'descendant-or-self::')
45+
public static function toXPath($cssExpr, $prefix = 'descendant-or-self::')
4646
{
4747
if (is_string($cssExpr)) {
4848
if (!$cssExpr) {

Node/CombinedSelectorNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class CombinedSelectorNode implements NodeInterface
2525
{
26-
static protected $methodMapping = array(
26+
protected static $methodMapping = array(
2727
' ' => 'descendant',
2828
'>' => 'child',
2929
'+' => 'direct_adjacent',

Node/FunctionNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
*/
2525
class FunctionNode implements NodeInterface
2626
{
27-
static protected $unsupported = array('target', 'lang', 'enabled', 'disabled');
27+
protected static $unsupported = array('target', 'lang', 'enabled', 'disabled');
2828

2929
protected $selector;
3030
protected $type;

Node/NodeInterface.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,12 +26,12 @@ interface NodeInterface
2626
*
2727
* @return string The string representation
2828
*/
29-
function __toString();
29+
public function __toString();
3030

3131
/**
3232
* @return XPathExpr The XPath expression
3333
*
3434
* @throws ParseException When unknown operator is found
3535
*/
36-
function toXpath();
36+
public function toXpath();
3737
}

Node/PseudoNode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
*/
2424
class PseudoNode implements NodeInterface
2525
{
26-
static protected $unsupported = array(
26+
protected static $unsupported = array(
2727
'indeterminate', 'first-line', 'first-letter',
2828
'selection', 'before', 'after', 'link', 'visited',
2929
'active', 'focus', 'hover',

XPathExpr.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ public function join($combiner, $other)
219219
*
220220
* @return string
221221
*/
222-
static public function xpathLiteral($s)
222+
public static function xpathLiteral($s)
223223
{
224224
if ($s instanceof Node\ElementNode) {
225225
// This is probably a symbol that looks like an expression...

0 commit comments

Comments
 (0)