Passed
Pull Request — master (#11)
by Michael
11:08
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
2
3
/**
4
 * @return object
5
 */
6
$moduleDirName      = \basename(\dirname(__DIR__));
7
$moduleDirNameUpper = \mb_strtoupper($moduleDirName);
8
9
return [
10
    'name'          => \mb_strtoupper($moduleDirName) . ' PathConfigurator',
11
    'dirname'       => $moduleDirName,
12
    'admin'         => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
13
    'modPath'       => XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
14
    'modUrl'        => XOOPS_URL . '/modules/' . $moduleDirName,
15
    'uploadPath'    => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
16
    'uploadUrl'     => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
17
    'uploadFolders' => [
18
        XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
19
        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
20
        XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
21
        //XOOPS_UPLOAD_PATH . '/flags'
22
    ],
23
];
24