Checkstyle
This commit is contained in:
parent
b43c7e1b35
commit
e8b2489c1c
@ -43,9 +43,9 @@ class RemiseCheque extends CommonObject
|
|||||||
/**
|
/**
|
||||||
* Constructor
|
* Constructor
|
||||||
*
|
*
|
||||||
* @param DoliDB $DB Database handler
|
* @param DoliDB $db Database handler
|
||||||
*/
|
*/
|
||||||
function RemiseCheque($DB)
|
function RemiseCheque($db)
|
||||||
{
|
{
|
||||||
$this->db = $DB;
|
$this->db = $DB;
|
||||||
$this->next_id = 0;
|
$this->next_id = 0;
|
||||||
|
|||||||
@ -68,6 +68,13 @@ function CreateXmlFooter()
|
|||||||
echo '</Connector>' ;
|
echo '</Connector>' ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* SendError
|
||||||
|
*
|
||||||
|
* @param unknown_type $number Number
|
||||||
|
* @param unknown_type $text Text
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function SendError($number, $text)
|
function SendError($number, $text)
|
||||||
{
|
{
|
||||||
if ( $_GET['Command'] == 'FileUpload' )
|
if ( $_GET['Command'] == 'FileUpload' )
|
||||||
|
|||||||
@ -29,7 +29,6 @@ require('./util.php');
|
|||||||
require('./io.php');
|
require('./io.php');
|
||||||
require('./basexml.php');
|
require('./basexml.php');
|
||||||
require('./commands.php');
|
require('./commands.php');
|
||||||
require('./phpcompat.php');
|
|
||||||
|
|
||||||
if ( !$Config['Enabled'] )
|
if ( !$Config['Enabled'] )
|
||||||
SendError(1, 'This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file');
|
SendError(1, 'This connector is disabled. Please check the "editor/filemanager/connectors/php/config.php" file');
|
||||||
|
|||||||
@ -1,16 +0,0 @@
|
|||||||
<?php
|
|
||||||
|
|
||||||
if ( !isset( $_SERVER ) ) {
|
|
||||||
$_SERVER = $HTTP_SERVER_VARS ;
|
|
||||||
}
|
|
||||||
if ( !isset( $_GET ) ) {
|
|
||||||
$_GET = $HTTP_GET_VARS ;
|
|
||||||
}
|
|
||||||
if ( !isset( $_FILES ) ) {
|
|
||||||
$_FILES = $HTTP_POST_FILES ;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (! defined('DIRECTORY_SEPARATOR'))
|
|
||||||
{
|
|
||||||
define('DIRECTORY_SEPARATOR', strtoupper(substr(PHP_OS, 0, 3) == 'WIN') ? '\\' : '/');
|
|
||||||
}
|
|
||||||
@ -26,7 +26,6 @@ require('./config.php');
|
|||||||
require('./util.php');
|
require('./util.php');
|
||||||
require('./io.php');
|
require('./io.php');
|
||||||
require('./commands.php');
|
require('./commands.php');
|
||||||
require('./phpcompat.php');
|
|
||||||
|
|
||||||
function SendError( $number, $text )
|
function SendError( $number, $text )
|
||||||
{
|
{
|
||||||
|
|||||||
@ -34,6 +34,11 @@ function RemoveFromEnd( $sourceString, $charToRemove )
|
|||||||
return preg_replace($sPattern, '', $sourceString);
|
return preg_replace($sPattern, '', $sourceString);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* FindBadUtf8
|
||||||
|
*
|
||||||
|
* @param unknown_type $string String
|
||||||
|
*/
|
||||||
function FindBadUtf8( $string )
|
function FindBadUtf8( $string )
|
||||||
{
|
{
|
||||||
$regex =
|
$regex =
|
||||||
@ -57,6 +62,11 @@ function FindBadUtf8( $string )
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* ConvertToXmlAttribute
|
||||||
|
*
|
||||||
|
* @param unknown_type $value
|
||||||
|
*/
|
||||||
function ConvertToXmlAttribute( $value )
|
function ConvertToXmlAttribute( $value )
|
||||||
{
|
{
|
||||||
if ( defined( 'PHP_OS' ) )
|
if ( defined( 'PHP_OS' ) )
|
||||||
@ -173,10 +183,9 @@ function DetectHtml( $filePath )
|
|||||||
* Currently this function validates only image files.
|
* Currently this function validates only image files.
|
||||||
* Returns false if file is invalid.
|
* Returns false if file is invalid.
|
||||||
*
|
*
|
||||||
* @param string $filePath absolute path to file
|
* @param string $filePath Absolute path to file
|
||||||
* @param string $extension file extension
|
* @param string $extension File extension
|
||||||
* @param integer $detectionLevel 0 = none, 1 = use getimagesize for images, 2 = use DetectHtml for images
|
* @return boolean True or false
|
||||||
* @return boolean
|
|
||||||
*/
|
*/
|
||||||
function IsImageValid( $filePath, $extension )
|
function IsImageValid( $filePath, $extension )
|
||||||
{
|
{
|
||||||
|
|||||||
@ -700,7 +700,7 @@ function write_main_file($mainfile,$main_dir)
|
|||||||
{
|
{
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
fputs($fp, '<?php'."\n");
|
fputs($fp, '<?php'."\n");
|
||||||
fputs($fp, "# Wrapper to include main into htdocs\n");
|
fputs($fp, "// Wrapper to include main into htdocs\n");
|
||||||
fputs($fp, "include_once('".$main_dir."/main.inc.php');\n");
|
fputs($fp, "include_once('".$main_dir."/main.inc.php');\n");
|
||||||
fputs($fp, '?>');
|
fputs($fp, '?>');
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
@ -722,7 +722,7 @@ function write_master_file($masterfile,$main_dir)
|
|||||||
{
|
{
|
||||||
clearstatcache();
|
clearstatcache();
|
||||||
fputs($fp, '<?php'."\n");
|
fputs($fp, '<?php'."\n");
|
||||||
fputs($fp, "# Wrapper to include master into htdocs\n");
|
fputs($fp, "// Wrapper to include master into htdocs\n");
|
||||||
fputs($fp, "include_once('".$main_dir."/master.inc.php');\n");
|
fputs($fp, "include_once('".$main_dir."/master.inc.php');\n");
|
||||||
fputs($fp, '?>');
|
fputs($fp, '?>');
|
||||||
fclose($fp);
|
fclose($fp);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user