Passed
Pull Request — master (#11)
by Michael
23:53 queued 11:52
created

getPaths()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 19
Code Lines 15

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 15
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 19
rs 9.7666
1
<?php declare(strict_types=1);
2
3
/** @return object */
4
$moduleDirName      = \basename(\dirname(__DIR__));
5
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
6
7
return [
8
    'name'          => \mb_strtoupper($moduleDirName) . ' PathConfigurator',
9
    'dirname'       => $moduleDirName,
10
    'admin'         => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
11
    'modPath'       => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
12
    'modUrl'        => XOOPS_URL . '/modules/' . $moduleDirName,
13
    'uploadPath'    => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
14
    'uploadUrl'     => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
15
    'uploadFolders' => [
16
        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
17
        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
18
        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
19
        //XOOPS_UPLOAD_PATH . '/flags'
20
    ],
21
];
22