src/Uploadcare/Widget.php
public function getScriptTag($version = null, $async = false, $full = true)
    {
        $async_attr = $async ? 'async="true"' : '';
        $result = <<<EOT
<script>UPLOADCARE_PUBLIC_KEY = "{$this->api->getPublicKey()}";</script>
<script {$async_attr} src="{$this->getScriptSrc($version, $full)}" charset="UTF-8"></script>
EOT;
        return $result;
    }
public function getScriptTag($version = null, $async = false, $full = true)
    {
        $async_attr = $async ? 'async="true"' : '';
        $result = <<<EOT
<script>UPLOADCARE_PUBLIC_KEY = "{$this->api->getPublicKey()}";</script>
<script {$async_attr} src="{$this->getScriptSrc($version, $full)}" charset="UTF-8"></script>
EOT;
        return $result;
    }
public function getScriptTag ( $ version = null , $ async = false , $ full = true ) { $ async_attr = $ async ? 'async="true"' : '' ; $ result =  <<<EOT
<script>UPLOADCARE_PUBLIC_KEY = "{$this->api->getPublicKey()}";</script>
<script {$async_attr} src="{$this->getScriptSrc($version, $full)}" charset="UTF-8"></script>
EOT ; return $ result ; }
Returns <script> sections to include Uploadcare widget

@param string $version Uploadcare version
@param bool $async
@return string
Returns <script > sections to include Uploadcare widget