Completed
Push — master ( e24932...fec1b8 )
by Chris
01:58
created

PosixUid   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
lcom 0
cbo 1
dl 0
loc 11
ccs 4
cts 4
cp 1
rs 10
c 0
b 0
f 0

2 Methods

Rating   Name   Duplication   Size   Complexity  
A getUid() 0 4 1
A getGid() 0 4 1
1
<?php
2
3
namespace Twistor;
4
5
class PosixUid extends Uid {
6 75
    public function getUid()
7
    {
8 75
        return (int) posix_getuid();
9
    }
10
11 75
    public function getGid()
12
    {
13 75
        return (int) posix_getuid();
14
    }
15
}
16