| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| 1 | <?php |
||
| 22 | static function send_data( $data ) { |
||
| 23 | Jetpack::load_xml_rpc_client(); |
||
| 24 | $rpc = new Jetpack_IXR_Client( array( |
||
| 25 | 'user_id' => get_current_user_id(), |
||
| 26 | 'timeout' => 30 |
||
| 27 | ) ); |
||
| 28 | $result = $rpc->query( 'jetpack.syncActions', $data ); |
||
| 29 | if ( ! $result ) { |
||
| 30 | return $rpc->get_jetpack_error(); |
||
| 31 | } |
||
| 32 | |||
| 33 | return $rpc->getResponse(); |
||
| 34 | } |
||
| 35 | |||
| 43 |
The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using
the property is implicitly global.
To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.