AccountTrack::run()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 8

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
namespace Finder\Pipelines\Track;
3
4
use Finder\Contracts\Spider\Track;
5
6
/**
7
 * Run all script analysers and outputs their result.
8
 */
9
class AccountTrack extends Track
10
{
11
12
    public function run()
13
    {
14
        // Caso Seja Instagram
15
        if ($this->model->integration_id == \Integrations\Connectors\Instagram\Instagram::getPrimary()) {
16
            $this->addInformateArray(\Integrations\Connectors\Instagram\Profile::getProfile($this->model->username));
17
        }
18
        return true;
19
    }
20
21
22
}