@@ -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 |
@@ -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); |
@@ -83,6 +83,9 @@ |
||
| 83 | 83 | return 0; |
| 84 | 84 | } |
| 85 | 85 | |
| 86 | + /** |
|
| 87 | + * @param string $wbFile |
|
| 88 | + */ |
|
| 86 | 89 | private function getExportJsonCommand($bundlePath, $wbFile) |
| 87 | 90 | { |
| 88 | 91 | $exportJson = $this->genhelper->getExportJsonFile(); |
@@ -91,6 +91,9 @@ |
||
| 91 | 91 | return $this->render('PannelloAmministrazioneBundle:PannelloAmministrazione:index.html.twig', $twigparms); |
| 92 | 92 | } |
| 93 | 93 | |
| 94 | + /** |
|
| 95 | + * @param string $path |
|
| 96 | + */ |
|
| 94 | 97 | private function fixSlash($path) |
| 95 | 98 | { |
| 96 | 99 | return str_replace('\\', '\\\\', $path); |
@@ -15,6 +15,9 @@ discard block |
||
| 15 | 15 | private $apppaths; |
| 16 | 16 | private $pammutils; |
| 17 | 17 | |
| 18 | + /** |
|
| 19 | + * @param \Symfony\Component\DependencyInjection\ContainerInterface $container |
|
| 20 | + */ |
|
| 18 | 21 | public function __construct($container) |
| 19 | 22 | { |
| 20 | 23 | $this->container = $container; |
@@ -215,6 +218,9 @@ discard block |
||
| 215 | 218 | return $retmsg; |
| 216 | 219 | } |
| 217 | 220 | |
| 221 | + /** |
|
| 222 | + * @param string $path |
|
| 223 | + */ |
|
| 218 | 224 | private function cleanTemplatePath($path) |
| 219 | 225 | { |
| 220 | 226 | $fs = new Filesystem(); |
@@ -240,6 +246,9 @@ discard block |
||
| 240 | 246 | return $cmdoutput; |
| 241 | 247 | } |
| 242 | 248 | |
| 249 | + /** |
|
| 250 | + * @param string $env |
|
| 251 | + */ |
|
| 243 | 252 | public function clearcacheEnv($env) |
| 244 | 253 | { |
| 245 | 254 | $ret = $this->pammutils->clearcache($env); |
@@ -66,6 +66,9 @@ |
||
| 66 | 66 | return $retmsg; |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | + /** |
|
| 70 | + * @param string $view |
|
| 71 | + */ |
|
| 69 | 72 | public function generateFormWiew($bundlename, $entityform, $view) |
| 70 | 73 | { |
| 71 | 74 | $fs = new Filesystem(); |