StreamWrapper   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 0
Metric Value
dl 0
loc 12
rs 10
c 0
b 0
f 0
wmc 2
lcom 0
cbo 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A unregister() 0 6 2
1
<?php
2
3
namespace WebinoDev\Vfs;
4
5
use org\bovigo\vfs\vfsStream;
6
use org\bovigo\vfs\vfsStreamWrapper;
7
8
/**
9
 * Extended virtual filesystem stream wrapper
10
 */
11
class StreamWrapper extends vfsStreamWrapper
12
{
13
    /**
14
     * Unregister the virtual filesystem stream wrapper
15
     */
16
    public static function unregister()
17
    {
18
        self::$registered = false;
19
        in_array(vfsStream::SCHEME, stream_get_wrappers()) and
20
            stream_wrapper_unregister(vfsStream::SCHEME);
21
    }
22
}
23