Code Duplication    Length = 19-19 lines in 2 locations

src/helpers.php 2 locations

@@ 74-92 (lines=19) @@
71
    }
72
}
73
74
if (!function_exists('path')) {
75
    /**
76
     * Get path.
77
     *
78
     * @param string $postfix
79
     *
80
     * @return string
81
     */
82
    function path(string $postfix = null): string
83
    {
84
        $path = resolve('base_path');
85
86
        if ($postfix === null) {
87
            return $path;
88
        }
89
90
        return $path.'/'.$postfix;
91
    }
92
}
93
94
if (!function_exists('resources')) {
95
    /**
@@ 94-112 (lines=19) @@
91
    }
92
}
93
94
if (!function_exists('resources')) {
95
    /**
96
     * Get resources path.
97
     *
98
     * @param string $postfix
99
     *
100
     * @return string
101
     */
102
    function resources(string $postfix = null): string
103
    {
104
        $path = resolve('resources_path');
105
106
        if ($postfix === null) {
107
            return $path;
108
        }
109
110
        return $path.'/'.$postfix;
111
    }
112
}
113
114
if (!function_exists('logger')) {
115
    /**