1 | <?php |
||
16 | class RandomFiller |
||
17 | { |
||
18 | /** |
||
19 | * @var \Faker\Generator |
||
20 | */ |
||
21 | protected $faker; |
||
22 | |||
23 | /** |
||
24 | * @var string |
||
25 | */ |
||
26 | protected $locale; |
||
27 | |||
28 | |||
29 | /** |
||
30 | * RandomFiller constructor. |
||
31 | * @param string $locale |
||
32 | */ |
||
33 | public function __construct($locale = "it_IT") |
||
38 | |||
39 | /** |
||
40 | * @return string |
||
41 | */ |
||
42 | public function getTeamName() |
||
46 | |||
47 | |||
48 | /** |
||
49 | * @param null $forcedRole |
||
50 | * @param null $locale |
||
51 | * @return Player |
||
52 | */ |
||
53 | public function getPlayer($forcedRole = null, $locale = null) |
||
66 | |||
67 | |||
68 | /** |
||
69 | * @param null $locale |
||
70 | * @return Coach |
||
71 | */ |
||
72 | public function getCoach($locale = null) |
||
85 | |||
86 | /** |
||
87 | * @return mixed |
||
88 | */ |
||
89 | public function getRole() |
||
95 | |||
96 | /** |
||
97 | * @return mixed |
||
98 | */ |
||
99 | public function getModule() |
||
105 | |||
106 | |||
107 | /** |
||
108 | * @param null $locale |
||
109 | * @return Team |
||
110 | */ |
||
111 | public function getTeam($locale = null) |
||
139 | |||
140 | |||
141 | /** |
||
142 | * @return mixed |
||
143 | */ |
||
144 | public function getLocale() |
||
150 | |||
151 | /** |
||
152 | * @param $locale |
||
153 | * @return mixed |
||
154 | */ |
||
155 | private function nationalityFromLocale($locale) |
||
159 | |||
160 | /** |
||
161 | * @param $locale |
||
162 | */ |
||
163 | private function setFaker($locale) |
||
170 | |||
171 | } |
This check looks for function or method calls that always return null and whose return value is assigned to a variable.
The method
getObject()
can return nothing but null, so it makes no sense to assign that value to a variable.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.