From 612ffcdd20be081a94a3f34069c5a4c506ad556b Mon Sep 17 00:00:00 2001
From: Jared Hancock <jared@osticket.com>
Date: Fri, 3 Jan 2014 16:35:00 -0600
Subject: [PATCH] Satisfy lint test engine

---
 include/class.i18n.php           | 1 +
 include/pear/Net/DNS2/Packet.php | 6 +++---
 setup/test/tests/stubs.php       | 9 +++++++++
 3 files changed, 13 insertions(+), 3 deletions(-)

diff --git a/include/class.i18n.php b/include/class.i18n.php
index fdb0061bb..d63f3c2a4 100644
--- a/include/class.i18n.php
+++ b/include/class.i18n.php
@@ -189,6 +189,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) {
diff --git a/include/pear/Net/DNS2/Packet.php b/include/pear/Net/DNS2/Packet.php
index ccd633eb7..12c67063c 100644
--- a/include/pear/Net/DNS2/Packet.php
+++ b/include/pear/Net/DNS2/Packet.php
@@ -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
diff --git a/setup/test/tests/stubs.php b/setup/test/tests/stubs.php
index 591700ec5..a26014a11 100644
--- a/setup/test/tests/stubs.php
+++ b/setup/test/tests/stubs.php
@@ -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() {}
+}
 ?>
-- 
GitLab