Skip to content

Commit

Permalink
Scrutinizer Auto-Fixes
Browse files Browse the repository at this point in the history
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
  • Loading branch information
scrutinizer-auto-fixer committed Apr 7, 2015
1 parent c25af90 commit 918ed34
Show file tree
Hide file tree
Showing 12 changed files with 31 additions and 15 deletions.
6 changes: 6 additions & 0 deletions htdocs/core/filemanagerdol/connectors/php/commands.php
Expand Up @@ -22,6 +22,9 @@
* This is the File Manager Connector for PHP.
*/

/**
* @param string $currentFolder
*/
function GetFolders( $resourceType, $currentFolder )
{
// Map the virtual path to the local server path.
Expand Down Expand Up @@ -178,6 +181,9 @@ function CreateFolder( $resourceType, $currentFolder )

// DOL_CHANGE
//function FileUpload( $resourceType, $currentFolder, $sCommand )
/**
* @param string $currentFolder
*/
function FileUpload($resourceType, $currentFolder, $sCommand, $CKEcallback = '')
{
if (!isset($_FILES)) {
Expand Down
6 changes: 3 additions & 3 deletions htdocs/core/modules/contract/doc/pdf_strato.modules.php
Expand Up @@ -452,7 +452,7 @@ function _tableau(&$pdf, $tab_top, $tab_height, $nexY, $outputlangs, $hidetop=0,
* Show top header of page.
*
* @param PDF $pdf Object PDF
* @param Object $object Object to show
* @param CommonObject $object Object to show
* @param int $showaddress 0=no, 1=yes
* @param Translate $outputlangs Object lang for output
* @return void
Expand Down Expand Up @@ -631,10 +631,10 @@ function _pagehead(&$pdf, $object, $showaddress, $outputlangs)
* Show footer of page. Need this->emetteur object
*
* @param PDF $pdf PDF
* @param Object $object Object to show
* @param CommonObject $object Object to show
* @param Translate $outputlangs Object lang for output
* @param int $hidefreetext 1=Hide free text
* @return void
* @return integer
*/
function _pagefoot(&$pdf,$object,$outputlangs,$hidefreetext=0)
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/import/modules_import.php
Expand Up @@ -63,7 +63,7 @@ function __construct()
* Charge en memoire et renvoie la liste des modeles actifs
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
function liste_modeles($db,$maxfilenamelength=0)
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/mailings/contacts1.modules.php
Expand Up @@ -60,7 +60,7 @@ function __construct($db)
* array of SQL request that returns two field:
* One called "label", One called "nb".
*
* @return array Array with SQL requests
* @return string[] Array with SQL requests
*/
function getSqlArrayForStats()
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/mailings/fraise.modules.php
Expand Up @@ -63,7 +63,7 @@ function __construct($db)
* array of SQL request that returns two field:
* One called "label", One called "nb".
*
* @return array Array with SQL requests
* @return string[] Array with SQL requests
*/
function getSqlArrayForStats()
{
Expand Down
2 changes: 1 addition & 1 deletion htdocs/core/modules/product/modules_product.class.php
Expand Up @@ -105,7 +105,7 @@ function getVersion()
* Renvoi la liste des modeles de numérotation
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of numbers
*/
static function liste_modeles($db,$maxfilenamelength=0)
Expand Down
Expand Up @@ -105,7 +105,7 @@ function __construct($db)
/**
* Define array with couple substitution key => substitution value
*
* @param Object $object Main object to use as data source
* @param Project $object Main object to use as data source
* @param Translate $outputlangs Lang object to use for output
* @return array Array of substitution
*/
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/modules/propale/modules_propale.php
Expand Up @@ -43,7 +43,7 @@ abstract class ModelePDFPropales extends CommonDocGenerator
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
static function liste_modeles($db,$maxfilenamelength=0)
Expand Down Expand Up @@ -149,7 +149,7 @@ function getVersion()
* Create a document onto disk according to template module.
*
* @param DoliDB $db Database handler
* @param object $object Object proposal
* @param Propal $object Object proposal
* @param string $modele Force model to use ('' to not force)
* @param Translate $outputlangs Object langs to use for output
* @param int $hidedetails Hide details of lines
Expand Down
4 changes: 2 additions & 2 deletions htdocs/core/modules/societe/modules_societe.class.php
Expand Up @@ -39,7 +39,7 @@ abstract class ModeleThirdPartyDoc extends CommonDocGenerator
* Return list of active generation modules
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of templates
*/
static function liste_modeles($db,$maxfilenamelength=0)
Expand Down Expand Up @@ -142,7 +142,7 @@ function getVersion()
* Renvoi la liste des modeles de numéroation
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of numbers
*/
static function liste_modeles($db,$maxfilenamelength=0)
Expand Down
Expand Up @@ -41,7 +41,7 @@ abstract class ModelePDFSuppliersInvoices extends CommonDocGenerator
* Return list of active generation models
*
* @param DoliDB $db Database handler
* @param string $maxfilenamelength Max length of value to show
* @param integer $maxfilenamelength Max length of value to show
* @return array List of numbers
*/
static function liste_modeles($db,$maxfilenamelength=0)
Expand Down
10 changes: 10 additions & 0 deletions htdocs/paypal/lib/paypal.lib.php
Expand Up @@ -436,6 +436,16 @@ function print_paypal_redirect($paymentAmount,$currencyCodeType,$paymentType,$re
' desc: Product description
'--------------------------------------------------------------------------------------------------------------------------------------------
*/
/**
* @param double $paymentAmount
* @param string $currencyCodeType
* @param string $paymentType
* @param string $returnURL
* @param string $cancelURL
* @param string $tag
* @param string $solutionType
* @param string $landingPage
*/
function callSetExpressCheckout($paymentAmount, $currencyCodeType, $paymentType, $returnURL, $cancelURL, $tag, $solutionType, $landingPage, $shipToName, $shipToStreet, $shipToCity, $shipToState, $shipToCountryCode, $shipToZip, $shipToStreet2, $phoneNum, $email='', $desc='')
{
//------------------------------------------------------------------------------------------------------------------------------------
Expand Down
4 changes: 2 additions & 2 deletions htdocs/projet/class/task.class.php
Expand Up @@ -1331,7 +1331,7 @@ function createFromClone($fromid,$project_id,$parent_task_id,$clone_change_dt=fa
/**
* Return status label of object
*
* @param string $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @param integer $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @return string Label
*/
function getLibStatut($mode=0)
Expand All @@ -1343,7 +1343,7 @@ function getLibStatut($mode=0)
* Return status label for an object
*
* @param int $statut Id statut
* @param string $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @param integer $mode 0=long label, 1=short label, 2=Picto + short label, 3=Picto, 4=Picto + long label, 5=Short label + Picto
* @return string Label
*/
function LibStatut($statut,$mode=0)
Expand Down

0 comments on commit 918ed34

Please sign in to comment.