Passed
Push — master ( 9e7c9c...370ffa )
by Marcel
02:24
created

Application::__construct()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 13
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 7
nc 2
nop 1
dl 0
loc 13
rs 10
c 1
b 0
f 0
1
<?php
2
/**
3
 * Analytics
4
 *
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the LICENSE.md file.
7
 *
8
 * @author Marcel Scherello <[email protected]>
9
 * @copyright 2020 Marcel Scherello
10
 */
11
12
namespace OCA\Analytics\AppInfo;
13
use OCP\Util;
14
15
$version = Util::getVersion()[0];
16
if ($version >= 20) {
17
    class Application extends Application20
18
    {
19
    }
20
} else {
21
    class Application extends Application19
22
    {
23
    }
24
}