Skip to content
Snippets Groups Projects
Commit ab74b65b authored by Peter Rotich's avatar Peter Rotich
Browse files

Merge pull request #373 from greezybacon/issue/lint


Satisfy lint test engine

Reviewed-By: default avatarPeter Rotich <peter@osticket.com>
parents cb10ec5b 612ffcdd
No related branches found
No related tags found
No related merge requests found
......@@ -190,6 +190,7 @@ class Internationalization {
// language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )
// Samples: "hu, en-us;q=0.66, en;q=0.33", "hu,en-us;q=0.5"
$browser_langcodes = array();
$matches = array();
if (preg_match_all('@(?<=[, ]|^)([a-zA-Z-]+|\*)(?:;q=([0-9.]+))?(?:$|\s*,\s*)@',
trim($_SERVER['HTTP_ACCEPT_LANGUAGE']), $matches, PREG_SET_ORDER)) {
foreach ($matches as $match) {
......
......@@ -190,7 +190,7 @@ class Net_DNS2_Packet
/**
* applies a standard DNS name compression on the given name/offset
*
* This logic was based on the Net::DNS::Packet::dn_comp() function
* This logic was based on the Net::DNS::Packet::dn_comp() function (nolint)
* by Michanel Fuhr
*
* @param string $name the name to be compressed
......@@ -250,7 +250,7 @@ class Net_DNS2_Packet
/**
* applies a standard DNS name compression on the given name/offset
*
* This logic was based on the Net::DNS::Packet::dn_comp() function
* This logic was based on the Net::DNS::Packet::dn_comp() function (nolint)
* by Michanel Fuhr
*
* @param string $name the name to be compressed
......@@ -283,7 +283,7 @@ class Net_DNS2_Packet
/**
* expands the domain name stored at a given offset in a DNS Packet
*
* This logic was based on the Net::DNS::Packet::dn_expand() function
* This logic was based on the Net::DNS::Packet::dn_expand() function (nolint)
* by Michanel Fuhr
*
* @param Net_DNS2_Packet &$packet the DNS packet to look in for the domain name
......
......@@ -45,6 +45,7 @@ class DomElement {
class DomDocument {
function loadHTML() {}
function loadXML() {}
}
class Exception {
......@@ -83,4 +84,12 @@ class DateTimeZone {
static function listIdentifiers() {}
}
class Phar {
static function isValidPharFilename() {}
}
class ZipArchive {
function statIndex() {}
function getFromIndex() {}
}
?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment