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.

GeneratePayLinkRequest   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 14
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A passthrough() 0 4 2
1
<?php
2
3
namespace ProtoneMedia\LaravelPaddle\Api;
4
5
/**
6
  * Class GeneratePayLinkRequest
7
  * @package ProtoneMedia\LaravelPaddle\Api
8
  * @method productId()
9
  * @method title()
10
  * @method webhookUrl()
11
  * @method prices()
12
  * @method customMessage()
13
  * @method quantity()
14
  * @method recurringAffiliateLimit()
15
  * @method customerEmail()
16
  * @method returnUrl()
17
  */
18
class GeneratePayLinkRequest extends Request
19
{
20
    /**
21
     * The 'passthrough' attribute must be a string if the given $data is
22
     * not a string, we will encode it in JSON.
23
     *
24
     * @param  mixed $data
25
     * @return $this
26
     */
27
    public function passthrough($data)
28
    {
29
        return $this->setAttribute('passthrough', is_string($data) ? $data : json_encode($data));
30
    }
31
}
32