Lines Matching refs:lines
91 protected function _lines($lines, $prefix = ' ', $encode = true) argument
94 array_walk($lines, array(&$this, '_encode'));
98 return implode("\n", $lines) . "\n";
100 return implode('', $lines);
104 protected function _added($lines) argument
106 array_walk($lines, array(&$this, '_encode'));
107 $lines[0] = $this->_ins_prefix . $lines[0];
108 $lines[count($lines) - 1] .= $this->_ins_suffix;
109 return $this->_lines($lines, ' ', false);
112 protected function _deleted($lines, $words = false) argument
114 array_walk($lines, array(&$this, '_encode'));
115 $lines[0] = $this->_del_prefix . $lines[0];
116 $lines[count($lines) - 1] .= $this->_del_suffix;
117 return $this->_lines($lines, ' ', false);