Completed
Push — 2.0/master ( beb118...68076f )
by Josh
09:45 queued 06:37
created
src/Bencode.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -15,23 +15,23 @@  discard block
 block discarded – undo
15 15
 class Bencode
16 16
 {
17 17
 	/**
18
-	* @var string Bencoded string being decoded
19
-	*/
18
+	 * @var string Bencoded string being decoded
19
+	 */
20 20
 	protected string $bencoded;
21 21
 
22 22
 	/**
23
-	* @var int Length of the bencoded string
24
-	*/
23
+	 * @var int Length of the bencoded string
24
+	 */
25 25
 	protected int $len;
26 26
 
27 27
 	/**
28
-	* @var int Safe rightmost boundary
29
-	*/
28
+	 * @var int Safe rightmost boundary
29
+	 */
30 30
 	protected int $max;
31 31
 
32 32
 	/**
33
-	* @var int Position of the cursor while decoding
34
-	*/
33
+	 * @var int Position of the cursor while decoding
34
+	 */
35 35
 	protected int $pos;
36 36
 
37 37
 	protected function __construct(string $bencoded)
@@ -107,10 +107,10 @@  discard block
 block discarded – undo
107 107
 	}
108 108
 
109 109
 	/**
110
-	* Adjust the rightmost boundary to the last safe character
111
-	*
112
-	* Will rewind the boundary to skip the rightmost digits, optionally preceded by "i" or "i-"
113
-	*/
110
+	 * Adjust the rightmost boundary to the last safe character
111
+	 *
112
+	 * Will rewind the boundary to skip the rightmost digits, optionally preceded by "i" or "i-"
113
+	 */
114 114
 	protected function computeSafeBoundary(): void
115 115
 	{
116 116
 		$boundary = $this->len - 1;
@@ -257,8 +257,8 @@  discard block
 block discarded – undo
257 257
 	}
258 258
 
259 259
 	/**
260
-	* Encode an array into either an array of a dictionary
261
-	*/
260
+	 * Encode an array into either an array of a dictionary
261
+	 */
262 262
 	protected static function encodeArray(array $value): string
263 263
 	{
264 264
 		if (empty($value))
@@ -276,8 +276,8 @@  discard block
 block discarded – undo
276 276
 	}
277 277
 
278 278
 	/**
279
-	* Encode given ArrayObject instance into a dictionary
280
-	*/
279
+	 * Encode given ArrayObject instance into a dictionary
280
+	 */
281 281
 	protected static function encodeArrayObject(ArrayObject $dict): string
282 282
 	{
283 283
 		$vars = $dict->getArrayCopy();
@@ -294,8 +294,8 @@  discard block
 block discarded – undo
294 294
 	}
295 295
 
296 296
 	/**
297
-	* Encode a scalar value
298
-	*/
297
+	 * Encode a scalar value
298
+	 */
299 299
 	protected static function encodeScalar($value): string
300 300
 	{
301 301
 		if (is_int($value) || is_float($value))
Please login to merge, or discard this patch.