Code Duplication    Length = 12-12 lines in 2 locations

src/web/Asset.php 2 locations

@@ 103-114 (lines=12) @@
100
            }
101
        }
102
103
        if ($this->js) {
104
            if (is_string($this->js)) {
105
                $this->js = [$this->js];
106
            }
107
108
            if (0 !== count($this->js)) {
109
                /** @noinspection ForeachSourceInspection */
110
                foreach ($this->js AS $script) {
111
                    $this->view->registerScriptFile($this->publishPath.$script, $this->isHead);
112
                }
113
            }
114
        }
115
116
        if ($this->css) {
117
            if (is_string($this->css)) {
@@ 116-127 (lines=12) @@
113
            }
114
        }
115
116
        if ($this->css) {
117
            if (is_string($this->css)) {
118
                $this->css = [$this->css];
119
            }
120
121
            if (0 !== count($this->css)) {
122
                /** @noinspection ForeachSourceInspection */
123
                foreach ($this->css AS $style) {
124
                    $this->view->registerCssFile($this->publishPath.$style, $this->isHead);
125
                }
126
            }
127
        }
128
    }
129
}
130