mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-12 23:14:18 +01:00
N°8796 - Add PHP code style validation in iTop and extensions - format whole code base
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
<?php
|
||||
|
||||
/**
|
||||
* Copyright (c) 2010-2024 Combodo SAS
|
||||
*
|
||||
@@ -19,30 +20,34 @@
|
||||
*
|
||||
*/
|
||||
|
||||
|
||||
/**
|
||||
* Allow the setup page to load and perform its checks (including the check about the required extensions)
|
||||
*/
|
||||
if (!class_exists('DOMDocument'))
|
||||
{
|
||||
if (!class_exists('DOMDocument')) {
|
||||
/**
|
||||
* Class DOMDocument
|
||||
*/
|
||||
class DOMDocument {
|
||||
function __construct(){throw new Exception('The dom extension is not enabled');}
|
||||
class DOMDocument
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
throw new Exception('The dom extension is not enabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Allow the setup page to load and perform its checks (including the check about the required extensions)
|
||||
*/
|
||||
if (!class_exists('DOMElement'))
|
||||
{
|
||||
if (!class_exists('DOMElement')) {
|
||||
/**
|
||||
* Class DOMElement
|
||||
*/
|
||||
class DOMElement {
|
||||
function __construct(){throw new Exception('The dom extension is not enabled');}
|
||||
class DOMElement
|
||||
{
|
||||
public function __construct()
|
||||
{
|
||||
throw new Exception('The dom extension is not enabled');
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user