src/Adapter/ExtractAdapter.php
protected function extractModuleName(array $traced)
    {
        $executor = str_replace(realpath(app_path() . '/../src'), '', $traced['file']);

        $extractedPath = explode(DIRECTORY_SEPARATOR, $executor);
        $names         = [];
        foreach ($extractedPath as $index => $directory) {
            if ($directory == 'src') {
                break;
            }
            if ($directory !== '' && $directory !== 'modules') {
                $names[] = $directory;
            }
        }

        return implode('/', $names);
    }
protected function extractModuleName(array $traced)
    {
        $executor = str_replace(realpath(app_path() . '/../src'), '', $traced['file']);

        $extractedPath = explode(DIRECTORY_SEPARATOR, $executor);
        $names         = [];
        foreach ($extractedPath as $index => $directory) {
            if ($directory == 'src') {
                break;
            }
            if ($directory !== '' && $directory !== 'modules') {
                $names[] = $directory;
            }
        }

        return implode('/', $names);
    }
protected function extractModuleName ( array $ traced ) { $ executor = str_replace ( realpath ( app_path ( ) . '/../src' ) , '' , $ traced [ 'file' ] ) ; $ extractedPath = explode ( DIRECTORY_SEPARATOR , $ executor ) ; $ names = [ ] ; foreach ( $ extractedPath as $ index => $ directory ) { if ( $ directory == 'src' ) { break ; } if ( $ directory !== '' && $ directory !== 'modules' ) { $ names [ ] = $ directory ; } } return implode ( '/' , $ names ) ; }
extracting module path from debug_backtrace

@param array $traced
@return String
extracting module path from debug_backtrace