diff --git a/src/wdm/debian/control/StandardFile.php b/src/wdm/debian/control/StandardFile.php index 89767e2..2843904 100644 --- a/src/wdm/debian/control/StandardFile.php +++ b/src/wdm/debian/control/StandardFile.php @@ -91,9 +91,9 @@ class StandardFile return $this->_setProperty("Pre-Depends", $this->_transformList($depends)); } - public function setRecommends($depends) - { - return $this->_setProperty("Reccommends", $depends); + public function setRecommends($depends) + { + return $this->_setProperty("Reccommends", $depends); } public function setSuggests($depends) @@ -134,10 +134,10 @@ class StandardFile private function _transformList($depends) { - if (is_array($depends)) { - $depends = implode(", ", $depends); - } else { - $depends = $depends; + if (is_array($depends)) { + $depends = implode(", ", $depends); + } else { + $depends = $depends; } return $depends; @@ -150,28 +150,28 @@ class StandardFile } public function offsetExists ($offset) { - return array_key_exists($offset, $this->_keys); - } + return array_key_exists($offset, $this->_keys); + } public function offsetGet ($offset) { if ($this->offsetExists($offset)) { return $this->_keys[$offset]; } else { return null; - } - } - + } + } + public function offsetSet ($offset, $value) { if (!$this->offsetExists($offset)) { throw new \Exception("Invalid property for this control file."); } - $this->_keys[$offset] = $value; - } + $this->_keys[$offset] = $value; + } public function offsetUnset ($offset) { if ($this->offsetExists($offset)) { unset($this->_keys[$offset]); - } + } } /**