Skip to content

Commit 1d8ed7e

Browse files
author
Prasetyo
committed
Merge pull request #1 from Atriedes/scrutinizer-patch-1
Scrutinizer Auto-Fixes
2 parents 9d586f1 + 0ec9b6d commit 1d8ed7e

File tree

6 files changed

+34
-34
lines changed

6 files changed

+34
-34
lines changed

src/Online/Command/Abuse/Abuse.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class Abuse extends Online
2020
* @param int $count
2121
* @param int $minId
2222
* @param int $maxId
23-
* @return mixed
23+
* @return string
2424
*/
2525
public function getAbuseList($count = 10, $minId = 0, $maxId = 10)
2626
{
@@ -41,7 +41,7 @@ public function getAbuseList($count = 10, $minId = 0, $maxId = 10)
4141
/**
4242
* function getAbuseDetail
4343
* @param int $abuseId
44-
* @return mixed
44+
* @return string
4545
*/
4646
public function getAbuseDetail($abuseId)
4747
{
@@ -56,7 +56,7 @@ public function getAbuseDetail($abuseId)
5656
* @param int $abuseId
5757
* @param string $answer
5858
* @param string $solution
59-
* @return mixed
59+
* @return string
6060
*/
6161
public function replyAbuse($abuseId, $answer, $solution)
6262
{

src/Online/Command/Network/Network.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ class Network extends Online
2121
* @param int $count
2222
* @param int $midId
2323
* @param int $maxId
24-
* @return mixed
24+
* @return string
2525
*/
2626
public function getDdosAlert($targetIp, $count = 10, $midId = 0, $maxId = 10)
2727
{
@@ -43,7 +43,7 @@ public function getDdosAlert($targetIp, $count = 10, $midId = 0, $maxId = 10)
4343
/**
4444
* function getDdosAlertDetail
4545
* @param int $alertId
46-
* @return mixed
46+
* @return string
4747
*/
4848
public function getDdosAlertDetail($alertId)
4949
{

src/Online/Command/Server/Server.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ public function getAllServerId()
3737
/**
3838
* function getServerDetail
3939
* @param int $serverId
40-
* @return mixed
40+
* @return string
4141
*/
4242
public function getServerDetail($serverId)
4343
{
@@ -51,7 +51,7 @@ public function getServerDetail($serverId)
5151
* function editServerHostname
5252
* @param int $serverId
5353
* @param string $hostname
54-
* @return mixed
54+
* @return string
5555
*/
5656
public function editServerHostname($serverId, $hostname = 'default')
5757
{
@@ -77,7 +77,7 @@ public function editServerHostname($serverId, $hostname = 'default')
7777
* function createBmcSession
7878
* @param string $serverId
7979
* @param string $authorizationIP
80-
* @return mixed
80+
* @return string
8181
*/
8282
public function createBmcSession($serverId, $authorizationIP)
8383
{
@@ -97,7 +97,7 @@ public function createBmcSession($serverId, $authorizationIP)
9797
/**
9898
* function deleteBmcSession
9999
* @param string $sessionId
100-
* @return mixed
100+
* @return string
101101
*/
102102
public function deleteBmcSession($sessionId)
103103
{
@@ -110,7 +110,7 @@ public function deleteBmcSession($sessionId)
110110
/**
111111
* function getBmcSessionDetail
112112
* @param string $sessionId
113-
* @return mixed
113+
* @return string
114114
*/
115115
public function getBmcSessionDetail($sessionId)
116116
{
@@ -123,7 +123,7 @@ public function getBmcSessionDetail($sessionId)
123123
/**
124124
* function bootServerNormal
125125
* @param int $serverId
126-
* @return mixed
126+
* @return string
127127
*/
128128
public function bootServerNormal($serverId)
129129
{
@@ -136,7 +136,7 @@ public function bootServerNormal($serverId)
136136
/**
137137
* function bootServerRescue
138138
* @param int $serverId
139-
* @return mixed
139+
* @return string
140140
*/
141141
public function bootServerRescue($serverId)
142142
{
@@ -149,7 +149,7 @@ public function bootServerRescue($serverId)
149149
/**
150150
* function bootServerTest
151151
* @param int $serverId
152-
* @return mixed
152+
* @return string
153153
*/
154154
public function bootServerTest($serverId)
155155
{
@@ -162,7 +162,7 @@ public function bootServerTest($serverId)
162162
/**
163163
* function rebootServer
164164
* @param int $serverId
165-
* @return mixed
165+
* @return string
166166
*/
167167
public function rebootServer($serverId)
168168
{
@@ -175,7 +175,7 @@ public function rebootServer($serverId)
175175
/**
176176
* function enableHardwareWatch
177177
* @param int $serverId
178-
* @return mixed
178+
* @return string
179179
*/
180180
public function enableHardwareWatch($serverId)
181181
{
@@ -188,7 +188,7 @@ public function enableHardwareWatch($serverId)
188188
/**
189189
* function disableHardwareWatch
190190
* @param int $serverId
191-
* @return mixed
191+
* @return string
192192
*/
193193
public function disableHardwareWatch($serverId)
194194
{
@@ -201,7 +201,7 @@ public function disableHardwareWatch($serverId)
201201
/**
202202
* function getRescueImages
203203
* @param int $serverId
204-
* @return mixed
204+
* @return string
205205
*/
206206
public function getRescueImages($serverId)
207207
{
@@ -214,7 +214,7 @@ public function getRescueImages($serverId)
214214
/**
215215
* function getBackupServer
216216
* @param int $serverId
217-
* @return mixed
217+
* @return string
218218
*/
219219
public function getBackupServer($serverId)
220220
{
@@ -236,7 +236,7 @@ public function getBackupServer($serverId)
236236
* @param string $password
237237
* @param bool $autoLogin
238238
* @param bool $acl
239-
* @return mixed
239+
* @return string
240240
*/
241241
public function editBackupServer($serverId, $password = 'default', $autoLogin = true, $acl = false)
242242
{
@@ -257,7 +257,7 @@ public function editBackupServer($serverId, $password = 'default', $autoLogin =
257257

258258
/**
259259
* function getFailoverIp
260-
* @return mixed
260+
* @return string
261261
*/
262262
public function getFailoverIp()
263263
{
@@ -270,7 +270,7 @@ public function getFailoverIp()
270270
/**
271271
* function deleteFailoverMac
272272
* @param string $failoverIp
273-
* @return mixed
273+
* @return string
274274
*/
275275
public function deleteFailoverMac($failoverIp)
276276
{
@@ -290,7 +290,7 @@ public function deleteFailoverMac($failoverIp)
290290
* function editFailoverIp
291291
* @param string $failoverIp
292292
* @param string $destination
293-
* @return mixed
293+
* @return string
294294
*/
295295
public function editFailoverIp($failoverIp, $destination)
296296
{
@@ -311,7 +311,7 @@ public function editFailoverIp($failoverIp, $destination)
311311
* function generateMac
312312
* @param string $failoverIp
313313
* @param string $type
314-
* @return mixed|string
314+
* @return string
315315
*/
316316
public function generateMac($failoverIp, $type)
317317
{
@@ -337,7 +337,7 @@ public function generateMac($failoverIp, $type)
337337
* @param string $ip
338338
* @param string $reverse
339339
* @param null $destination
340-
* @return mixed
340+
* @return string
341341
*/
342342
public function editIp($ip, $reverse, $destination = null)
343343
{

src/Online/Command/Storage/Storage.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class Storage extends Online
1818
{
1919
/**
2020
* function getRpnRsyncBackup
21-
* @return mixed
21+
* @return string
2222
*/
2323
public function getRpnRsyncBackup()
2424
{
@@ -32,7 +32,7 @@ public function getRpnRsyncBackup()
3232
* function editRpnRsyncBackup
3333
* @param string $name
3434
* @param string $password
35-
* @return mixed
35+
* @return string
3636
*/
3737
public function editRpnRsyncBackup($name, $password = 'default')
3838
{
@@ -51,7 +51,7 @@ public function editRpnRsyncBackup($name, $password = 'default')
5151

5252
/**
5353
* function getRpnSan
54-
* @return mixed
54+
* @return string
5555
*/
5656
public function getRpnSan()
5757
{
@@ -65,7 +65,7 @@ public function getRpnSan()
6565
* function addServerToRpnSan
6666
* @param string $iqnSuffix
6767
* @param int $serverId
68-
* @return mixed
68+
* @return string
6969
*/
7070
public function addServerToRpnSan($iqnSuffix, $serverId)
7171
{
@@ -86,7 +86,7 @@ public function addServerToRpnSan($iqnSuffix, $serverId)
8686
* function removeServerInRpnSan
8787
* @param string $iqnSuffix
8888
* @param int $serverId
89-
* @return mixed
89+
* @return string
9090
*/
9191
public function removeServerInRpnSan($iqnSuffix, $serverId)
9292
{

src/Online/Command/User/User.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ class User extends Online
1818
{
1919
/**
2020
* function getUserInfo
21-
* @return mixed
21+
* @return string
2222
*/
2323
public function getUserInfo()
2424
{

src/Online/Online.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function setAuth()
7272

7373
/**
7474
* function setHeader
75-
* @param array $header
75+
* @param string[] $header
7676
*/
7777
public function setHeader($header = array())
7878
{
@@ -82,7 +82,7 @@ public function setHeader($header = array())
8282

8383
/**
8484
* function getReqMethod
85-
* @return mixed
85+
* @return RestClientInterface
8686
*/
8787
public function getReqMethod()
8888
{
@@ -102,7 +102,7 @@ public function setReqMethod(RestClientInterface $reqMethod = null)
102102

103103
/**
104104
* function getToken
105-
* @return mixed
105+
* @return string
106106
*/
107107
public function getToken()
108108
{
@@ -222,7 +222,7 @@ protected function buildQuery($function, $httpMethod = 'GET', $data = null)
222222
/**
223223
* function execQuery
224224
* @param string $query
225-
* @return mixed
225+
* @return string
226226
*/
227227
protected function execQuery($query)
228228
{

0 commit comments

Comments
 (0)