Skip to content
Open
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
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
vendor/
composer.lock
.idea/
21 changes: 17 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
language: php

php:
- 5.5
- 5.4
- 5.3
before_install:
- wget http://getcomposer.org/composer.phar; chmod +x composer.phar; ./composer.phar install
- 5.6

before_script:
- composer install
# - wget http://getcomposer.org/composer.phar
# - php composer.phar require satooshi/php-coveralls:dev-master --dev --no-progress --prefer-source

script:
- mkdir -p build/logs
- phpunit --coverage-clover build/logs/clover.xml

after_script:
- php vendor/bin/coveralls --exclude-no-stmt

after_success:
- coveralls
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# Revisiting PhpQuery

[![Build Status](https://travis-ci.org/wittiws/phpquery.png?branch=master)](https://travis-ci.org/wittiws/phpquery)
[![Build Status](https://travis-ci.org/c-harris/phpquery.svg?branch=master)](https://travis-ci.org/c-harris/phpquery)
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/c-harris/phpquery/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/c-harris/phpquery/?branch=master)
[![Coverage Status](https://coveralls.io/repos/github/c-harris/phpquery/badge.svg?branch=master)](https://coveralls.io/github/c-harris/phpquery?branch=master)

## Basic usage of this fork

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
}
],
"require":{
"php":">=5.3.3",
"php":">7.0",
"sabberworm/php-css-parser":"5.1.*"
},
"autoload":{
Expand Down
2 changes: 1 addition & 1 deletion src/PhpQueryObject.php
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ protected function pseudoClasses($class)
if (!$param)
break;
// nth-child(n+b) to nth-child(1n+b)
if ($param{0} == 'n')
if ($param[0] == 'n')
$param = '1' . $param;
// :nth-child(index/even/odd/equation)
if ($param == 'even' || $param == 'odd')
Expand Down