@@ -4,6 +4,9 @@ |
||
| 4 | 4 | |
| 5 | 5 | class GrigliaColonneUtils |
| 6 | 6 | { |
| 7 | + /** |
|
| 8 | + * @param integer $indice |
|
| 9 | + */ |
|
| 7 | 10 | public static function getColonne(&$nomicolonne, &$modellocolonne, &$indice, $paricevuti) |
| 8 | 11 | { |
| 9 | 12 | $doctrine = GrigliaParametriUtils::getDoctrineByEm($paricevuti); |
@@ -17,6 +17,9 @@ |
||
| 17 | 17 | return $limit ? $limit : 1; |
| 18 | 18 | } |
| 19 | 19 | |
| 20 | + /** |
|
| 21 | + * @param integer $quanti |
|
| 22 | + */ |
|
| 20 | 23 | public static function prepareQuery($parametri, &$q, &$sidx, &$sord, &$page, &$limit, &$quanti) |
| 21 | 24 | { |
| 22 | 25 | $output = GrigliaParametriUtils::getOuputType($parametri); |
@@ -10,7 +10,6 @@ |
||
| 10 | 10 | * naturale. |
| 11 | 11 | * |
| 12 | 12 | * @param array $parametri |
| 13 | - * @param stringa $filtri |
|
| 14 | 13 | * |
| 15 | 14 | * @return string |
| 16 | 15 | */ |
@@ -2,7 +2,6 @@ |
||
| 2 | 2 | |
| 3 | 3 | namespace Fi\CoreBundle\DependencyInjection; |
| 4 | 4 | |
| 5 | -use Fi\CoreBundle\Controller\GestionepermessiController; |
|
| 6 | 5 | use Fi\CoreBundle\Controller\FiUtilita; |
| 7 | 6 | |
| 8 | 7 | class GrigliaRegoleUtils |
@@ -137,6 +137,9 @@ discard block |
||
| 137 | 137 | self::$postcarattere['ge'] = ''; |
| 138 | 138 | } |
| 139 | 139 | |
| 140 | + /** |
|
| 141 | + * @param string $output |
|
| 142 | + */ |
|
| 140 | 143 | public static function getCampiEsclusi($riga, $output) |
| 141 | 144 | { |
| 142 | 145 | $campoescluso = null; |
@@ -283,8 +286,6 @@ discard block |
||
| 283 | 286 | * Translates a string with underscores into camel case (e.g. first_name -> firstName). |
| 284 | 287 | * |
| 285 | 288 | * @param array $parametri |
| 286 | - * @param string $str String in underscore format |
|
| 287 | - * @param bool $primamaiuscola If true, capitalise the first char in $str |
|
| 288 | 289 | * |
| 289 | 290 | * @return string $str translated into camel caps |
| 290 | 291 | */ |
@@ -6,8 +6,6 @@ discard block |
||
| 6 | 6 | { |
| 7 | 7 | /** |
| 8 | 8 | * @param array $parametri |
| 9 | - * @param string $parametri["elemento"] l'elemento da confrontare |
|
| 10 | - * @param array $parameti["elenco"] l'elenco degli elementi con cui effettuare il confronto |
|
| 11 | 9 | * |
| 12 | 10 | * @return array |
| 13 | 11 | */ |
@@ -41,9 +39,6 @@ discard block |
||
| 41 | 39 | * (con un parametro di tolleranza) allora la percentuale si alza. |
| 42 | 40 | * |
| 43 | 41 | * @param array $parametri |
| 44 | - * @param string $parametri["stringaa"] prima stringa da confrontare |
|
| 45 | - * @param string $parametri["stringab"] seconda stringa da confrontare |
|
| 46 | - * @param int $parametri["tolleranza"] numero di posizioni prima e dopo in cui cercare |
|
| 47 | 42 | * |
| 48 | 43 | * @return int |
| 49 | 44 | */ |
@@ -76,16 +71,26 @@ discard block |
||
| 76 | 71 | return $perc; |
| 77 | 72 | } |
| 78 | 73 | |
| 74 | + /** |
|
| 75 | + * @param integer $i |
|
| 76 | + * @param integer $strlensa |
|
| 77 | + */ |
|
| 79 | 78 | private function getCarattereAPercentualeConfrontoStringhe($i, $stringaa, $strlensa) |
| 80 | 79 | { |
| 81 | 80 | return $strlensa >= $i ? substr($stringaa, $i, 1) : false; |
| 82 | 81 | } |
| 83 | 82 | |
| 83 | + /** |
|
| 84 | + * @param integer $i |
|
| 85 | + */ |
|
| 84 | 86 | private function getOffsetPercentualeConfrontoStringhe($i, $tolleranzauno) |
| 85 | 87 | { |
| 86 | 88 | return (($i - $tolleranzauno) >= 0) ? ($i - $tolleranzauno) : 0; |
| 87 | 89 | } |
| 88 | 90 | |
| 91 | + /** |
|
| 92 | + * @param integer $i |
|
| 93 | + */ |
|
| 89 | 94 | private function partecento($i, $posizioneinb, $tolleranzauno, $partecento) |
| 90 | 95 | { |
| 91 | 96 | if (!($posizioneinb === false)) { |
@@ -81,7 +81,7 @@ |
||
| 81 | 81 | /** |
| 82 | 82 | * Remove ffsecondarias. |
| 83 | 83 | * |
| 84 | - * @param \Fi\CoreBundle\Entity\Ffsecondaria $ffsecondarias |
|
| 84 | + * @param \Fi\CoreBundle\Entity\Ffsecondaria $Ffsecondarias |
|
| 85 | 85 | */ |
| 86 | 86 | public function removeFfsecondaria(\Fi\CoreBundle\Entity\Ffsecondaria $Ffsecondarias) |
| 87 | 87 | { |
@@ -48,6 +48,9 @@ |
||
| 48 | 48 | $em->clear(); |
| 49 | 49 | } |
| 50 | 50 | |
| 51 | + /** |
|
| 52 | + * @return string |
|
| 53 | + */ |
|
| 51 | 54 | private function getValoreprecedenteImpostare($change) |
| 52 | 55 | { |
| 53 | 56 | if (is_object($change)) { |
@@ -63,6 +63,9 @@ |
||
| 63 | 63 | /* phpmd */ |
| 64 | 64 | } |
| 65 | 65 | |
| 66 | + /** |
|
| 67 | + * @param string $cmd |
|
| 68 | + */ |
|
| 66 | 69 | private function runcmd($cmd) |
| 67 | 70 | { |
| 68 | 71 | $process = new Process($cmd); |