1 | <?php |
||
13 | class SignupProviderForm extends \yii\base\Model |
||
14 | { |
||
15 | /** |
||
16 | * @var string |
||
17 | */ |
||
18 | public $email; |
||
19 | /** |
||
20 | * @var \app\models\User |
||
21 | */ |
||
22 | private $user = null; |
||
23 | /** |
||
24 | * @var bool |
||
25 | */ |
||
26 | private $verifiedEmail = false; |
||
27 | /** |
||
28 | * @var array |
||
29 | */ |
||
30 | private $provider = null; |
||
31 | |||
32 | 6 | public function __construct($provider) |
|
36 | |||
37 | /** |
||
38 | * @inheritdoc |
||
39 | */ |
||
40 | 6 | public function rules() |
|
53 | |||
54 | /** |
||
55 | * @inheritdoc |
||
56 | */ |
||
57 | 5 | public function attributeLabels() |
|
61 | |||
62 | /** |
||
63 | * Is verified? |
||
64 | * |
||
65 | * @return bool |
||
66 | */ |
||
67 | 6 | public function isVerifiedEmail() |
|
71 | |||
72 | /** |
||
73 | * Prepare user |
||
74 | */ |
||
75 | 6 | public function prepareUser() |
|
95 | |||
96 | /** |
||
97 | * Parse provider |
||
98 | * |
||
99 | * @return array |
||
100 | */ |
||
101 | 4 | public function parseProvider() |
|
120 | |||
121 | /** |
||
122 | * Parse profile |
||
123 | * |
||
124 | * @return array |
||
125 | */ |
||
126 | 4 | public function parseProfile() |
|
145 | |||
146 | /** |
||
147 | * Prepare provider attributes for facebook |
||
148 | * |
||
149 | * @return array |
||
150 | */ |
||
151 | 1 | private function parseProviderFacebook() |
|
161 | |||
162 | /** |
||
163 | * Prepare provider attributes for vkontakte |
||
164 | * |
||
165 | * @return array |
||
166 | */ |
||
167 | 2 | private function parseProviderVkontakte() |
|
177 | |||
178 | /** |
||
179 | * Prepare provider attributes for twitter |
||
180 | * |
||
181 | * @return array |
||
182 | */ |
||
183 | 1 | private function parseProviderTwitter() |
|
193 | |||
194 | /** |
||
195 | * Prepare profile attributes for facebook |
||
196 | * |
||
197 | * @return array |
||
198 | */ |
||
199 | 1 | private function parseProfileFacebook() |
|
208 | |||
209 | /** |
||
210 | * Prepare profile attributes for vkontakte |
||
211 | * |
||
212 | * @return array |
||
213 | */ |
||
214 | 2 | private function parseProfileVkontakte() |
|
226 | |||
227 | /** |
||
228 | * Prepare profile attributes for twitter |
||
229 | * |
||
230 | * @param array $data Data from social network |
||
|
|||
231 | * @return array |
||
232 | */ |
||
233 | 1 | private function parseProfileTwitter() |
|
241 | |||
242 | /** |
||
243 | * Save photo |
||
244 | * |
||
245 | * @param \app\models\UserProfile $profile |
||
246 | * @param string $photo |
||
247 | * @return void |
||
248 | */ |
||
249 | 4 | private function savePhoto($profile, $photo) |
|
262 | |||
263 | /** |
||
264 | * Signs user up |
||
265 | * |
||
266 | * @param bool $checkExistEmail |
||
267 | * @return \app\models\User |
||
268 | */ |
||
269 | 6 | public function signup($checkExistEmail = true) |
|
292 | |||
293 | /** |
||
294 | * Sends an email with a link, for confirm the email |
||
295 | * |
||
296 | * @return boolean |
||
297 | */ |
||
298 | 3 | public function sendEmail() |
|
315 | } |
||
316 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italy
is not defined by the methodfinale(...)
.The most likely cause is that the parameter was removed, but the annotation was not.