public static function receive($savePath, RequestContract $request = null)
    {
        file_put_contents($savePath, $request ? $request->getRawContent() : RequestKit::getRawContent());
    }
public static function receive($savePath, RequestContract $request = null)
    {
        file_put_contents($savePath, $request ? $request->getRawContent() : RequestKit::getRawContent());
    }
public static function receive ( $ savePath , RequestContract $ request = null ) { file_put_contents ( $ savePath , $ request ? $ request -> getRawContent ( ) : RequestKit :: getRawContent ( ) ) ; }
Receive a file

@param $savePath
@param RequestContract|null $request
Receive a file