StreamWrapper::unregister()   A
last analyzed

Complexity

Conditions 2
Paths 2

Size

Total Lines 6

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
nc 2
nop 0
dl 0
loc 6
rs 10
c 0
b 0
f 0
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