0.00% covered (danger)
@@ -71,21 +71,21 @@
repos |
-
- 92.73% covered (success)
+
+ 95.24% covered (success)
|
- 92.73% |
- 153 / 165 |
+ 95.24% |
+ 160 / 168 |
-
- 68.18% covered (warning)
+
+ 72.73% covered (warning)
|
- 68.18% |
- 15 / 22 |
+ 72.73% |
+ 16 / 22 |
diff --git a/coverage/repos/MedecinRepo.php.html b/coverage/repos/MedecinRepo.php.html
index 644839d..04424d7 100755
--- a/coverage/repos/MedecinRepo.php.html
+++ b/coverage/repos/MedecinRepo.php.html
@@ -318,7 +318,7 @@
Dead Code
- Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.0 and PHPUnit 5.1.0 at Thu Dec 10 10:46:08 UTC 2015.
+ Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.0 and PHPUnit 5.1.0 at Thu Dec 10 10:51:32 UTC 2015.
diff --git a/coverage/repos/PatientRepo.php.html b/coverage/repos/PatientRepo.php.html
index 590790d..b2e260e 100755
--- a/coverage/repos/PatientRepo.php.html
+++ b/coverage/repos/PatientRepo.php.html
@@ -385,7 +385,7 @@
Dead Code
- Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.0 and PHPUnit 5.1.0 at Thu Dec 10 10:46:08 UTC 2015.
+ Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.0 and PHPUnit 5.1.0 at Thu Dec 10 10:51:32 UTC 2015.
diff --git a/coverage/repos/RDVRepo.php.html b/coverage/repos/RDVRepo.php.html
index 2967ba9..e1fa590 100755
--- a/coverage/repos/RDVRepo.php.html
+++ b/coverage/repos/RDVRepo.php.html
@@ -52,22 +52,22 @@
0.00% |
0 / 1 |
-
- 57.14% covered (warning)
+
+ 71.43% covered (warning)
|
- 57.14% |
- 4 / 7 |
+ 71.43% |
+ 5 / 7 |
CRAP |
-
-
- 85.11% covered (warning)
+
+
+ 94.00% covered (success)
|
- 85.11% |
- 40 / 47 |
+ 94.00% |
+ 47 / 50 |
| |
@@ -81,22 +81,22 @@
0.00% |
0 / 1 |
-
- 57.14% covered (warning)
+
+ 71.43% covered (warning)
|
- 57.14% |
- 4 / 7 |
- 19.07 |
-
-
- 85.11% covered (warning)
+ 71.43% |
+ 5 / 7 |
+ 22.10 |
+
+
+ 94.00% covered (success)
|
- 85.11% |
- 40 / 47 |
+ 94.00% |
+ 47 / 50 |
|
@@ -121,24 +121,24 @@
- getByDate |
-
-
- 0.00% covered (danger)
+ getByDate |
+
+
+ 100.00% covered (success)
|
- 0.00% |
- 0 / 1 |
- 4.05 |
-
-
- 20.00% covered (danger)
+ 100.00% |
+ 1 / 1 |
+ 2 |
+
+
+ 100.00% covered (success)
|
- 20.00% |
- 1 / 5 |
+ 100.00% |
+ 5 / 5 |
| |
@@ -193,28 +193,7 @@
100.00% |
1 / 1 |
- 1 |
-
-
- 100.00% covered (success)
-
-
- |
- 100.00% |
- 4 / 4 |
-
-
-
- getByPatientAndDate |
-
-
- 100.00% covered (success)
-
-
- |
- 100.00% |
- 1 / 1 |
- 1 |
+ 2 |
100.00% covered (success)
@@ -226,7 +205,28 @@
|
- getAll |
+ getByPatientAndDate |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 1 / 1 |
+ 3 |
+
+
+ 100.00% covered (success)
+
+
+ |
+ 100.00% |
+ 6 / 6 |
+
+
+
+ getAll |
0.00% covered (danger)
@@ -235,15 +235,15 @@
|
0.00% |
0 / 1 |
- 4.05 |
+ 5.06 |
-
- 85.71% covered (warning)
+
+ 86.67% covered (warning)
|
- 85.71% |
- 12 / 14 |
+ 86.67% |
+ 13 / 15 |
@@ -274,12 +274,12 @@
| |
| public static function getByDate($date){ |
| |
-
| if(!StaticRepo::checkParam($date,'Date')){return false;} |
+
| if(!StaticRepo::checkParam($date,'Date')){return false;} |
| |
-
| $date = date('Y-m-d',strtotime($date)); |
-
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) = :date ORDER BY DateRDV ASC'); |
-
| $req->execute(['date' => $date]); |
-
| return StaticRepo::delNumeric($req->fetchAll()); |
+
| $date = date('Y-m-d',strtotime($date)); |
+
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) = :date ORDER BY DateRDV ASC'); |
+
| $req->execute(['date' => $date]); |
+
| return StaticRepo::delNumeric($req->fetchAll()); |
| } |
| |
| public static function delete($idRDV){ |
@@ -310,40 +310,49 @@
| } |
| |
| public static function updateDateTime($idRDV,$dateTime){ |
-
| $date = date('Y-m-d H:i:s',strtotime($dateTime)); |
-
| $req = StaticRepo::getConnexion()->prepare('UPDATE RDV SET DateRDV = :date WHERE id = :id'); |
-
| return $req->execute(['date' => $date, |
-
| 'id' => $idRDV]); |
-
| } |
-
| |
-
| public static function getByPatientAndDate($idPatient,$date){ |
-
| $date = date('Y-m-d',strtotime($date)); |
-
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE Patient_Id=:patient AND DATE(DateRDV)=:date'); |
-
| $req->execute(['patient' => $idPatient, |
-
| 'date' => $date]); |
-
| return StaticRepo::delNumeric($req->fetchAll()); |
-
| } |
-
| |
-
| public static function getAll($date = 0){ |
-
| $dateTime = date('Y-m-d',time()); |
-
| switch($date){ |
-
| case -1: |
-
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) <= :date ORDER BY DateRDV ASC'); |
-
| $req->execute(['date' => $dateTime]); |
-
| break; |
-
| case 0: |
-
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV ORDER BY DateRDV ASC'); |
-
| $req->execute(); |
-
| break; |
-
| case 1: |
-
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) >= :date ORDER BY DateRDV ASC'); |
-
| $req->execute(['date' => $dateTime]); |
-
| break; |
-
| } |
-
| return StaticRepo::delNumeric($req->fetchAll()); |
-
| } |
-
| |
-
| } |
+
| |
+
| if(!StaticRepo::checkParam($idRDV,'Integer')){return false;} |
+
| |
+
| $date = date('Y-m-d H:i:s',strtotime($dateTime)); |
+
| $req = StaticRepo::getConnexion()->prepare('UPDATE RDV SET DateRDV = :date WHERE id = :id'); |
+
| return $req->execute(['date' => $date, |
+
| 'id' => $idRDV]); |
+
| } |
+
| |
+
| public static function getByPatientAndDate($idPatient,$date){ |
+
| |
+
| if(!StaticRepo::checkParam($idPatient,'Integer') && !StaticRepo::checkParam($date,'Date')){return false;} |
+
| |
+
| $date = date('Y-m-d',strtotime($date)); |
+
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE Patient_Id=:patient AND DATE(DateRDV)=:date'); |
+
| $req->execute(['patient' => $idPatient, |
+
| 'date' => $date]); |
+
| return StaticRepo::delNumeric($req->fetchAll()); |
+
| } |
+
| |
+
| public static function getAll($date = 0){ |
+
| |
+
| if(!StaticRepo::checkParam($date,'Integer')){return false;} |
+
| |
+
| $dateTime = date('Y-m-d',time()); |
+
| switch($date){ |
+
| case -1: |
+
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) <= :date ORDER BY DateRDV ASC'); |
+
| $req->execute(['date' => $dateTime]); |
+
| break; |
+
| case 0: |
+
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV ORDER BY DateRDV ASC'); |
+
| $req->execute(); |
+
| break; |
+
| case 1: |
+
| $req = StaticRepo::getConnexion()->prepare('SELECT * FROM RDV WHERE DATE(DateRDV) >= :date ORDER BY DateRDV ASC'); |
+
| $req->execute(['date' => $dateTime]); |
+
| break; |
+
| } |
+
| return StaticRepo::delNumeric($req->fetchAll()); |
+
| } |
+
| |
+
| } |
@@ -356,7 +365,7 @@
Dead Code
- Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.0 and PHPUnit 5.1.0 at Thu Dec 10 10:46:08 UTC 2015.
+ Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.0 and PHPUnit 5.1.0 at Thu Dec 10 10:51:32 UTC 2015.
diff --git a/coverage/repos/StatsRepo.php.html b/coverage/repos/StatsRepo.php.html
index dd23b07..797197a 100755
--- a/coverage/repos/StatsRepo.php.html
+++ b/coverage/repos/StatsRepo.php.html
@@ -213,7 +213,7 @@
Dead Code
- Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.0 and PHPUnit 5.1.0 at Thu Dec 10 10:46:08 UTC 2015.
+ Generated by PHP_CodeCoverage 3.0.2 using PHP 7.0.0 and PHPUnit 5.1.0 at Thu Dec 10 10:51:32 UTC 2015.
diff --git a/coverage/repos/dashboard.html b/coverage/repos/dashboard.html
index ce784c4..c1336f4 100755
--- a/coverage/repos/dashboard.html
+++ b/coverage/repos/dashboard.html
@@ -59,7 +59,6 @@