Completed
Push — 123 ( d13f38 )
by Vasily
05:11
created
app-examples/ExampleWithMySQL.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 	 * Creates Request.
24 24
 	 * @param object Request.
25 25
 	 * @param object Upstream application instance.
26
-	 * @return object Request.
26
+	 * @return ExampleWithMySQLRequest Request.
27 27
 	 */
28 28
 	public function beginRequest($req, $upstream) {
29 29
 		
Please login to merge, or discard this patch.
app-examples/ExampleWithPostgreSQL.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 	 * Creates Request.
13 13
 	 * @param object Request.
14 14
 	 * @param object Upstream application instance.
15
-	 * @return object Request.
15
+	 * @return ExampleWithPostgreSQLRequest Request.
16 16
 	 */
17 17
 	 public function beginRequest($req, $upstream) {
18 18
 		return new ExampleWithPostgreSQLRequest($this, $upstream, $req);
Please login to merge, or discard this patch.
app-examples/ExampleWithRedis.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 	 * Creates Request.
25 25
 	 * @param object Request.
26 26
 	 * @param object Upstream application instance.
27
-	 * @return object Request.
27
+	 * @return ExampleWithRedisRequest Request.
28 28
 	 */
29 29
 	public function beginRequest($req, $upstream) {
30 30
 		return new ExampleWithRedisRequest($this, $upstream, $req);
Please login to merge, or discard this patch.
app-web/CGI.php 1 patch
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 	 * Creates Request.
51 51
 	 * @param object Request.
52 52
 	 * @param object Upstream application instance.
53
-	 * @return object Request.
53
+	 * @return CGIRequest Request.
54 54
 	 */
55 55
 	public function beginRequest($req, $upstream) {
56 56
 		return new CGIRequest($this, $upstream, $req);
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
 
126 126
 	/**
127 127
 	 * Called when request iterated.
128
-	 * @return void
128
+	 * @return integer
129 129
 	 */
130 130
 	public function run() {
131 131
 		if (!$this->proc) {
@@ -155,6 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
 	/**
157 157
 	 * Called when the request aborted.
158
+	 * @param AsyncProcess $process
158 159
 	 * @return void
159 160
 	 */
160 161
 	public function onWrite($process) {
Please login to merge, or discard this patch.
app-web/FileReader.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
 	 * Creates Request.
37 37
 	 * @param object Request.
38 38
 	 * @param object Upstream application instance.
39
-	 * @return object Request.
39
+	 * @return FileReaderRequest Request.
40 40
 	 */
41 41
 	public function beginRequest($req, $upstream) {
42 42
 		return new FileReaderRequest($this, $upstream, $req);
Please login to merge, or discard this patch.
app-web/WebSocketOverCOMET.php 1 patch
Doc Comments   +9 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
 	 * Creates Request.
49 49
 	 * @param object Request.
50 50
 	 * @param object Upstream application instance.
51
-	 * @return object Request.
51
+	 * @return WebSocketOverCOMET_Request Request.
52 52
 	 */
53 53
 	public function beginRequest($req, $upstream) {
54 54
 		$req = new WebSocketOverCOMET_Request($this, $upstream, $req);
@@ -120,6 +120,11 @@  discard block
 block discarded – undo
120 120
 	public $finished = false;
121 121
 	public $timeout = 30; // 30
122 122
 	public $server;
123
+
124
+	/**
125
+	 * @param WebSocketOverCOMET $appInstance
126
+	 * @param string $authKey
127
+	 */
123 128
 	public function __construct($route, $appInstance, $authKey) {
124 129
 		$this->polling = new SplStack;
125 130
 		$this->callbacks = new StackCallbacks;
@@ -166,6 +171,9 @@  discard block
 block discarded – undo
166 171
 		}
167 172
 	}
168 173
 
174
+	/**
175
+	 * @param double $b
176
+	 */
169 177
 	public function compareFloats($a, $b, $precision = 3) {
170 178
 		$k = pow(10, $precision);
171 179
 		$a = round($a * $k) / $k;
Please login to merge, or discard this patch.
lib/AppInstance.php 1 patch
Doc Comments   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 	/**
88 88
 	 * Function to get default config options from application
89 89
 	 * Override to set your own
90
-	 * @return array|false
90
+	 * @return boolean
91 91
 	 */
92 92
 	protected function getConfigDefaults() {
93 93
 		return false;
@@ -113,6 +113,7 @@  discard block
 block discarded – undo
113 113
 	 * @param string Method name.
114 114
 	 * @param array Arguments.
115 115
 	 * @param mixed Callback.
116
+	 * @param string $method
116 117
 	 * @return boolean Success.
117 118
 	 */
118 119
 	public function broadcastCall($method, $args = array(), $cb = NULL) {
@@ -250,7 +251,7 @@  discard block
 block discarded – undo
250 251
 	/** 
251 252
 	 * Shutdown the application instance
252 253
 	 * @param boolean Graceful?
253
-	 * @return void
254
+	 * @return boolean
254 255
 	 */
255 256
 	public function shutdown($graceful = false) {
256 257
 		return $this->onShutdown($graceful);
@@ -275,7 +276,7 @@  discard block
 block discarded – undo
275 276
 	/**
276 277
 	 * Handle the worker status
277 278
 	 * @param int Status code @todo use constants in method
278
-	 * @return boolean Result
279
+	 * @return null|boolean Result
279 280
 	 */
280 281
 	public function handleStatus($ret) {
281 282
 		if ($ret === self::EVENT_CONFIG_UPDATED) {
Please login to merge, or discard this patch.
lib/AsyncProcess.php 1 patch
Doc Comments   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 	/**
72 72
 	 * Sets an array of arguments
73 73
 	 * @param array Arguments
74
-	 * @return object AsyncProccess
74
+	 * @return AsyncProcess AsyncProccess
75 75
 	 */
76 76
 	public function setArgs($args = NULL) {
77 77
 		$this->args = $args;
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
 	/**
83 83
 	 * Set a hash of environment's variables
84 84
 	 * @param array Hash of environment's variables
85
-	 * @return object AsyncProccess
85
+	 * @return AsyncProcess AsyncProccess
86 86
 	 */
87 87
 	public function setEnv($env = NULL) {
88 88
 		$this->env = $env;
@@ -93,7 +93,8 @@  discard block
 block discarded – undo
93 93
 	/**
94 94
 	 * Set priority.
95 95
 	 * @param integer Priority
96
-	 * @return object AsyncProccess
96
+	 * @param integer $nice
97
+	 * @return AsyncProcess AsyncProccess
97 98
 	 */
98 99
 	public function nice($nice = NULL) {
99 100
 		$this->nice = $nice;
@@ -106,7 +107,8 @@  discard block
 block discarded – undo
106 107
 	 * @param string Optional. Binpath.
107 108
 	 * @param array Optional. Arguments.
108 109
 	 * @param array Optional. Hash of environment's variables.
109
-	 * @return object AsyncProccess
110
+	 * @param string $binPath
111
+	 * @return AsyncProcess AsyncProccess
110 112
 	 */
111 113
 	public function execute($binPath = NULL, $args = NULL, $env = NULL) {
112 114
 		if ($binPath !== NULL) {
Please login to merge, or discard this patch.
lib/AsyncStream.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -33,6 +33,9 @@  discard block
 block discarded – undo
33 33
 	public $filePath;
34 34
 	public $useSockets = true;
35 35
 
36
+	/**
37
+	 * @param string $readFD
38
+	 */
36 39
 	public function __construct($readFD = NULL, $writeFD = NULL) {
37 40
 		$this->initStream($readFD, $writeFD);
38 41
 	}
@@ -275,6 +278,9 @@  discard block
 block discarded – undo
275 278
 		return $this;
276 279
 	}
277 280
 
281
+	/**
282
+	 * @param Closure $cb
283
+	 */
278 284
 	public function onEOF($cb = NULL) {
279 285
 		$this->onEOF = $cb;
280 286
 
Please login to merge, or discard this patch.