Fix phpcs
This commit is contained in:
parent
6e367b6406
commit
d771efe37c
@ -285,7 +285,7 @@ script:
|
|||||||
# Ensure we catch errors
|
# Ensure we catch errors
|
||||||
set -e
|
set -e
|
||||||
#parallel-lint --exclude htdocs/includes --blame .
|
#parallel-lint --exclude htdocs/includes --blame .
|
||||||
parallel-lint --exclude dev/namespacemig --exclude htdocs/includes/sabre --exclude htdocs/includes/phpoffice/phpexcel/Classes/PHPExcel/Shared --exclude htdocs/includes/phpoffice/PhpSpreadsheet --exclude htdocs/includes/sebastian --exclude htdocs/includes/squizlabs/php_codesniffer --exclude htdocs/includes/jakub-onderka --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/ --exclude htdocs/includes/composer/autoload_static.php --blame .
|
parallel-lint --exclude dev/namespacemig --exclude dev/initdata/dbf/includes --exclude htdocs/includes/sabre --exclude htdocs/includes/phpoffice/phpexcel/Classes/PHPExcel/Shared --exclude htdocs/includes/phpoffice/PhpSpreadsheet --exclude htdocs/includes/sebastian --exclude htdocs/includes/squizlabs/php_codesniffer --exclude htdocs/includes/jakub-onderka --exclude htdocs/includes/mike42/escpos-php/example --exclude htdocs/includes/phpunit/ --exclude htdocs/includes/composer/autoload_static.php --blame .
|
||||||
set +e
|
set +e
|
||||||
echo
|
echo
|
||||||
|
|
||||||
|
|||||||
@ -179,6 +179,14 @@ fclose($fhandleerr);
|
|||||||
|
|
||||||
exit($error);
|
exit($error);
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* replaceable_echo
|
||||||
|
*
|
||||||
|
* @param string $message Message
|
||||||
|
* @param int $force_clear_lines Force clear messages
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function replaceable_echo($message, $force_clear_lines = null)
|
function replaceable_echo($message, $force_clear_lines = null)
|
||||||
{
|
{
|
||||||
static $last_lines = 0;
|
static $last_lines = 0;
|
||||||
@ -187,6 +195,8 @@ function replaceable_echo($message, $force_clear_lines = null)
|
|||||||
$last_lines = $force_clear_lines;
|
$last_lines = $force_clear_lines;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$toss = array();
|
||||||
|
$status = 0;
|
||||||
$term_width = exec('tput cols', $toss, $status);
|
$term_width = exec('tput cols', $toss, $status);
|
||||||
if ($status) {
|
if ($status) {
|
||||||
$term_width = 64; // Arbitrary fall-back term width.
|
$term_width = 64; // Arbitrary fall-back term width.
|
||||||
|
|||||||
@ -1,4 +1,9 @@
|
|||||||
<?php
|
<?php
|
||||||
|
/**
|
||||||
|
* \file dev/initdata/dbf/includes/dbase.class.php
|
||||||
|
* \ingroup dev
|
||||||
|
* \brief Class to manage DBF databases
|
||||||
|
*/
|
||||||
|
|
||||||
// source : https://github.com/donfbecker/php-dbase
|
// source : https://github.com/donfbecker/php-dbase
|
||||||
|
|
||||||
@ -8,6 +13,9 @@ define('DBASE_RDWR', 2);
|
|||||||
define('DBASE_TYPE_DBASE', 0);
|
define('DBASE_TYPE_DBASE', 0);
|
||||||
define('DBASE_TYPE_FOXPRO', 1);
|
define('DBASE_TYPE_FOXPRO', 1);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Class for DBase
|
||||||
|
*/
|
||||||
class DBase
|
class DBase
|
||||||
{
|
{
|
||||||
private $fd;
|
private $fd;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user