Issues (10)

example/Site.php (2 issues)

Labels
Severity
1
<?php
2
3
4
require __DIR__.'/../vendor/autoload.php';
5
6
const AAPANEL_SERVER_URL = '';
7
const AAPANEL_SERVER_KEY = ''; 
8
9
use DevOpsSantana\AAPanel\AAPanelSite;
10
11
$aapanel = new AAPanelSite();
12
13
/** List All Sites */
14
$aapanel->List(); 
15
16
/** Size Site Dir */
17
$aapanel->Size('yourdomain.com');
18
19
/** Get Index  */
20
$aapanel->GetIndex('[your site id]'); 
0 ignored issues
show
'[your site id]' of type string is incompatible with the type integer expected by parameter $id of DevOpsSantana\AAPanel\AAPanelSite::GetIndex(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

20
$aapanel->GetIndex(/** @scrutinizer ignore-type */ '[your site id]'); 
Loading history...
21
22
/** Anti Xss */
23
$aapanel->BaseDir('[your site id]', 'yourdomain.com');
0 ignored issues
show
'[your site id]' of type string is incompatible with the type integer expected by parameter $id of DevOpsSantana\AAPanel\AAPanelSite::BaseDir(). ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-type  annotation

23
$aapanel->BaseDir(/** @scrutinizer ignore-type */ '[your site id]', 'yourdomain.com');
Loading history...