From: adonohue Date: Sat, 12 Feb 2011 01:48:06 +0000 (-0800) Subject: Tweak license linter to support licenses on line immediately after getLicensePatterns(); $license = $this->getLicenseText($copyright_holder); + $data = $this->getData($path); + $matches = 0; + foreach ($patterns as $pattern) { - $data = $this->getData($path); - $matches = 0; if (preg_match($pattern, $data, $matches)) { - $expect = rtrim(implode('', array_slice($matches, 1)))."\n\n".$license; - $expect = ltrim($expect); + $expect = rtrim(implode('', array_slice($matches, 1)))."\n".$license; if (rtrim($matches[0]) != rtrim($expect)) { $this->raiseLintAtOffset( 0,