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.

Helper   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 3
eloc 6
c 1
b 0
f 0
dl 0
loc 18
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A prepareParameters() 0 12 3
1
<?php
2
3
/**
4
 * Part of Dear package.
5
 *
6
 * @package Dear
7
 * @version 1.0
8
 * @author Umair Mahmood
9
 * @license MIT
10
 * @copyright Copyright (c) 2019 Umair Mahmood
11
 *
12
 */
13
14
namespace UmiMood\Dear;
15
16
use UmiMood\Dear\Api\BaseApi;
17
18
class Helper
19
{
20
    /**
21
     * @param $parameters
22
     * @return mixed
23
     */
24
    public static function prepareParameters($parameters)
25
    {
26
        // set limit & page
27
        if (!isset($parameters['page'])) {
28
            $parameters['page'] = BaseApi::PAGE;
29
        }
30
31
        if (!isset($parameters['limit'])) {
32
            $parameters['limit'] = BaseApi::LIMIT;
33
        }
34
35
        return $parameters;
36
    }
37
}