Code Duplication    Length = 8-8 lines in 2 locations

src/functions.php 2 locations

@@ 62-69 (lines=8) @@
59
 * @return string|bool
60
 * @throws \RuntimeException
61
 */
62
function file_get_contents()
63
{
64
    if (false === $contents = @call_user_func_array('file_get_contents', func_get_args())) {
65
        throw new \RuntimeException(error_get_last()['message']);
66
    }
67
68
    return $contents;
69
}
70
71
/**
72
 * Wrapper that throws exception
@@ 78-85 (lines=8) @@
75
 * @return int|bool
76
 * @throws \RuntimeException
77
 */
78
function file_put_contents()
79
{
80
    if (false === $result = @call_user_func_array('file_put_contents', func_get_args())) {
81
        throw new \RuntimeException(error_get_last()['message']);
82
    }
83
84
    return $result;
85
}
86