Skip to content

Commit d4e6c04

Browse files
committed
fix CS
1 parent 45f0990 commit d4e6c04

File tree

1 file changed

+15
-14
lines changed

1 file changed

+15
-14
lines changed

inc/sccm.class.php

Lines changed: 15 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -49,24 +49,25 @@ public function showHome()
4949
echo __('Please, read the documentation before using that.', 'footprints');
5050
}
5151

52-
function getSccmVersion() {
53-
$PluginSccmSccmdb = new PluginSccmSccmdb();
54-
$res = $PluginSccmSccmdb->connect();
55-
if (!$res) {
56-
die;
57-
}
52+
public function getSccmVersion()
53+
{
54+
$PluginSccmSccmdb = new PluginSccmSccmdb();
55+
$res = $PluginSccmSccmdb->connect();
56+
if (!$res) {
57+
die;
58+
}
5859

59-
$query = "SELECT TOP 1 Version FROM dbo.Site;";
60+
$query = "SELECT TOP 1 Version FROM dbo.Site;";
6061

61-
$result = $PluginSccmSccmdb->exec_query($query);
62+
$result = $PluginSccmSccmdb->exec_query($query);
6263

63-
$version = null;
64-
if ($row = sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC)) {
65-
$version = Sanitizer::sanitize($row['Version']);
66-
}
64+
$version = null;
65+
if ($row = sqlsrv_fetch_array($result, SQLSRV_FETCH_ASSOC)) {
66+
$version = Sanitizer::sanitize($row['Version']);
67+
}
6768

68-
return (int)$version;
69-
}
69+
return (int) $version;
70+
}
7071

7172
public function getDevices($where = 0, $limit = 99999999)
7273
{

0 commit comments

Comments
 (0)