Skip to content

Commit dca5e93

Browse files
MyvTsvRom1-B
authored andcommitted
fix lint
1 parent d4274a7 commit dca5e93

9 files changed

Lines changed: 19 additions & 14 deletions

front/profile.form.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
}
5555
}
5656
} elseif (isset($_REQUEST['add'])) {
57-
$query = [
57+
$query = [
5858
'SELECT' => ['id', 'name'],
5959
'FROM' => Profile::getTable(),
6060
'WHERE' => ['interface' => 'central'],

inc/baseclass.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* -------------------------------------------------------------------------
2929
*/
3030

31-
use \Glpi\DBAL\QueryExpression;
31+
use Glpi\DBAL\QueryExpression;
3232

3333
class PluginMreportingBaseclass
3434
{

inc/common.class.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
*/
3030

3131
use Odtphp\Odf;
32-
use \Glpi\DBAL\QueryExpression;
32+
use Glpi\DBAL\QueryExpression;
3333

3434
class PluginMreportingCommon extends CommonDBTM
3535
{
@@ -63,7 +63,7 @@ public static function getMenuContent()
6363
/** @var array $CFG_GLPI */
6464
global $CFG_GLPI;
6565

66-
$web_full_dir = $CFG_GLPI['url_base'] . 'plugins/mreporting';
66+
$web_full_dir = $CFG_GLPI['url_base'] . '/plugins/mreporting';
6767
$img_db = "<img src='" . $web_full_dir . "/pics/dashboard.png'
6868
title='" . __('Dashboard', 'mreporting') . "'
6969
alt='" . __('Dashboard', 'mreporting') . "'>";

inc/config.class.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@ public static function getTypeName($nb = 0)
4141
return __('Configuration', 'mreporting');
4242
}
4343

44+
public static function getIcon()
45+
{
46+
return 'ti ti-settings';
47+
}
48+
4449
/**
4550
* Définition des onglets
4651
**/

inc/helpdesk.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* -------------------------------------------------------------------------
2929
*/
3030

31-
use \Glpi\DBAL\QueryExpression;
31+
use Glpi\DBAL\QueryExpression;
3232

3333
class PluginMreportingHelpdesk extends PluginMreportingBaseclass
3434
{

inc/helpdeskplus.class.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@
2828
* -------------------------------------------------------------------------
2929
*/
3030

31-
use \Glpi\DBAL\QueryExpression;
32-
use \Glpi\DBAL\QueryUnion;
33-
use \Glpi\DBAL\QuerySubQuery;
31+
use Glpi\DBAL\QueryExpression;
32+
use Glpi\DBAL\QueryUnion;
33+
use Glpi\DBAL\QuerySubQuery;
3434

3535
if (!defined('GLPI_ROOT')) {
3636
throw new \Glpi\Exception\Http\NotFoundHttpException("Sorry. You can't access directly to this file");

inc/inventory.class.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
* @link https://github.com/pluginsGLPI/mreporting
2828
* -------------------------------------------------------------------------
2929
*/
30-
use \Glpi\DBAL\QueryExpression;
31-
use \Glpi\DBAL\QueryUnion;
32-
use \Glpi\DBAL\QuerySubQuery;
33-
use \Glpi\Asset\Asset_PeripheralAsset;
30+
use Glpi\DBAL\QueryExpression;
31+
use Glpi\DBAL\QueryUnion;
32+
use Glpi\DBAL\QuerySubQuery;
33+
use Glpi\Asset\Asset_PeripheralAsset;
3434

3535
class PluginMreportingInventory extends PluginMreportingBaseclass
3636
{

inc/other.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
* -------------------------------------------------------------------------
2929
*/
3030

31-
use \Glpi\DBAL\QueryExpression;
31+
use Glpi\DBAL\QueryExpression;
3232

3333
class PluginMreportingOther extends PluginMreportingBaseclass
3434
{

inc/profile.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -358,7 +358,7 @@ public function showFormForManageProfile($items, $options = [])
358358
$prof->getFromDB($profile['id']);
359359

360360
echo "<tr class='tab_bg_1'>";
361-
echo '<td>' . htmlspecialchars($prof->getLink()) . '</td>';
361+
echo '<td>' . $prof->getLink() . '</td>';
362362
echo '<td>';
363363
Profile::dropdownRight(
364364
$profile['id'],

0 commit comments

Comments
 (0)