ScriptHandler   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
dl 0
loc 18
ccs 0
cts 9
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A buildSymLinks() 0 13 1
1
<?php
2
/* Copyright (C) 2016 Michael Giesler
3
 *
4
 * This file is part of Dembelo.
5
 *
6
 * Dembelo is free software: you can redistribute it and/or modify
7
 * it under the terms of the GNU Affero General Public License as published by
8
 * the Free Software Foundation, either version 3 of the License, or
9
 * (at your option) any later version.
10
 *
11
 * Dembelo is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
 * GNU Affero General Public License 3 for more details.
15
 *
16
 * You should have received a copy of the GNU Affero General Public License 3
17
 * along with Dembelo. If not, see <http://www.gnu.org/licenses/>.
18
 */
19
20
namespace DembeloMain\Composer;
21
22
use Symfony\Component\Filesystem\Filesystem;
23
24
/**
25
 * Class ScriptHandler
26
 */
27
class ScriptHandler
28
{
29
    /**
30
     * @return void
31
     */
32
    public static function buildSymLinks(): void
33
    {
34
        $fs = new Filesystem();
35
36
        // topic images
37
        $originDir = '../../uploads/topicimage/';
38
        $targetDir = 'web/images/topics';
39
        $fs->symlink($originDir, $targetDir);
40
41
        // webix
42
        $originDir = '../../../vendor/typearea/webix/lib/codebase/';
43
        $targetDir = './web/js/libs/webix';
44
        $fs->symlink($originDir, $targetDir);
45
    }
46
}
47