Code Duplication    Length = 1-3 lines in 7 locations

system/modules/Dashboard/appAdminControllers/content/siteConfig.php 6 locations

@@ 5-5 (lines=1) @@
2
<form action = '' method = 'POST' enctype="multipart/form-data">
3
    <div class ="form-group">
4
        <label>Название сайта</label>
5
        <input class ="form-control" type = 'text' name = 'site_name' value = '<?php if (!empty(\App::$primary->config['site']['name'])) {
6
    echo \App::$primary->config['site']['name'];
7
}
8
?>' />
@@ 12-12 (lines=1) @@
9
    </div>
10
    <div class ="form-group">
11
        <label>Название компании</label>
12
        <input class ="form-control" type = 'text' name = 'company_name' value = '<?php if (!empty(\App::$primary->config['site']['company_name'])) {
13
    echo \App::$primary->config['site']['company_name'];
14
}
15
?>' />
@@ 19-19 (lines=1) @@
16
    </div>
17
    <div class ="form-group">
18
        <label>Основной домен</label>
19
        <input class ="form-control" type = 'text' name = 'site_domain' value = '<?php if (!empty(\App::$primary->config['site']['domain'])) {
20
    echo \App::$primary->config['site']['domain'];
21
}
22
?>' />
@@ 26-26 (lines=1) @@
23
    </div>
24
    <div class ="form-group">
25
        <label>Контактный email</label>
26
        <input class ="form-control" type = 'text' name = 'site_email' value = '<?php if (!empty(\App::$primary->config['site']['email'])) {
27
    echo \App::$primary->config['site']['email'];
28
}
29
?>' />
@@ 33-33 (lines=1) @@
30
    </div>
31
    <div class ="form-group">
32
        <label>Ключевые слова</label>
33
        <input class ="form-control" type = 'text' name = 'site_keywords' value = '<?php if (!empty(\App::$primary->config['site']['keywords'])) {
34
    echo \App::$primary->config['site']['keywords'];
35
}
36
?>' />
@@ 40-40 (lines=1) @@
37
    </div>
38
    <div class ="form-group">
39
        <label>Краткое описание сайта</label>
40
        <input class ="form-control" type = 'text' name = 'site_description' value = '<?php if (!empty(\App::$primary->config['site']['description'])) {
41
    echo \App::$primary->config['site']['description'];
42
}
43
?>' />

system/Inji/Statics.php 1 location

@@ 23-25 (lines=3) @@
20
     * @return string
21
     */
22
    public static function file($path, $resize = '', $resizeCrop = '', $resizePos = '') {
23
        if (!$path) {
24
            return !empty(\App::$primary->config['site']['noimage']) ? \App::$primary->config['site']['noimage'] : '/static/system/images/no-image.png';
25
        }
26
        $absolutePath = App::$cur->staticLoader->parsePath($path);
27
        $convert = false;
28
        if (!file_exists($absolutePath) && file_exists(mb_convert_encoding($absolutePath, 'Windows-1251', 'UTF-8'))) {