-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug] La commande de maj des commune ne dépends plus des fixtures #2109
Conversation
|
$codeCommune = $itemCodeCommune; | ||
$codeCommune = str_pad($codeCommune, 5, '0', \STR_PAD_LEFT); | ||
$zipCode = substr($codeCommune, 0, 2); | ||
if ('97' == $zipCode) { | ||
$zipCode = substr($codeCommune, 0, 3); | ||
} | ||
|
||
return $zipCode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pour le zipCode de la Corse c'est 2A et 2B voir du coté de https://github.com/MTES-MCT/histologe/blob/main/src/Service/Signalement/ZipcodeProvider.php
A moins que code Commune correspondent à code insee ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est bon j'ai ma réponse j'approuve
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK lecture et test !
$codeCommune = $itemCodeCommune; | ||
$codeCommune = str_pad($codeCommune, 5, '0', \STR_PAD_LEFT); | ||
$zipCode = substr($codeCommune, 0, 2); | ||
if ('97' == $zipCode) { | ||
$zipCode = substr($codeCommune, 0, 3); | ||
} | ||
|
||
return $zipCode; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
c'est bon j'ai ma réponse j'approuve
Ticket
#2107
Description
Fix de la commande update-communes afin qu'elle ne dépende plus du DoctrineFixtureBundle
Tests
make load-fixtures
make console app="update-communes"