Code Duplication    Length = 11-13 lines in 2 locations

src/Comodojo/RpcClient/Components/RequestManager.php 2 locations

@@ 44-56 (lines=13) @@
41
42
    public function get($uid = null) {
43
44
        if ( is_null($uid) ) {
45
46
            return $this->requests;
47
48
        } else if ( $key = $this->searchByUid($uid) != null ) {
49
50
            return $this->requests[$key];
51
52
        } else {
53
54
            return null;
55
56
        }
57
58
    }
59
@@ 68-78 (lines=11) @@
65
66
            return true;
67
68
        } else if ( $key = $this->searchByUid($uid) != null ) {
69
70
            unset($this->requests[$key]);
71
72
            return true;
73
74
        } else {
75
76
            return false;
77
78
        }
79
80
    }
81