Passed
Push — main ( 5f612e...b6103a )
by Andrey
03:25
created

DiscoverInfo   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Importance

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

2 Methods

Rating   Name   Duplication   Size   Complexity  
A ModelSettings() 0 3 1
A getDiscover() 0 8 1
1
<?php
2
3
namespace Daaner\TikTok\Models;
4
5
use Daaner\TikTok\TikTok;
6
7
class DiscoverInfo extends TikTok
8
{
9
    protected $url;
10
11
    /**
12
     * @return $this
13
     */
14
    public function ModelSettings()
15
    {
16
        $this->url = config('tiktok.discover_info.link');
17
    }
18
19
    /**
20
     * @return array
21
     */
22
    public function getDiscover()
23
    {
24
        //add settings
25
        $this->ModelSettings();
26
27
        $response = $this->getResponse($this->url);
28
29
        return $response;
30
    }
31
32
}
33