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
Branches
Tags
No related merge requests found
...@@ -190,6 +190,7 @@ class Internationalization { ...@@ -190,6 +190,7 @@ class Internationalization {
// language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" ) // language-range = ( ( 1*8ALPHA *( "-" 1*8ALPHA ) ) | "*" )
// Samples: "hu, en-us;q=0.66, en;q=0.33", "hu,en-us;q=0.5" // Samples: "hu, en-us;q=0.66, en;q=0.33", "hu,en-us;q=0.5"
$browser_langcodes = array(); $browser_langcodes = array();
$matches = array();
if (preg_match_all('@(?<=[, ]|^)([a-zA-Z-]+|\*)(?:;q=([0-9.]+))?(?:$|\s*,\s*)@', if (preg_match_all('@(?<=[, ]|^)([a-zA-Z-]+|\*)(?:;q=([0-9.]+))?(?:$|\s*,\s*)@',
trim($_SERVER['HTTP_ACCEPT_LANGUAGE']), $matches, PREG_SET_ORDER)) { trim($_SERVER['HTTP_ACCEPT_LANGUAGE']), $matches, PREG_SET_ORDER)) {
foreach ($matches as $match) { foreach ($matches as $match) {
......
...@@ -190,7 +190,7 @@ class Net_DNS2_Packet ...@@ -190,7 +190,7 @@ class Net_DNS2_Packet
/** /**
* applies a standard DNS name compression on the given name/offset * 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 * by Michanel Fuhr
* *
* @param string $name the name to be compressed * @param string $name the name to be compressed
...@@ -250,7 +250,7 @@ class Net_DNS2_Packet ...@@ -250,7 +250,7 @@ class Net_DNS2_Packet
/** /**
* applies a standard DNS name compression on the given name/offset * 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 * by Michanel Fuhr
* *
* @param string $name the name to be compressed * @param string $name the name to be compressed
...@@ -283,7 +283,7 @@ class Net_DNS2_Packet ...@@ -283,7 +283,7 @@ class Net_DNS2_Packet
/** /**
* expands the domain name stored at a given offset in a DNS 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 * by Michanel Fuhr
* *
* @param Net_DNS2_Packet &$packet the DNS packet to look in for the domain name * @param Net_DNS2_Packet &$packet the DNS packet to look in for the domain name
......
...@@ -45,6 +45,7 @@ class DomElement { ...@@ -45,6 +45,7 @@ class DomElement {
class DomDocument { class DomDocument {
function loadHTML() {} function loadHTML() {}
function loadXML() {}
} }
class Exception { class Exception {
...@@ -83,4 +84,12 @@ class DateTimeZone { ...@@ -83,4 +84,12 @@ class DateTimeZone {
static function listIdentifiers() {} 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.
Please register or to comment