src/SpdxLicensesUpdater.php
private function getExceptions($url)
    {
        $exceptions = array();

        $data = json_decode(file_get_contents($url), true);

        foreach ($data['exceptions'] as $info) {
            $exceptions[$info['licenseExceptionId']] = array(trim($info['name']));
        }

        uksort($exceptions, 'strcasecmp');

        return $exceptions;
    }
private function getExceptions($url)
    {
        $exceptions = array();

        $data = json_decode(file_get_contents($url), true);

        foreach ($data['exceptions'] as $info) {
            $exceptions[$info['licenseExceptionId']] = array(trim($info['name']));
        }

        uksort($exceptions, 'strcasecmp');

        return $exceptions;
    }
private function getExceptions ( $ url ) { $ exceptions = array ( ) ; $ data = json_decode ( file_get_contents ( $ url ) , true ) ; foreach ( $ data [ 'exceptions' ] as $ info ) { $ exceptions [ $ info [ 'licenseExceptionId' ] ] = array ( trim ( $ info [ 'name' ] ) ) ; } uksort ( $ exceptions , 'strcasecmp' ) ; return $ exceptions ; }
@param string $url

@return array
@param string $url