@@ -71,8 +71,8 @@ discard block |
||
71 | 71 | unset($user['uid']); |
72 | 72 | |
73 | 73 | $body = $this->body->withMethod(self::TOPIC . '_add') |
74 | - ->withArguments($arguments) |
|
75 | - ->withAddedOptions(array_merge($defaultOptions, $user, $options)); |
|
74 | + ->withArguments($arguments) |
|
75 | + ->withAddedOptions(array_merge($defaultOptions, $user, $options)); |
|
76 | 76 | |
77 | 77 | return $this->client->sendRequest($body); |
78 | 78 | } |
@@ -87,8 +87,8 @@ discard block |
||
87 | 87 | ]; |
88 | 88 | |
89 | 89 | $body = $this->body->withMethod(self::TOPIC . '_show') |
90 | - ->withArguments($arguments) |
|
91 | - ->withAddedOptions(array_merge($defaultOptions, $options)); |
|
90 | + ->withArguments($arguments) |
|
91 | + ->withAddedOptions(array_merge($defaultOptions, $options)); |
|
92 | 92 | |
93 | 93 | return $this->client->sendRequest($body); |
94 | 94 | } |
@@ -109,8 +109,8 @@ discard block |
||
109 | 109 | ]; |
110 | 110 | |
111 | 111 | $body = $this->body->withMethod(self::TOPIC . '_find') |
112 | - ->withArguments($arguments) |
|
113 | - ->withAddedOptions(array_merge($defaultOptions, $options)); |
|
112 | + ->withArguments($arguments) |
|
113 | + ->withAddedOptions(array_merge($defaultOptions, $options)); |
|
114 | 114 | |
115 | 115 | return $this->client->sendRequest($body); |
116 | 116 | } |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | $arguments = array_merge([$uid], $arguments); |
140 | 140 | |
141 | 141 | $body = $this->body->withMethod(self::TOPIC . '_mod') |
142 | - ->withArguments($arguments) |
|
143 | - ->withAddedOptions(array_merge($defaultOptions, $newData, $options)); |
|
142 | + ->withArguments($arguments) |
|
143 | + ->withAddedOptions(array_merge($defaultOptions, $newData, $options)); |
|
144 | 144 | |
145 | 145 | return $this->client->sendRequest($body); |
146 | 146 | } |
@@ -151,8 +151,8 @@ discard block |
||
151 | 151 | ]; |
152 | 152 | |
153 | 153 | $body = $this->body->withMethod(self::TOPIC . '_del') |
154 | - ->withArguments($arguments) |
|
155 | - ->withAddedOptions(array_merge($defaultOptions, $options)); |
|
154 | + ->withArguments($arguments) |
|
155 | + ->withAddedOptions(array_merge($defaultOptions, $options)); |
|
156 | 156 | |
157 | 157 | return $this->client->sendRequest($body); |
158 | 158 | } |
@@ -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 | } |