GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 804d88...9de2aa )
by t
02:26
created

UploadedFile   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 15
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 3
c 1
b 0
f 0
dl 0
loc 15
rs 10
wmc 1
1
<?php
2
/**
3
 * Class UploadedFile
4
 *
5
 * @link https://www.icy2003.com/
6
 * @author icy2003 <[email protected]>
7
 * @copyright Copyright (c) 2017, icy2003
8
 */
9
10
namespace icy2003\php\iexts\yii2\web;
11
12
use yii\web\UploadedFile as U;
13
use icy2003\php\iexts\yii2\helpers\Html;
14
15
/**
16
 * UploadedFile 扩展
17
 */
18
class UploadedFile extends U
19
{
20
    /**
21
     * 获取单例
22
     *
23
     * @param yii\base\Model $model 模型对象
24
     * @param string $attribute
25
     * @param mixed $formName
26
     *
27
     * @return void
28
     */
29
    public static function getInstance($model, $attribute, $formName = null)
30
    {
31
        $name = Html::getInputName($model, $attribute, $formName);
32
        return static::getInstanceByName($name);
33
    }
34
}
35