From 8d84dd1155b226c33fd6cea9257678612bd1866e Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Sat, 6 Jun 2015 14:34:57 +0200 Subject: [PATCH] Uniformize code --- htdocs/core/db/DoliDB.class.php | 2 +- htdocs/core/modules/printing/printgcp.modules.php | 12 ++++++------ htdocs/main.inc.php | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/htdocs/core/db/DoliDB.class.php b/htdocs/core/db/DoliDB.class.php index 6a7c5276025..c4908595493 100644 --- a/htdocs/core/db/DoliDB.class.php +++ b/htdocs/core/db/DoliDB.class.php @@ -55,7 +55,7 @@ abstract class DoliDB implements Database public $transaction_opened; /** @var string Last successful query */ public $lastquery; - /** @ar string Last failed query */ + /** @var string Last failed query */ public $lastqueryerror; /** @var string Last error message */ public $lasterror; diff --git a/htdocs/core/modules/printing/printgcp.modules.php b/htdocs/core/modules/printing/printgcp.modules.php index a0e0d37d074..b32eece2e1a 100644 --- a/htdocs/core/modules/printing/printgcp.modules.php +++ b/htdocs/core/modules/printing/printgcp.modules.php @@ -320,14 +320,14 @@ class printing_printgcp extends PrintingDriver } /** - * Curl request + * Make a curl request * - * @param string $url url to hit - * @param array $postfields array of post fields - * @param string[] $headers array of http headers - * @return string response from curl + * @param string $url url to hit + * @param array $postfields array of post fields + * @param string[] $headers array of http headers + * @return string response from curl */ - private function makeCurl($url,$postfields=array(),$headers=array()) + private function makeCurl($url, $postfields=array(), $headers=array()) { // Curl Init $curl = curl_init($url); diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index eb469169b1e..6789abc3f54 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -110,7 +110,7 @@ function test_sql_and_script_inject($val, $type) } /** - * Security: Return true if OK, false otherwise. + * Return true if security check on parameters are OK, false otherwise. * * @param string $var Variable name * @param string $type 1=GET, 0=POST, 2=PHP_SELF