| Conditions | 1 |
| Paths | 1 |
| Total Lines | 11 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 42 | static function from_rest_token( $token ) { |
||
| 43 | return new SAL_Token( |
||
| 44 | $token['blog_id'], |
||
| 45 | $token['user_id'], |
||
| 46 | $token['scope'][0], // there's only ever one scope in our current API implementation, auth or global |
||
| 47 | $token['client_id'], |
||
| 48 | $token['external_user_id'], |
||
| 49 | $token['external_user_code'], |
||
| 50 | $token['auth'] |
||
| 51 | ); |
||
| 52 | } |
||
| 53 | } |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.