Removed window file new lines and extra spaces
This commit is contained in:
parent
dab5976eb3
commit
0dfd236925
1 changed files with 15 additions and 15 deletions
|
|
@ -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]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue