PersonService::aboutBody()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8

Duplication

Lines 8
Ratio 100 %

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 8
loc 8
rs 10
c 0
b 0
f 0
1
<?php
2
/**
3
 * Serviço referente a linha no banco de dados
4
 */
5
6
namespace Finder\Services\Finders;
7
8
use Illuminate\Support\Collection;
9
use Telefonica\Models\Actors\Person;
10
11
/**
12
 *
13
 */
14
class PersonService extends FinderAbstractService
15
{
16
    protected $config;
17
18
    protected $personEntity = false;
19
20
    public function __construct($config = false)
0 ignored issues
show
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
21
    {
22
        // if (!$this->config = $config) {
23
        //     $this->config = \Illuminate\Support\Facades\Config::get('sitec.sitec.models');
24
        // }
25
    }
26
27 View Code Duplication
    public function aboutBody($config = false)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
28
    {
29
        return $this->mergeWith(
30
            $this->getPerson()->pircings()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
31
            $this->getPerson()->pintinhas()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
32
            $this->getPerson()->tatuages()->get()
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
33
        );
34
    }
35
36 View Code Duplication
    public function aboutLikes($config = false)
0 ignored issues
show
Duplication introduced by
This method seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
37
    {
38
        return $this->mergeWith(
39
            $this->getPerson()->pircings()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
40
            $this->getPerson()->pintinhas()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
41
            $this->getPerson()->tatuages()->get()
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
42
        );
43
    }
44
    
45
46
    public function aboutPersonagens($config = false)
0 ignored issues
show
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
47
    {
48
        return $this->mergeWith(
49
            $this->getPerson()->productions()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
50
            $this->getPerson()->personagens()->get()
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
51
        );
52
    }
53
    
54
55
    /**
56
     * Localizar
57
     */
58
    public function aboutLocals($config = false)
0 ignored issues
show
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
59
    {
60
        return $this->mergeWith(
61
            $this->getPerson()->accounts()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
62
            $this->getPerson()->phones()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
63
            $this->getPerson()->emails()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
64
            $this->getPerson()->addresses()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
65
            $this->getPerson()->sitios()->get()
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
66
        );
67
    }
68
    
69
    /**
70
     * ORganizacao
71
     */
72
73
    public function aboutSenhas($config = false)
0 ignored issues
show
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
74
    {
75
        return $this->mergeWith(
76
            $this->getPerson()->passwords()->get()
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
77
        );
78
    }
79
80
    public function aboutInfo($config = false)
0 ignored issues
show
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
81
    {
82
        return $this->mergeWith(
83
            $this->getPerson()->infos()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
84
            $this->getPerson()->fatos()->get()
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
85
        );
86
    }
87
    public function aboutMidias($config = false)
0 ignored issues
show
Unused Code introduced by
The parameter $config is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
88
    {
89
        return $this->mergeWith(
90
            $this->getPerson()->videos()->get(),
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
91
            $this->getPerson()->imagens()->get()
0 ignored issues
show
Bug introduced by
The method getPerson() does not seem to exist on object<Finder\Services\Finders\PersonService>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
92
        );
93
    }
94
}
95