Skip to content

Commit

Permalink
PSR2 FunctionClosingBrace
Browse files Browse the repository at this point in the history
  • Loading branch information
frederic34 committed Aug 29, 2018
1 parent 489e766 commit b03f400
Show file tree
Hide file tree
Showing 159 changed files with 32 additions and 269 deletions.
3 changes: 3 additions & 0 deletions dev/setup/codesniffer/ruleset.xml
Expand Up @@ -374,6 +374,9 @@
</rule>
<rule ref="PEAR.NamingConventions.ValidVariableName" />

<!--<rule ref="PSR2.Classes.ClassDeclaration" />-->
<rule ref="PSR2.Methods.FunctionClosingBrace" />

<!-- This is not in PSR2 -->
<rule ref="PEAR.NamingConventions.ValidVariableName.PrivateNoUnderscore">
<severity>0</severity>
Expand Down
1 change: 0 additions & 1 deletion dev/translation/autotranslator.class.php
Expand Up @@ -65,7 +65,6 @@ function __construct($_destlang,$_refLang,$_langDir,$_limittofile,$_apikey)
//ini_set('default_charset','UTF-8');
ini_set('default_charset',$this->_outputpagecode);
$this->parse_refLangTranslationFiles();

}

/**
Expand Down
Expand Up @@ -117,7 +117,6 @@ function assign_values(&$action, $id)
{
$this->LoadListDatas($limit, $offset, $sortfield, $sortorder);
}

}


Expand Down
2 changes: 0 additions & 2 deletions htdocs/adherents/class/adherent.class.php
Expand Up @@ -690,7 +690,6 @@ function update_end_date($user)
$this->db->rollback();
return -1;
}

}

/**
Expand Down Expand Up @@ -2107,7 +2106,6 @@ function load_state_board()
$this->error=$this->db->error();
return -1;
}

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/admin/tools/eaccelerator.php
Expand Up @@ -181,7 +181,6 @@ function create_script_table($list)
print '</tr>';
}
print '</table>';

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/api/class/api_access.class.php
Expand Up @@ -196,6 +196,5 @@ public static function verifyAccess(array $m)
return $requires
? static::$role == 'admin' || in_array(static::$role, (array) $requires)
: true;

}
}
8 changes: 0 additions & 8 deletions htdocs/blockedlog/class/authority.class.php
Expand Up @@ -54,7 +54,6 @@ public function __construct($db)
{

$this->db = $db;

}

/**
Expand Down Expand Up @@ -90,7 +89,6 @@ public function getBlockchainHash()
{

return md5($this->signature.$this->blockchain);

}

/**
Expand All @@ -103,7 +101,6 @@ public function checkBlockchain($hash)
{

return ($hash === $this->getBlockchainHash() );

}

/**
Expand All @@ -116,7 +113,6 @@ public function addBlock($block)
{

$this->blockchain.=$block;

}

/**
Expand Down Expand Up @@ -197,7 +193,6 @@ public function fetch($id, $signature='')
$this->error=$this->db->error();
return -1;
}

}

/**
Expand Down Expand Up @@ -252,7 +247,6 @@ public function create($user)
$this->db->rollback();
return -1;
}

}

/**
Expand Down Expand Up @@ -291,7 +285,6 @@ public function update($user)
$this->db->rollback();
return -1;
}

}

/**
Expand Down Expand Up @@ -340,5 +333,4 @@ public function syncSignatureWithAuthority()

return 1;
}

}
4 changes: 0 additions & 4 deletions htdocs/blockedlog/class/blockedlog.class.php
Expand Up @@ -283,7 +283,6 @@ public function getObjectLink()
}

return '<i class="opacitymedium">'.$langs->trans('ImpossibleToReloadObject', $this->element, $this->fk_object).'</i>';

}

/**
Expand Down Expand Up @@ -676,7 +675,6 @@ public function fetch($id)
$this->error=$this->db->error();
return -1;
}

}


Expand Down Expand Up @@ -716,8 +714,6 @@ public function setCertified()
if($res===false) return false;

return true;


}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/bookmarks/class/bookmark.class.php
Expand Up @@ -226,7 +226,6 @@ function remove($id)
$this->error=$this->db->lasterror();
return -1;
}

}

/**
Expand Down
13 changes: 0 additions & 13 deletions htdocs/cashdesk/class/Facturation.class.php
Expand Up @@ -167,7 +167,6 @@ public function ajoutArticle()
$_SESSION['poscart']=$newcartarray;

$this->raz();

}

/**
Expand Down Expand Up @@ -269,7 +268,6 @@ private function razPers()
$this->prixTotalHt('RESET');
$this->montantTva('RESET');
$this->prixTotalTtc('RESET');

}


Expand Down Expand Up @@ -324,7 +322,6 @@ public function ref($aRef=null)
{
$this->ref = $aRef;
}

}

/**
Expand All @@ -348,7 +345,6 @@ public function qte($aQte=null)
{
$this->qte = $aQte;
}

}

/**
Expand All @@ -372,7 +368,6 @@ public function stock($aStock=null)
{
$this->stock = $aStock;
}

}

/**
Expand All @@ -396,7 +391,6 @@ public function remisePercent($aRemisePercent=null)
{
$this->remise_percent = $aRemisePercent;
}

}

/**
Expand All @@ -421,7 +415,6 @@ public function montantRemise($aMontantRemise=null)
$this->montant_remise = $aMontantRemise;

}

}

/**
Expand All @@ -446,7 +439,6 @@ public function prix($aPrix=null)
$this->prix = $aPrix;

}

}

/**
Expand All @@ -470,7 +462,6 @@ public function tva($aTva=null)
$this->tva = $aTva;

}

}

/**
Expand Down Expand Up @@ -518,7 +509,6 @@ public function getSetPaymentMode($aModeReglement=null)
$this->mode_reglement = $aModeReglement;

}

}

/**
Expand All @@ -543,7 +533,6 @@ public function montantEncaisse($aMontantEncaisse=null)
$this->montant_encaisse = $aMontantEncaisse;

}

}

/**
Expand All @@ -567,7 +556,6 @@ public function montantRendu($aMontantRendu=null)
$this->montant_rendu = $aMontantRendu;

}

}

/**
Expand Down Expand Up @@ -637,7 +625,6 @@ public function montantTva($aMontantTva=null)
$this->montant_tva = $aMontantTva;

}

}

/**
Expand Down
2 changes: 0 additions & 2 deletions htdocs/comm/action/class/actioncomm.class.php
Expand Up @@ -437,7 +437,6 @@ public function create(User $user, $notrigger = 0)
$this->error=$this->db->lasterror();
return -1;
}

}

/**
Expand Down Expand Up @@ -648,7 +647,6 @@ function fetch($id, $ref='',$ref_ext='')
}

return $num;

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/comm/action/class/api_agendaevents.class.php
Expand Up @@ -293,7 +293,6 @@ function delete($id)
'message' => 'Agenda Event deleted'
)
);

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/comm/action/class/ical.class.php
Expand Up @@ -44,7 +44,6 @@ class ICal
*/
public function __construct()
{

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/comm/mailing/class/mailing.class.php
Expand Up @@ -93,7 +93,6 @@ function __construct($db)
$this->statut_dest[1] = 'MailingStatusSent';
$this->statut_dest[2] = 'MailingStatusRead';
$this->statut_dest[3] = 'MailingStatusReadAndUnsubscribe'; // Read but ask to not be contacted anymore

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/comm/propal/class/api_proposals.class.php
Expand Up @@ -491,7 +491,6 @@ function delete($id)
'message' => 'Commercial Proposal deleted'
)
);

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/commande/class/api_orders.class.php
Expand Up @@ -473,7 +473,6 @@ function delete($id)
'message' => 'Order deleted'
)
);

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/commande/class/commande.class.php
Expand Up @@ -3411,7 +3411,6 @@ function LibStatut($statut,$billed,$mode,$donotshowbilled=0)
if ($statut==self::STATUS_CLOSED && ($billed && empty($conf->global->WORKFLOW_BILL_ON_SHIPMENT))) return '<span class="hideonsmartphone">'.$langs->trans('StatusOrderProcessed').$billedtext.' </span>'.img_picto($langs->trans('StatusOrderProcessed').$billedtext,'statut6');
if ($statut==self::STATUS_CLOSED && (! empty($conf->global->WORKFLOW_BILL_ON_SHIPMENT))) return '<span class="hideonsmartphone">'.$langs->trans('StatusOrderDelivered').' </span>'.img_picto($langs->trans('StatusOrderDelivered'),'statut6');
}

}


