recipe/deployment/Files.php
public function extractLocationInformation(string $file)
    {
        $splittedPath = explode("||", $file);
        $splittedPathLength = count($splittedPath);

        $pathInfo = [];

        $defaultPath = trim($splittedPath[0], ' ');

        $pathInfo['in'] = $defaultPath;
        $pathInfo['to'] = $defaultPath; // Set default first, check below if out location was defined:

        if ($splittedPathLength > 1) {
            $pathInfo['to'] = trim($splittedPath[1], ' ');
        }

        return $pathInfo;
    }
public function extractLocationInformation(string $file)
    {
        $splittedPath = explode("||", $file);
        $splittedPathLength = count($splittedPath);

        $pathInfo = [];

        $defaultPath = trim($splittedPath[0], ' ');

        $pathInfo['in'] = $defaultPath;
        $pathInfo['to'] = $defaultPath; // Set default first, check below if out location was defined:

        if ($splittedPathLength > 1) {
            $pathInfo['to'] = trim($splittedPath[1], ' ');
        }

        return $pathInfo;
    }
public function extractLocationInformation ( string $ file ) { $ splittedPath = explode ( "||" , $ file ) ; $ splittedPathLength = count ( $ splittedPath ) ; $ pathInfo = [ ] ; $ defaultPath = trim ( $ splittedPath [ 0 ] , ' ' ) ; $ pathInfo [ 'in' ] = $ defaultPath ; $ pathInfo [ 'to' ] = $ defaultPath ; // Set default first, check below if out location was defined: if ( $ splittedPathLength > 1 ) { $ pathInfo [ 'to' ] = trim ( $ splittedPath [ 1 ] , ' ' ) ; } return $ pathInfo ; }
Function for extracting file out information. This file needs to be a given path or supported path(s) format for
file uploading. When given 'a/path/name/file.php' the function will return that the in file is the same as the
out location. When given 'a/path/name/file.php || b/path/name/file.php' the function will return that the 'in' value
of the file is 'a/path/name/file.php' and the out path is 'b/path/name/file.php'.

@param string $file An string containing an path name or supported formatted path string.
@return array An array containing location information. This is in the following format:

[
'in' => 'in/path/location/file.php',
'out' => 'out/path/location/file.php'
]
Function for extracting file out information . This file needs to be a given path or supported path ( s ) format for file uploading . When given a / path / name / file . php the function will return that the in file is the same as the out location . When given a / path / name / file . php || b / path / name / file . php the function will return that the in value of the file is a / path / name / file . php and the out path is b / path / name / file . php .