0.00% covered (danger)
@@ -514,45 +535,71 @@
| } |
| |
| |
-
| |
-
| |
-
| |
-
| |
-
| |
-
| |
-
| |
-
| |
-
| |
-
| public static function frDate($date){ |
-
| |
-
| |
-
| |
-
| $days = array("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"); |
-
| |
-
| $months = array("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"); |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| public static function formatNumber($number){ |
+
| |
+
| $number = (string) $number; |
+
| |
+
| |
+
| $number = str_replace(' ', '', $number); |
| |
-
| |
-
| |
-
| $time = strtotime($date); |
-
| $daynum = intval( date('N', $time)-1 ); |
-
| $monthnum = intval( date('n', $time)-1 ); |
-
| |
-
| |
-
| |
-
| |
-
| $result = array( |
-
| $days[$daynum], |
-
| date('j', $time), |
-
| $months[$monthnum], |
-
| date('Y', $time), |
-
| ); |
-
| |
-
| |
-
| return implode(" ", $result); |
-
| } |
-
| |
-
| } |
-
| ?> |
+
| |
+
| if( preg_match("/^(?:\+33|0?0?33|0)(.+)/", $number, $m) ) |
+
| $number = '0'.$m[1]; |
+
| |
+
| |
+
| return $number; |
+
| } |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| |
+
| public static function frDate($date){ |
+
| |
+
| |
+
| |
+
| $days = array("Lundi", "Mardi", "Mercredi", "Jeudi", "Vendredi", "Samedi", "Dimanche"); |
+
| |
+
| $months = array("Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"); |
+
| |
+
| |
+
| |
+
| $time = strtotime($date); |
+
| $daynum = intval( date('N', $time)-1 ); |
+
| $monthnum = intval( date('n', $time)-1 ); |
+
| |
+
| |
+
| |
+
| |
+
| $result = array( |
+
| $days[$daynum], |
+
| date('j', $time), |
+
| $months[$monthnum], |
+
| date('Y', $time), |
+
| ); |
+
| |
+
| |
+
| return implode(" ", $result); |
+
| } |
+
| |
+
| } |
+
| ?> |
@@ -565,7 +612,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Mon Apr 18 17:06:21 UTC 2016.
+ Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Mon Apr 18 20:36:30 UTC 2016.
diff --git a/phpunit/coverage/ManagerError.php.html b/phpunit/coverage/ManagerError.php.html
index e1cc099..6051d52 100755
--- a/phpunit/coverage/ManagerError.php.html
+++ b/phpunit/coverage/ManagerError.php.html
@@ -247,7 +247,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Mon Apr 18 17:06:21 UTC 2016.
+ Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Mon Apr 18 20:36:30 UTC 2016.
diff --git a/phpunit/coverage/ResourceDispatcher.php.html b/phpunit/coverage/ResourceDispatcher.php.html
index 93bd24b..9bb2f42 100755
--- a/phpunit/coverage/ResourceDispatcher.php.html
+++ b/phpunit/coverage/ResourceDispatcher.php.html
@@ -517,7 +517,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Mon Apr 18 17:06:21 UTC 2016.
+ Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Mon Apr 18 20:36:30 UTC 2016.
diff --git a/phpunit/coverage/autoloader.php.html b/phpunit/coverage/autoloader.php.html
index c91c9c1..eb4efed 100755
--- a/phpunit/coverage/autoloader.php.html
+++ b/phpunit/coverage/autoloader.php.html
@@ -214,7 +214,7 @@
Dead Code
- Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Mon Apr 18 17:06:21 UTC 2016.
+ Generated by PHP_CodeCoverage 2.1.7 using PHP 5.6.11-1ubuntu3.1 and PHPUnit 4.7.6 at Mon Apr 18 20:36:30 UTC 2016.
diff --git a/phpunit/coverage/index.html b/phpunit/coverage/index.html
index c7cb0bc..fc1de51 100755
--- a/phpunit/coverage/index.html
+++ b/phpunit/coverage/index.html
@@ -43,21 +43,21 @@
Total |
-
- 67.67% covered (warning)
+
+ 66.83% covered (warning)
|
- 67.67% |
- 270 / 399 |
+ 66.83% |
+ 270 / 404 |
-
- 45.45% covered (danger)
+
+ 44.44% covered (danger)
|
- 45.45% |
- 20 / 44 |
+ 44.44% |
+ 20 / 45 |
11.11% covered (danger)
@@ -127,21 +127,21 @@
Database.php |
-
- 83.33% covered (warning)
+
+ 78.65% covered (warning)
|
- 83.33% |
- 70 / 84 |
+ 78.65% |
+ 70 / 89 |
-
- 42.86% covered (danger)
+
+ 37.50% covered (danger)
|
- 42.86% |
- 3 / 7 |
+ 37.50% |
+ 3 / 8 |
| |