diff --git a/phpseclib/Net/SSH2.php b/phpseclib/Net/SSH2.php index 5a50519b..c38a8c39 100644 --- a/phpseclib/Net/SSH2.php +++ b/phpseclib/Net/SSH2.php @@ -823,7 +823,7 @@ class Net_SSH2 /** * Number of columns for terminal window size - * + * * @see Net_SSH2::getWindowColumns() * @see Net_SSH2::setWindowColumns() * @see Net_SSH2::setWindowSize() @@ -834,7 +834,7 @@ class Net_SSH2 /** * Number of columns for terminal window size - * + * * @see Net_SSH2::getWindowRows() * @see Net_SSH2::setWindowRows() * @see Net_SSH2::setWindowSize() @@ -2651,11 +2651,12 @@ class Net_SSH2 /** * Is the connection still active? * + * @return boolean * @access public */ function isConnected() { - return $this->bitmap & NET_SSH2_MASK_CONNECTED; + return (bool) ($this->bitmap & NET_SSH2_MASK_CONNECTED); } /** @@ -3797,7 +3798,7 @@ class Net_SSH2 /** * Returns the number of columns for the terminal window size. - * + * * @return Integer * @access public */ @@ -3808,7 +3809,7 @@ class Net_SSH2 /** * Returns the number of rows for the terminal window size. - * + * * @return Integer * @access public */ @@ -3819,7 +3820,7 @@ class Net_SSH2 /** * Sets the number of columns for the terminal window size. - * + * * @param Integer $value * @access public */ @@ -3830,7 +3831,7 @@ class Net_SSH2 /** * Sets the number of rows for the terminal window size. - * + * * @param Integer $value * @access public */ @@ -3841,7 +3842,7 @@ class Net_SSH2 /** * Sets the number of columns and rows for the terminal window size. - * + * * @param Integer $columns * @param Integer $rows * @access public