Skip to content

Commit

Permalink
Change variable name.
Browse files Browse the repository at this point in the history
  • Loading branch information
yunosh committed Jan 26, 2015
1 parent a4c5232 commit d7ab577
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions framework/ManageSieve/lib/Horde/ManageSieve.php
Original file line number Diff line number Diff line change
Expand Up @@ -259,9 +259,9 @@ public function connect($host, $port, $options = null, $useTLS = true)
throw new NotDisconnected();
}

$res = $this->_sock->connect($host, $port, false, 5, $options);
if (is_a($res, 'PEAR_Error')) {
throw new Exception($res);
$result = $this->_sock->connect($host, $port, false, 5, $options);
if (is_a($result, 'PEAR_Error')) {
throw new Exception($result);
}

if ($this->_bypassAuth) {
Expand Down Expand Up @@ -705,7 +705,7 @@ protected function _cmdGetScript($scriptname)
throw new NotAuthenticated();
}

$resuls = $this->_doCmd(
$result = $this->_doCmd(
sprintf('GETSCRIPT %s', $this->_escape($scriptname))
);

Expand Down Expand Up @@ -741,12 +741,12 @@ protected function _cmdListScripts()
throw new NotAuthenticated();
}

$res = $this->_doCmd('LISTSCRIPTS');
$result = $this->_doCmd('LISTSCRIPTS');

$scripts = array();
$activescript = null;
$res = explode("\r\n", $res);
foreach ($res as $value) {
$result = explode("\r\n", $result);
foreach ($result as $value) {
if (preg_match('/^"(.*)"( ACTIVE)?$/i', $value, $matches)) {
$script_name = stripslashes($matches[1]);
$scripts[] = $script_name;
Expand Down Expand Up @@ -815,8 +815,8 @@ protected function _cmdCapability()
if (self::STATE_DISCONNECTED == $this->_state) {
throw new NotConnected();
}
$res = $this->_doCmd('CAPABILITY');
$this->_parseCapability($res);
$result = $this->_doCmd('CAPABILITY');
$this->_parseCapability($result);
}

/**
Expand Down

0 comments on commit d7ab577

Please sign in to comment.