@@ -99,21 +99,21 @@ public function __construct($id = null) {
99
99
if ($ matches [1 ] <= self ::UNIVERSE_PUBLIC ) {
100
100
$ this ->universe = self ::UNIVERSE_PUBLIC ;
101
101
} else {
102
- $ this ->universe = (int )$ matches [1 ];
102
+ $ this ->universe = (int ) $ matches [1 ];
103
103
}
104
104
105
105
$ this ->type = self ::TYPE_INDIVIDUAL ;
106
106
$ this ->instance = self ::INSTANCE_DESKTOP ;
107
- $ this ->accountid = (int )($ matches [3 ] * 2 ) + $ matches [2 ];
107
+ $ this ->accountid = (int ) ($ matches [3 ] * 2 ) + $ matches [2 ];
108
108
} elseif (preg_match ('/^ \\[([a-zA-Z]):([0-5]):([0-9]+)(:[0-9]+)? \\]$/ ' , $ id , $ matches )) {
109
109
// Steam3 ID
110
- $ this ->universe = (int )$ matches [2 ];
111
- $ this ->accountid = (int )$ matches [3 ];
110
+ $ this ->universe = (int ) $ matches [2 ];
111
+ $ this ->accountid = (int ) $ matches [3 ];
112
112
113
113
$ type_char = $ matches [1 ];
114
114
115
115
if (!empty ($ matches [4 ])) {
116
- $ this ->instance = (int )substr ($ matches [4 ], 1 );
116
+ $ this ->instance = (int ) substr ($ matches [4 ], 1 );
117
117
} else {
118
118
switch ($ type_char ) {
119
119
case 'g ' :
@@ -144,10 +144,10 @@ public function __construct($id = null) {
144
144
if (PHP_INT_SIZE == 4 ) {
145
145
// Wrapper for BigInteger
146
146
$ bigint = new Math_BigInteger ($ id );
147
- $ this ->universe = (int )$ bigint ->bitwise_rightShift (56 )->toString ();
148
- $ this ->type = ((int )$ bigint ->bitwise_rightShift (52 )->toString ()) & 0xF ;
149
- $ this ->instance = ((int )$ bigint ->bitwise_rightShift (32 )->toString ()) & 0xFFFFF ;
150
- $ this ->accountid = (int )$ bigint ->bitwise_and (new Math_BigInteger ('0xFFFFFFFF ' , 16 ))->toString ();
147
+ $ this ->universe = (int ) $ bigint ->bitwise_rightShift (56 )->toString ();
148
+ $ this ->type = ((int ) $ bigint ->bitwise_rightShift (52 )->toString ()) & 0xF ;
149
+ $ this ->instance = ((int ) $ bigint ->bitwise_rightShift (32 )->toString ()) & 0xFFFFF ;
150
+ $ this ->accountid = (int ) $ bigint ->bitwise_and (new Math_BigInteger ('0xFFFFFFFF ' , 16 ))->toString ();
151
151
} else {
152
152
$ this ->universe = $ id >> 56 ;
153
153
$ this ->type = ($ id >> 52 ) & 0xF ;
@@ -243,7 +243,7 @@ public function getSteamID64() {
243
243
* @return string
244
244
*/
245
245
public function __toString () {
246
- return ( string ) $ this ->getSteamID64 ();
246
+ return $ this ->getSteamID64 ();
247
247
}
248
248
249
249
/**
0 commit comments