Skip to content

Commit

Permalink
Fix CS
Browse files Browse the repository at this point in the history
  • Loading branch information
trasher committed Jan 21, 2025
1 parent bdefcbb commit d5e3994
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 30 deletions.
4 changes: 2 additions & 2 deletions lib/php/Schema.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Glpi\Inventory;

use Exception;
Expand Down Expand Up @@ -265,5 +266,4 @@ public function validate($json): bool
);
}
}

}
}
34 changes: 6 additions & 28 deletions tests/Glpi/Inventory/tests/units/Schema.php
Original file line number Diff line number Diff line change
@@ -1,34 +1,13 @@
<?php

/**
* ---------------------------------------------------------------------
* GLPI - Gestionnaire Libre de Parc Informatique
* Copyright (C) 2015-2018 Teclib' and contributors.
*
* http://glpi-project.org
*
* based on GLPI - Gestionnaire Libre de Parc Informatique
* Copyright (C) 2003-2014 by the INDEPNET Development Team.
*
* ---------------------------------------------------------------------
* © Teclib' and contributors.
*
* LICENSE
* This file is part of GLPI inventory format.
*
* This file is part of GLPI.
*
* GLPI is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* GLPI is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with GLPI. If not, see <http://www.gnu.org/licenses/>.
* ---------------------------------------------------------------------
*/
* For the full copyright and license information, please view the LICENSE
* file that was distributed with this source code.
*/

namespace Glpi\Inventory\tests\units;

Expand Down Expand Up @@ -104,7 +83,6 @@ public function testValidateExtraPlugin_node(): void
$instance = new \Glpi\Inventory\Schema();
$this->assertInstanceOf(\Glpi\Inventory\Schema::class, $instance->setExtraProperties($extra_prop));
$this->assertTrue($instance->validate($json));

}

public function testValidateUnknownHwPlugin_node(): void
Expand Down

0 comments on commit d5e3994

Please sign in to comment.