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::passthrough()   A
last analyzed

Complexity

Conditions 2
Paths 1

Size

Total Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 4
rs 10
c 0
b 0
f 0
cc 2
nc 1
nop 1
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