Skip to content

Commit 86a56b8

Browse files
making scrutinizer work (and its bullets on readme.md)
1 parent f136509 commit 86a56b8

File tree

3 files changed

+64
-1
lines changed

3 files changed

+64
-1
lines changed

.scrutinizer.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
filter:
2+
excluded_paths:
3+
- 'test/*'
4+
checks:
5+
php:
6+
use_self_instead_of_fqcn: true
7+
uppercase_constants: true
8+
simplify_boolean_return: true
9+
return_doc_comments: true
10+
return_doc_comment_if_not_inferrable: true
11+
remove_extra_empty_lines: true
12+
properties_in_camelcaps: true
13+
phpunit_assertions: true
14+
parameters_in_camelcaps: true
15+
parameter_doc_comments: true
16+
param_doc_comment_if_not_inferrable: true
17+
optional_parameters_at_the_end: true
18+
no_short_variable_names:
19+
minimum: '3'
20+
no_short_method_names:
21+
minimum: '3'
22+
no_new_line_at_end_of_file: true
23+
no_long_variable_names:
24+
maximum: '35'
25+
no_goto: true
26+
newline_at_end_of_file: true
27+
align_assignments: true
28+
avoid_fixme_comments: true
29+
avoid_multiple_statements_on_same_line: true
30+
avoid_perl_style_comments: true
31+
avoid_todo_comments: true
32+
avoid_unnecessary_concatenation: true
33+
classes_in_camel_caps: true
34+
encourage_postdec_operator: true
35+
encourage_single_quotes: true
36+
fix_line_ending: true
37+
fix_use_statements:
38+
remove_unused: true
39+
preserve_multiple: false
40+
preserve_blanklines: false
41+
order_alphabetically: false
42+
function_in_camel_caps: true
43+
line_length:
44+
max_length: '120'
45+
more_specific_types_in_doc_comments: true
46+
47+
tools:
48+
external_code_coverage: true
49+
50+
51+
coding_style:
52+
php: { }

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,11 @@ before_install:
1818
install:
1919
- travis_retry composer update --no-interaction --prefer-source
2020

21-
script: phpunit
21+
script: phpunit --coverage-clover=coverage.clover
22+
23+
after_script:
24+
- wget https://scrutinizer-ci.com/ocular.phar
25+
- php ocular.phar code-coverage:upload --format=php-clover coverage.clover
2226

2327
# Cache dependencies
2428
cache:

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@
44
[![License](https://poser.pugx.org/ricardofiorani/php-video-url-parser/license.png)](https://packagist.org/packages/ricardofiorani/php-video-url-parser)
55
[![Total Downloads](https://poser.pugx.org/ricardofiorani/php-video-url-parser/d/total.png)](https://packagist.org/packages/ricardofiorani/php-video-url-parser)
66
[![Coding Standards](https://img.shields.io/badge/cs-PSR--4-yellow.svg)](https://github.com/php-fig-rectified/fig-rectified-standards)
7+
[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/ricardofiorani/php-video-url-parser/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/ricardofiorani/php-video-url-parser/?branch=master)
8+
[![Code Coverage](https://scrutinizer-ci.com/g/ricardofiorani/php-video-url-parser/badges/coverage.png?b=master)](https://scrutinizer-ci.com/g/ricardofiorani/php-video-url-parser/?branch=master)
79

810
PHP Video URL Parser receives an video service URL (Like Youtube or VIMEO) and returns an object containing some video info
911
such as Thumnail's, Video Title, Video Description.
@@ -12,6 +14,11 @@ such as Thumnail's, Video Title, Video Description.
1214

1315
Install the latest version with
1416

17+
## Requirements
18+
19+
* PHP 5.3
20+
* cURL
21+
1522
```bash
1623
$ composer require ricardofiorani/php-video-url-parser
1724
```

0 commit comments

Comments
 (0)