Completed
Branch master (9bcd56)
by Deric
02:07
created
src/Sessions/Shell.php 1 patch
Doc Comments   +5 added lines, -6 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Constructor.
28 28
      *
29
-     * @param  object $configuration  Configuration class object
30
-     * @param  object $authentication Authentication class object
31
-     * @return void
29
+     * @param  Configuration $configuration  Configuration class object
30
+     * @param  Authentication $authentication Authentication class object
31
+     * @return string
32 32
      */
33 33
     public function __construct(Configuration $configuration, Authentication $authentication)
34 34
     {
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	/**
51 51
      * Returns SSH interactive shell.
52 52
      *
53
-     * @return resouce SSH interactive shell
53
+     * @return Shell SSH interactive shell
54 54
      */
55 55
 	final public function shell()
56 56
 	{
@@ -88,8 +88,7 @@  discard block
 block discarded – undo
88 88
      * Execute remote command via SSH (shell).
89 89
      *
90 90
      * @param  string   $command  command being executed
91
-     * @param  instance $terminal Terminal instance
92
-     * @return object
91
+     * @return Shell
93 92
      */
94 93
     final public function write($command, $returncode = false)
95 94
     {
Please login to merge, or discard this patch.
src/Sessions/SSH.php 1 patch
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -54,9 +54,9 @@  discard block
 block discarded – undo
54 54
     /**
55 55
      * Constructor.
56 56
      *
57
-     * @param  instance $configuration  Configuration instance
58
-     * @param  instance $authentication Authentication instance
59
-     * @return void
57
+     * @param  Configuration $configuration  Configuration instance
58
+     * @param  Authentication $authentication Authentication instance
59
+     * @return string
60 60
      */
61 61
     public function __construct(Configuration $configuration, Authentication $authentication)
62 62
     {
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     /**
67 67
      * Set execution mode.
68 68
      *
69
-     * @return object
69
+     * @return SSH
70 70
      */
71 71
     final public function set_mode($mode = self::WAIT)
72 72
     {
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     /**
78 78
      * Set filename path.
79 79
      *
80
-     * @return object
80
+     * @return SSH
81 81
      */
82 82
     final public function set_filename($filename)
83 83
     {
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * Execute remote command via SSH.
110 110
      *
111 111
      * @param  string   $command  command being executed
112
-     * @param  instance $terminal Terminal instance
112
+     * @param  Terminal $terminal Terminal instance
113 113
      * @return void
114 114
      */
115 115
     final public function exec($command, Terminal $terminal = null)
@@ -147,8 +147,8 @@  discard block
 block discarded – undo
147 147
      * Create channel stream.
148 148
      *
149 149
      * @param  string   $command  command being executed
150
-     * @param  instance $terminal Terminal instance
151
-     * @return stream   SSH connection resource stream
150
+     * @param  Terminal $terminal Terminal instance
151
+     * @return resource   SSH connection resource stream
152 152
      */
153 153
     final private function get_stream($command, Terminal $terminal)
154 154
     {
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
      * Executes a command on a remote server.
180 180
      *
181 181
      * @param  resource $stream SSH resource stream
182
-     * @return void
182
+     * @return integer|null
183 183
      */
184 184
     final private function exec_wait($stream)
185 185
     {
Please login to merge, or discard this patch.