Skip to content

Commit 4b9856c

Browse files
author
Augusto Pascutti
committed
Merge pull request #193 from augustohp/189-scrutinizer
Scrutinizer code coverage and custom Makefile support
2 parents ee6af90 + 5043a43 commit 4b9856c

File tree

4 files changed

+21
-5
lines changed

4 files changed

+21
-5
lines changed

.scrutinizer.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
filter:
2+
paths: [library/*]
3+
tools:
4+
external_code_coverage:
5+
runs: 4
6+
php_cpd:
7+
excluded_dirs: [vendor]
8+
php_pdepend:
9+
excluded_dirs: [vendor]
10+
sensiolabs_security_checker: true
11+
php_changetracking: true

.travis.yml

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ before_script:
1717

1818
script:
1919
- make testdox
20+
- make scrutinizer-coverage
2021

2122
matrix:
2223
allow_failures:

README.md

+9-4
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,12 @@
11
Respect\Validation
22
==================
33

4-
[![Build Status](https://secure.travis-ci.org/Respect/Validation.png)](http://travis-ci.org/Respect/Validation) [![Latest Stable Version](https://poser.pugx.org/respect/validation/v/stable.png)](https://packagist.org/packages/respect/validation) [![Total Downloads](https://poser.pugx.org/respect/validation/downloads.png)](https://packagist.org/packages/respect/validation) [![Latest Unstable Version](https://poser.pugx.org/respect/validation/v/unstable.png)](https://packagist.org/packages/respect/validation) [![License](https://poser.pugx.org/respect/validation/license.png)](https://packagist.org/packages/respect/validation)
4+
[![Build Status](https://secure.travis-ci.org/Respect/Validation.png)](http://travis-ci.org/Respect/Validation)
5+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Respect/Validation/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
6+
[![Code Coverage](https://scrutinizer-ci.com/g/Respect/Validation/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/Respect/Validation/?branch=master)
7+
[![Latest Stable Version](https://poser.pugx.org/respect/validation/v/stable.png)](https://packagist.org/packages/respect/validation)
8+
[![Total Downloads](https://poser.pugx.org/respect/validation/downloads.png)](https://packagist.org/packages/respect/validation)
9+
[![License](https://poser.pugx.org/respect/validation/license.png)](https://packagist.org/packages/respect/validation)
510

611
[The most awesome validation engine ever created for PHP.](http://bit.ly/1a1oeQv)
712

@@ -1538,8 +1543,8 @@ v::perfectSquare()->validate(9); //true (3*3)
15381543
```
15391544
#### v::phone()
15401545

1541-
Validates a valid 7, 10, 11 digit phone number (North America, Europe and most
1542-
Asian and Middle East countries), supporting country and area codes (in dot,
1546+
Validates a valid 7, 10, 11 digit phone number (North America, Europe and most
1547+
Asian and Middle East countries), supporting country and area codes (in dot,
15431548
space or dashed notations) such as:
15441549

15451550
(555)555-5555
@@ -1549,7 +1554,7 @@ space or dashed notations) such as:
15491554
+33(1)22 22 22 22
15501555
+33(020)7777 7777
15511556
03-6106666
1552-
1557+
15531558
#### v::positive()
15541559

15551560
Validates if a number is higher than zero

library/Respect/Validation/Exceptions/SymbolicLinkException.php

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
<?php
32

43
namespace Respect\Validation\Exceptions;

0 commit comments

Comments
 (0)