Expand Down
3 changes: 0 additions & 3 deletions htdocs/compta/bank/class/account.class.php
Expand Up @@ -1170,7 +1170,6 @@ function solde($option=0)
}

return $solde;

}

/**
Expand Down Expand Up @@ -1513,7 +1512,6 @@ function needIBAN()
*/
function info($id)
{

}

/**
Expand Down Expand Up @@ -1558,7 +1556,6 @@ public function getFieldsToShow($includeibanbic=0)

//Get the order the properties are shown
return $fieldarray;

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/compta/deplacement/class/deplacement.class.php
Expand Up @@ -154,7 +154,6 @@ function create($user)
$this->db->rollback();
return -1;
}

}

/**
Expand Down
1 change: 0 additions & 1 deletion htdocs/compta/facture/class/facture-rec.class.php
Expand Up @@ -1858,7 +1858,6 @@ function update(User $user, $notrigger=0)
$this->db->rollback();
return -2;
}

}

}
1 change: 0 additions & 1 deletion htdocs/compta/facture/class/facture.class.php
Expand Up @@ -1551,7 +1551,6 @@ function fetchPreviousNextSituationInvoice()
}
}
}

}

/**
Expand Down
2 changes: 0 additions & 2 deletions htdocs/compta/paiement/class/cpaiement.class.php
Expand Up @@ -369,8 +369,6 @@ public function initAsSpecimen()
$this->active = '';
$this->accountancy_code = '';
$this->module = '';


}

}

0 comments on commit b03f400

Please sign in to comment.