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 (#12)
by
unknown
04:03
created

Medications::readCollection()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
dl 0
loc 3
c 1
b 0
f 1
rs 10
cc 1
eloc 1
nc 1
nop 0
1
<?php
2
3
4
namespace Choccybiccy\HumanApi\Endpoint;
5
6
/**
7
 * Class Weight
8
 * @package Choccybiccy\HumanApi\Endpoint
9
 */
10
class Medications extends MedicalEndpoint
11
{
12
13
    /**
14
     * @var string
15
     */
16
    protected $type = "medical/medications";
17
    
18
    function readCollection(){
0 ignored issues
show
Best Practice introduced by
It is generally recommended to explicitly declare the visibility for methods.

Adding explicit visibility (private, protected, or public) is generally recommend to communicate to other developers how, and from where this method is intended to be used.

Loading history...
19
        
20
    }
21
}
22
23
?>
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...
24