@@ -323,7 +323,7 @@ discard block |
||
| 323 | 323 | * Get the server address (IP or hostname) |
| 324 | 324 | * |
| 325 | 325 | * @param void |
| 326 | - * @return string|bool |
|
| 326 | + * @return string|null |
|
| 327 | 327 | * @sice GIT 0.1.0 |
| 328 | 328 | * @version GIT: 0.1.0 |
| 329 | 329 | * @see setIPAServer() |
@@ -360,7 +360,7 @@ discard block |
||
| 360 | 360 | /** |
| 361 | 361 | * Get the full path of certificate file |
| 362 | 362 | * |
| 363 | - * @return string|bool |
|
| 363 | + * @return string|null |
|
| 364 | 364 | * @sice GIT 0.1.0 |
| 365 | 365 | * @version GIT: 0.1.0 |
| 366 | 366 | * @see setCertificateFile() |
@@ -388,7 +388,7 @@ discard block |
||
| 388 | 388 | * Get the string returned by cURL |
| 389 | 389 | * |
| 390 | 390 | * @param void |
| 391 | - * @return string|bool |
|
| 391 | + * @return string|null |
|
| 392 | 392 | * @sice GIT 0.1.0 |
| 393 | 393 | * @version GIT: 0.1.0 |
| 394 | 394 | * @see setCurlReturn() |
@@ -429,7 +429,7 @@ discard block |
||
| 429 | 429 | * Get the cURL handler with options already defined |
| 430 | 430 | * |
| 431 | 431 | * @param bool $force force cURL to be initiated again |
| 432 | - * @return mixed cURL handler |
|
| 432 | + * @return boolean cURL handler |
|
| 433 | 433 | * @sice GIT 0.1.0 |
| 434 | 434 | * @version GIT: 0.1.0 |
| 435 | 435 | * @see endCurl() |
@@ -785,7 +785,7 @@ discard block |
||
| 785 | 785 | * @param string $method required parameter that defines the method that will be executed in the server |
| 786 | 786 | * @param array $args arguments for the method |
| 787 | 787 | * @param array $options options for the method |
| 788 | - * @return string|bool returns false if there is error in passed parameters |
|
| 788 | + * @return false|string returns false if there is error in passed parameters |
|
| 789 | 789 | * @sice GIT 0.1.0 |
| 790 | 790 | * @version GIT: 0.1.0 |
| 791 | 791 | * @link http://php.net/manual/en/function.json-encode.php |
@@ -267,7 +267,7 @@ |
||
| 267 | 267 | break; |
| 268 | 268 | } |
| 269 | 269 | return($r); |
| 270 | - } |
|
| 270 | + } |
|
| 271 | 271 | |
| 272 | 272 | /** |
| 273 | 273 | * Define a version that will be used in json sent to the server. The server will refuse |
@@ -4,18 +4,18 @@ |
||
| 4 | 4 | * Print a message |
| 5 | 5 | */ |
| 6 | 6 | function _print( $string = NULL ) { |
| 7 | - if ( 'cli' == php_sapi_name() ) { // PHP is running in terminal |
|
| 8 | - $line_end = PHP_EOL; |
|
| 9 | - } else { |
|
| 10 | - $line_end = '<br/>'; |
|
| 11 | - } |
|
| 7 | + if ( 'cli' == php_sapi_name() ) { // PHP is running in terminal |
|
| 8 | + $line_end = PHP_EOL; |
|
| 9 | + } else { |
|
| 10 | + $line_end = '<br/>'; |
|
| 11 | + } |
|
| 12 | 12 | |
| 13 | - if ( ! empty( $string ) ) { |
|
| 14 | - $file = basename( $_SERVER["PHP_SELF"] ); |
|
| 15 | - $output = date( 'd-m-Y_H:i:s ' ) . "[$file] $string $line_end"; |
|
| 16 | - } else { |
|
| 17 | - $output = $line_end; |
|
| 18 | - } |
|
| 13 | + if ( ! empty( $string ) ) { |
|
| 14 | + $file = basename( $_SERVER["PHP_SELF"] ); |
|
| 15 | + $output = date( 'd-m-Y_H:i:s ' ) . "[$file] $string $line_end"; |
|
| 16 | + } else { |
|
| 17 | + $output = $line_end; |
|
| 18 | + } |
|
| 19 | 19 | |
| 20 | - print ( $output ); |
|
| 20 | + print ( $output ); |
|
| 21 | 21 | } |