GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#37)
by
unknown
02:36
created

Revision3   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
wmc 1
c 1
b 0
f 1
lcom 1
cbo 1
dl 0
loc 14
ccs 3
cts 3
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A validateUrl() 0 6 1
1
<?php
2
/**
3
 * Revision3.php
4
 *
5
 * @package Providers
6
 * @author Michael Pratt <[email protected]>
7
 * @link   http://www.michael-pratt.com/
8
 *
9
 * For the full copyright and license information, please view the LICENSE
10
 * file that was distributed with this source code.
11
 */
12
13
namespace Embera\Providers;
14
15
/**
16
 * The Revision3.com Provider
17
 * @link http://revision3.com
18
 */
19
class Revision3 extends \Embera\Adapters\Service
20
{
21
22
    /** inline {@inheritdoc} */
23
    protected $apiUrl = 'http://revision3.com/api/oembed/?format=json';
24
25
    /** inline {@inheritdoc} */
26 2
    protected function validateUrl()
27
    {
28 2
        $this->url->invalidPattern('revision3\.com/(?:network|host|advertise)/');
29
30 2
        return (preg_match('~revision3\.com/([^/]+)/([^/]+)/?~i', $this->url));
31
    }
32
}
33
34
?>
0 ignored issues
show
Best Practice introduced by
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...
35