Code Duplication    Length = 19-19 lines in 2 locations

src/helpers.php 2 locations

@@ 86-104 (lines=19) @@
83
    }
84
}
85
86
if (!function_exists('path')) {
87
    /**
88
     * Get path.
89
     *
90
     * @param string $postfix
91
     *
92
     * @return string
93
     */
94
    function path(string $postfix = null): string
95
    {
96
        $path = resolve('base_path');
97
98
        if ($postfix === null) {
99
            return $path;
100
        }
101
102
        return $path.'/'.$postfix;
103
    }
104
}
105
106
if (!function_exists('resources')) {
107
    /**
@@ 106-124 (lines=19) @@
103
    }
104
}
105
106
if (!function_exists('resources')) {
107
    /**
108
     * Get resources path.
109
     *
110
     * @param string $postfix
111
     *
112
     * @return string
113
     */
114
    function resources(string $postfix = null): string
115
    {
116
        $path = resolve('resources_path');
117
118
        if ($postfix === null) {
119
            return $path;
120
        }
121
122
        return $path.'/'.$postfix;
123
    }
124
}
125
126
if (!function_exists('logger')) {
127
    /**