génération du calendrier SVG

This commit is contained in:
Lucas Mascaro 2015-12-26 13:22:06 +01:00
parent b1b1ec0c47
commit b59a27ec5c
14 changed files with 386 additions and 121 deletions

View File

@ -4,6 +4,8 @@ ini_set('display_errors',1);
ini_set('display_startup_errors',1);
error_reporting(-1);
setlocale (LC_TIME, 'fr_FR.utf8','fra');
/*
* fonction d'autoloading : prend en paramètre le nom de la classe et s'occupe d'inclure les fichiers correspondant aux classes
*/

View File

@ -201,13 +201,13 @@
<tr><td><div align="right"><a name="12"></a><a href="#12">12</a></div></td><td class="codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*&nbsp;@return&nbsp;PDO&nbsp;instance&nbsp;de&nbsp;la&nbsp;connexion&nbsp;a&nbsp;la&nbsp;BDD</span></td></tr>
<tr><td><div align="right"><a name="13"></a><a href="#13">13</a></div></td><td class="codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*/</span></td></tr>
<tr><td><div align="right"><a name="14"></a><a href="#14">14</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="21 tests cover line 15" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testGetConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testTestConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="default">&nbsp;</span><span class="default">==</span><span class="default">&nbsp;</span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="22 tests cover line 15" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testGetConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testTestConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="15"></a><a href="#15">15</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="default">&nbsp;</span><span class="default">==</span><span class="default">&nbsp;</span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 16" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="16"></a><a href="#16">16</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">json_decode</span><span class="keyword">(</span><span class="default">file_get_contents</span><span class="keyword">(</span><span class="default">dirname</span><span class="keyword">(</span><span class="default">__FILE__</span><span class="keyword">)</span><span class="keyword">.</span><span class="default">DIRECTORY_SEPARATOR</span><span class="keyword">.</span><span class="default">'config.json'</span><span class="keyword">)</span><span class="keyword">,</span><span class="default">true</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="17"></a><a href="#17">17</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="21 tests cover line 18" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testGetConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testTestConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="default">&nbsp;</span><span class="default">==</span><span class="default">&nbsp;</span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="22 tests cover line 18" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testGetConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testTestConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="18"></a><a href="#18">18</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="default">&nbsp;</span><span class="default">==</span><span class="default">&nbsp;</span><span class="default">null</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 19" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="19"></a><a href="#19">19</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="keyword">new</span><span class="default">&nbsp;</span><span class="default">PDO</span><span class="keyword">(</span><span class="default">'mysql:host='</span><span class="keyword">.</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'host'</span><span class="keyword">]</span><span class="keyword">.</span><span class="default">';dbname='</span><span class="keyword">.</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'database'</span><span class="keyword">]</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'login'</span><span class="keyword">]</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">::</span><span class="default">$config</span><span class="keyword">[</span><span class="default">'password'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="20"></a><a href="#20">20</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="21 tests cover line 21" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testGetConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testTestConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="22 tests cover line 21" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testGetConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testTestConnexion&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="21"></a><a href="#21">21</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">::</span><span class="default">$connexion</span><span class="keyword">;</span></td></tr>
<tr class="warning"><td><div align="right"><a name="22"></a><a href="#22">22</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="23"></a><a href="#23">23</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="24"></a><a href="#24">24</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/**</span></td></tr>
@ -230,21 +230,21 @@
<tr><td><div align="right"><a name="41"></a><a href="#41">41</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$oneDimension</span><span class="keyword">=</span><span class="default">false</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr><td><div align="right"><a name="42"></a><a href="#42">42</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>
<tr><td><div align="right"><a name="43"></a><a href="#43">43</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;cas&nbsp;&nbsp;fetch&nbsp;renvoie&nbsp;FALSE</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="18 tests cover line 44" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericOneDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">$fetchData</span><span class="default">&nbsp;</span><span class="default">===</span><span class="default">&nbsp;</span><span class="default">false</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">false</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="19 tests cover line 44" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericOneDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="44"></a><a href="#44">44</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">$fetchData</span><span class="default">&nbsp;</span><span class="default">===</span><span class="default">&nbsp;</span><span class="default">false</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">false</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="45"></a><a href="#45">45</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="46"></a><a href="#46">46</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/*&nbsp;[1]&nbsp;2&nbsp;dimensions</span></td></tr>
<tr><td><div align="right"><a name="47"></a><a href="#47">47</a></div></td><td class="codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;===============================================*/</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="18 tests cover line 48" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericOneDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="keyword">!</span><span class="default">$oneDimension</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="19 tests cover line 48" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericOneDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="48"></a><a href="#48">48</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="keyword">!</span><span class="default">$oneDimension</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr><td><div align="right"><a name="49"></a><a href="#49">49</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="50"></a><a href="#50">50</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;on&nbsp;supprime&nbsp;les&nbsp;doublons&nbsp;des&nbsp;entrées&nbsp;(indice&nbsp;numérique)</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="10 tests cover line 51" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">for</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">$i</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">0</span><span class="default">&nbsp;</span><span class="keyword">;</span><span class="default">&nbsp;</span><span class="default">$i</span><span class="default">&nbsp;</span><span class="keyword">&lt;</span><span class="default">&nbsp;</span><span class="default">count</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">;</span><span class="default">&nbsp;</span><span class="default">$i</span><span class="default">++</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="comment">//&nbsp;pour&nbsp;tout&nbsp;les&nbsp;utilisateurs</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="10 tests cover line 52" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">foreach</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="default">&nbsp;</span><span class="keyword">as</span><span class="default">&nbsp;</span><span class="default">$col</span><span class="default">&nbsp;</span><span class="default">=&gt;</span><span class="default">&nbsp;</span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">{</span><span class="default">&nbsp;&nbsp;</span><span class="comment">//&nbsp;pour&nbsp;toutes&nbsp;les&nbsp;entrées</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="11 tests cover line 51" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="51"></a><a href="#51">51</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">for</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">$i</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">0</span><span class="default">&nbsp;</span><span class="keyword">;</span><span class="default">&nbsp;</span><span class="default">$i</span><span class="default">&nbsp;</span><span class="keyword">&lt;</span><span class="default">&nbsp;</span><span class="default">count</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">;</span><span class="default">&nbsp;</span><span class="default">$i</span><span class="default">++</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="comment">//&nbsp;pour&nbsp;tout&nbsp;les&nbsp;utilisateurs</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="11 tests cover line 52" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="52"></a><a href="#52">52</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">foreach</span><span class="keyword">(</span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="default">&nbsp;</span><span class="keyword">as</span><span class="default">&nbsp;</span><span class="default">$col</span><span class="default">&nbsp;</span><span class="default">=&gt;</span><span class="default">&nbsp;</span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">{</span><span class="default">&nbsp;&nbsp;</span><span class="comment">//&nbsp;pour&nbsp;toutes&nbsp;les&nbsp;entrées</span></td></tr>
<tr><td><div align="right"><a name="53"></a><a href="#53">53</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="10 tests cover line 54" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="keyword">!</span><span class="default">mb_detect_encoding</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">'UTF-8'</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">)</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="11 tests cover line 54" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="54"></a><a href="#54">54</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="keyword">!</span><span class="default">mb_detect_encoding</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">'UTF-8'</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">)</span></td></tr>
<tr class="danger"><td><div align="right"><a name="55"></a><a href="#55">55</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">$col</span><span class="keyword">]</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">utf8_encode</span><span class="keyword">(</span><span class="default">$val</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="56"></a><a href="#56">56</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="10 tests cover line 57" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$col</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;si&nbsp;l'indice&nbsp;est&nbsp;un&nbsp;entier</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="10 tests cover line 58" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">unset</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">$col</span><span class="keyword">]</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="keyword">;</span><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;on&nbsp;le&nbsp;supprime</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="11 tests cover line 57" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="57"></a><a href="#57">57</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">is_int</span><span class="keyword">(</span><span class="default">$col</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;si&nbsp;l'indice&nbsp;est&nbsp;un&nbsp;entier</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="11 tests cover line 58" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="58"></a><a href="#58">58</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">unset</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">$fetchData</span><span class="keyword">[</span><span class="default">$i</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">$col</span><span class="keyword">]</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="keyword">;</span><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;on&nbsp;le&nbsp;supprime</span></td></tr>
<tr><td><div align="right"><a name="59"></a><a href="#59">59</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="60"></a><a href="#60">60</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="61"></a><a href="#61">61</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/*&nbsp;[2]&nbsp;1&nbsp;dimensions</span></td></tr>
@ -263,7 +263,7 @@
<tr><td><div align="right"><a name="74"></a><a href="#74">74</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="75"></a><a href="#75">75</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="76"></a><a href="#76">76</a></div></td><td class="codeLine"></td></tr>
<tr class="covered-by-large-tests popin" data-title="18 tests cover line 77" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericOneDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">$fetchData</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="19 tests cover line 77" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericOneDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testDelNumericTwoDimension&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testAgePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StatsRepoTest::testRDVStat&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="77"></a><a href="#77">77</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">$fetchData</span><span class="keyword">;</span></td></tr>
<tr class="warning"><td><div align="right"><a name="78"></a><a href="#78">78</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="79"></a><a href="#79">79</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="80"></a><a href="#80">80</a></div></td><td class="codeLine"></td></tr>
@ -291,24 +291,24 @@
<tr><td><div align="right"><a name="102"></a><a href="#102">102</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr><td><div align="right"><a name="103"></a><a href="#103">103</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/*&nbsp;[1]&nbsp;on&nbsp;vérifie&nbsp;que&nbsp;$dbtype&nbsp;est&nbsp;un&nbsp;String</span></td></tr>
<tr><td><div align="right"><a name="104"></a><a href="#104">104</a></div></td><td class="codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=============================================================*/</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 105" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="105"></a><a href="#105">105</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="keyword">!</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">false</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 105" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="105"></a><a href="#105">105</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="keyword">!</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">false</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="106"></a><a href="#106">106</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="107"></a><a href="#107">107</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="108"></a><a href="#108">108</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/*&nbsp;[2]&nbsp;Vérifications</span></td></tr>
<tr><td><div align="right"><a name="109"></a><a href="#109">109</a></div></td><td class="codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=============================================================*/</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 110" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="110"></a><a href="#110">110</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">true</span><span class="keyword">;</span><span class="default">&nbsp;</span><span class="comment">//&nbsp;contiendra&nbsp;VRAI&nbsp;si&nbsp;la&nbsp;vérification&nbsp;s'avère&nbsp;correcte</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 111" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$matches</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="keyword">[</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 112" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="112"></a><a href="#112">112</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$len</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">8</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 110" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="110"></a><a href="#110">110</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">true</span><span class="keyword">;</span><span class="default">&nbsp;</span><span class="comment">//&nbsp;contiendra&nbsp;VRAI&nbsp;si&nbsp;la&nbsp;vérification&nbsp;s'avère&nbsp;correcte</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 111" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$matches</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="keyword">[</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 112" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="112"></a><a href="#112">112</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$len</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">8</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="113"></a><a href="#113">113</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="114"></a><a href="#114">114</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//si&nbsp;on&nbsp;a&nbsp;un&nbsp;type&nbsp;scalairexlongueur,&nbsp;on&nbsp;traite</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 115" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="115"></a><a href="#115">115</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">preg_match_all</span><span class="keyword">(</span><span class="default">'/([A-Z][a-z]+)(\d+)/s'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$dbtype</span><span class="keyword">,</span><span class="default">$matches</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 115" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="115"></a><a href="#115">115</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="default">preg_match_all</span><span class="keyword">(</span><span class="default">'/([A-Z][a-z]+)(\d+)/s'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$dbtype</span><span class="keyword">,</span><span class="default">$matches</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="5 tests cover line 116" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="116"></a><a href="#116">116</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$dbtype</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">$matches</span><span class="keyword">[</span><span class="default">1</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">0</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="5 tests cover line 117" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="117"></a><a href="#117">117</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$len</span><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">$matches</span><span class="keyword">[</span><span class="default">2</span><span class="keyword">]</span><span class="keyword">[</span><span class="default">0</span><span class="keyword">]</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="118"></a><a href="#118">118</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="119"></a><a href="#119">119</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="120"></a><a href="#120">120</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">switch</span><span class="keyword">(</span><span class="default">$dbtype</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr><td><div align="right"><a name="121"></a><a href="#121">121</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">//&nbsp;[1]&nbsp;'M'&nbsp;/&nbsp;'F'&nbsp;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 122" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="122"></a><a href="#122">122</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">case</span><span class="default">&nbsp;</span><span class="default">'Civilite'</span><span class="keyword">:</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 122" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="122"></a><a href="#122">122</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">case</span><span class="default">&nbsp;</span><span class="default">'Civilite'</span><span class="keyword">:</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="4 tests cover line 123" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="123"></a><a href="#123">123</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="default">&amp;&amp;</span><span class="default">&nbsp;</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="default">&amp;&amp;</span><span class="default">&nbsp;</span><span class="default">in_array</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="keyword">[</span><span class="default">'M'</span><span class="keyword">,</span><span class="default">'F'</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="4 tests cover line 124" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="124"></a><a href="#124">124</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="125"></a><a href="#125">125</a></div></td><td class="codeLine"></td></tr>
@ -334,8 +334,8 @@
<tr class="covered-by-large-tests popin" data-title="1 test covers line 145" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="145"></a><a href="#145">145</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="146"></a><a href="#146">146</a></div></td><td class="codeLine"></td></tr>
<tr class="danger"><td><div align="right"><a name="147"></a><a href="#147">147</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">case</span><span class="default">&nbsp;</span><span class="default">'Date'</span><span class="keyword">:</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="5 tests cover line 148" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="148"></a><a href="#148">148</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="default">&amp;&amp;</span><span class="default">&nbsp;</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="default">&amp;&amp;</span><span class="default">&nbsp;</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">preg_match</span><span class="keyword">(</span><span class="default">'/\d{2}\/\d{2}\/\d{4}/'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="default">||</span><span class="default">&nbsp;</span><span class="default">preg_match</span><span class="keyword">(</span><span class="default">'/\d{4}-\d{2}-\d{2}/'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="default">||</span><span class="default">&nbsp;</span><span class="default">preg_match</span><span class="keyword">(</span><span class="default">'/\d{4}\/\d{2}\/\d{2}/'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="5 tests cover line 149" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="149"></a><a href="#149">149</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="6 tests cover line 148" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="148"></a><a href="#148">148</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="default">&amp;&amp;</span><span class="default">&nbsp;</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="default">&amp;&amp;</span><span class="default">&nbsp;</span><span class="keyword">(</span><span class="default">&nbsp;</span><span class="default">preg_match</span><span class="keyword">(</span><span class="default">'/\d{2}\/\d{2}\/\d{4}/'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="default">||</span><span class="default">&nbsp;</span><span class="default">preg_match</span><span class="keyword">(</span><span class="default">'/\d{4}-\d{2}-\d{2}/'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="default">||</span><span class="default">&nbsp;</span><span class="default">preg_match</span><span class="keyword">(</span><span class="default">'/\d{4}\/\d{2}\/\d{2}/'</span><span class="keyword">,</span><span class="default">&nbsp;</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="6 tests cover line 149" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="149"></a><a href="#149">149</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">break</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="150"></a><a href="#150">150</a></div></td><td class="codeLine"></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 151" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="151"></a><a href="#151">151</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">case</span><span class="default">&nbsp;</span><span class="default">'Heure'</span><span class="keyword">:</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 152" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="152"></a><a href="#152">152</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">$checker</span><span class="default">&nbsp;</span><span class="default">&amp;&amp;</span><span class="default">&nbsp;</span><span class="default">is_string</span><span class="keyword">(</span><span class="default">$variable</span><span class="keyword">)</span><span class="default">&nbsp;</span><span class="default">&amp;&amp;</span><span class="default">&nbsp;</span><span class="default">preg_match</span><span class="keyword">(</span><span class="default">'/(\d+):(\d+)/is'</span><span class="keyword">,</span><span class="default">$variable</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
@ -348,7 +348,7 @@
<tr><td><div align="right"><a name="159"></a><a href="#159">159</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="160"></a><a href="#160">160</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="comment">/*&nbsp;[3]&nbsp;On&nbsp;retourne&nbsp;le&nbsp;résultat&nbsp;de&nbsp;la&nbsp;vérif</span></td></tr>
<tr><td><div align="right"><a name="161"></a><a href="#161">161</a></div></td><td class="codeLine"><span class="comment">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;=============================================================*/</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="16 tests cover line 162" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="162"></a><a href="#162">162</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">$checker</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="17 tests cover line 162" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testAddAndDelete&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetPatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;MedecinRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testAddAndDeletePatient&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testSearch&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdateMedecinTraitant&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;PatientRepoTest::testUpdate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testAdd&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetById&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testUpdateTime&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByPAtientAndDate&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetAll&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;StaticRepoTest::testCheckParam&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="162"></a><a href="#162">162</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">$checker</span><span class="keyword">;</span></td></tr>
<tr><td><div align="right"><a name="163"></a><a href="#163">163</a></div></td><td class="codeLine"></td></tr>
<tr class="warning"><td><div align="right"><a name="164"></a><a href="#164">164</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="165"></a><a href="#165">165</a></div></td><td class="codeLine"></td></tr>
@ -368,7 +368,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
</footer>

View File

@ -59,7 +59,6 @@
</thead>
<tbody>
<tr><td><a href="StaticRepo.php.html#3">StaticRepo</a></td><td class="text-right">84%</td></tr>
<tr><td><a href="repos/RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">85%</td></tr>
</tbody>
</table>
@ -77,7 +76,6 @@
</thead>
<tbody>
<tr><td><a href="StaticRepo.php.html#3">StaticRepo</a></td><td class="text-right">49</td></tr>
<tr><td><a href="repos/RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">25</td></tr>
</tbody>
</table>
@ -115,7 +113,6 @@
</tr>
</thead>
<tbody>
<tr><td><a href="repos/RDVRepo.php.html#102"><abbr title="RDVRepo::getByMonth">getByMonth</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="StaticRepo.php.html#102"><abbr title="StaticRepo::checkParam">checkParam</abbr></a></td><td class="text-right">81%</td></tr>
<tr><td><a href="StaticRepo.php.html#41"><abbr title="StaticRepo::delNumeric">delNumeric</abbr></a></td><td class="text-right">85%</td></tr>
<tr><td><a href="repos/RDVRepo.php.html#80"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">86%</td></tr>
@ -138,7 +135,6 @@
<tbody>
<tr><td><a href="StaticRepo.php.html#102"><abbr title="StaticRepo::checkParam">checkParam</abbr></a></td><td class="text-right">34</td></tr>
<tr><td><a href="StaticRepo.php.html#41"><abbr title="StaticRepo::delNumeric">delNumeric</abbr></a></td><td class="text-right">10</td></tr>
<tr><td><a href="repos/RDVRepo.php.html#102"><abbr title="RDVRepo::getByMonth">getByMonth</abbr></a></td><td class="text-right">6</td></tr>
<tr><td><a href="repos/RDVRepo.php.html#80"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">5</td></tr>
<tr><td><a href="repos/MedecinRepo.php.html#22"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">5</td></tr>
@ -150,7 +146,7 @@
<footer>
<hr/>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
</footer>
</div>
@ -171,7 +167,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,2,3,0], "Class Coverage"))
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,4,0], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@ -189,7 +185,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
.datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,4,4,18], "Method Coverage"))
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,4,4,19], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@ -239,7 +235,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
.datum(getComplexityData([[84.905660377358,43,"<a href=\"StaticRepo.php.html#3\">StaticRepo<\/a>"],[96.428571428571,15,"<a href=\"repos\/MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[97.435897435897,44,"<a href=\"repos\/PatientRepo.php.html#9\">PatientRepo<\/a>"],[85.454545454545,24,"<a href=\"repos\/RDVRepo.php.html#9\">RDVRepo<\/a>"],[92.307692307692,9,"<a href=\"repos\/StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
.datum(getComplexityData([[84.905660377358,43,"<a href=\"StaticRepo.php.html#3\">StaticRepo<\/a>"],[96.428571428571,15,"<a href=\"repos\/MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[97.435897435897,44,"<a href=\"repos\/PatientRepo.php.html#9\">PatientRepo<\/a>"],[94.642857142857,24,"<a href=\"repos\/RDVRepo.php.html#9\">RDVRepo<\/a>"],[92.307692307692,9,"<a href=\"repos\/StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@ -263,7 +259,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
.datum(getComplexityData([[100,3,"<a href=\"StaticRepo.php.html#14\">StaticRepo::getConnexion<\/a>"],[100,1,"<a href=\"StaticRepo.php.html#27\">StaticRepo::testConnexion<\/a>"],[85.714285714286,10,"<a href=\"StaticRepo.php.html#41\">StaticRepo::delNumeric<\/a>"],[81.818181818182,29,"<a href=\"StaticRepo.php.html#102\">StaticRepo::checkParam<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[88.888888888889,5,"<a href=\"repos\/MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#37\">MedecinRepo::delete<\/a>"],[100,3,"<a href=\"repos\/MedecinRepo.php.html#45\">MedecinRepo::search<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#56\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#68\">MedecinRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/PatientRepo.php.html#11\">PatientRepo::getById<\/a>"],[96.774193548387,17,"<a href=\"repos\/PatientRepo.php.html#20\">PatientRepo::add<\/a>"],[96.774193548387,16,"<a href=\"repos\/PatientRepo.php.html#74\">PatientRepo::update<\/a>"],[100,2,"<a href=\"repos\/PatientRepo.php.html#113\">PatientRepo::delete<\/a>"],[100,3,"<a href=\"repos\/PatientRepo.php.html#122\">PatientRepo::updateMedecinTraitant<\/a>"],[100,3,"<a href=\"repos\/PatientRepo.php.html#131\">PatientRepo::search<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#141\">PatientRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#22\">RDVRepo::getByDate<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#32\">RDVRepo::delete<\/a>"],[91.666666666667,6,"<a href=\"repos\/RDVRepo.php.html#40\">RDVRepo::add<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#59\">RDVRepo::updateDateTime<\/a>"],[100,3,"<a href=\"repos\/RDVRepo.php.html#69\">RDVRepo::getByPatientAndDate<\/a>"],[86.666666666667,5,"<a href=\"repos\/RDVRepo.php.html#80\">RDVRepo::getAll<\/a>"],[0,2,"<a href=\"repos\/RDVRepo.php.html#102\">RDVRepo::getByMonth<\/a>"],[91.304347826087,8,"<a href=\"repos\/StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"repos\/StatsRepo.php.html#48\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
.datum(getComplexityData([[100,3,"<a href=\"StaticRepo.php.html#14\">StaticRepo::getConnexion<\/a>"],[100,1,"<a href=\"StaticRepo.php.html#27\">StaticRepo::testConnexion<\/a>"],[85.714285714286,10,"<a href=\"StaticRepo.php.html#41\">StaticRepo::delNumeric<\/a>"],[81.818181818182,29,"<a href=\"StaticRepo.php.html#102\">StaticRepo::checkParam<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[88.888888888889,5,"<a href=\"repos\/MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#37\">MedecinRepo::delete<\/a>"],[100,3,"<a href=\"repos\/MedecinRepo.php.html#45\">MedecinRepo::search<\/a>"],[100,2,"<a href=\"repos\/MedecinRepo.php.html#56\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"repos\/MedecinRepo.php.html#68\">MedecinRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/PatientRepo.php.html#11\">PatientRepo::getById<\/a>"],[96.774193548387,17,"<a href=\"repos\/PatientRepo.php.html#20\">PatientRepo::add<\/a>"],[96.774193548387,16,"<a href=\"repos\/PatientRepo.php.html#74\">PatientRepo::update<\/a>"],[100,2,"<a href=\"repos\/PatientRepo.php.html#113\">PatientRepo::delete<\/a>"],[100,3,"<a href=\"repos\/PatientRepo.php.html#122\">PatientRepo::updateMedecinTraitant<\/a>"],[100,3,"<a href=\"repos\/PatientRepo.php.html#131\">PatientRepo::search<\/a>"],[100,1,"<a href=\"repos\/PatientRepo.php.html#141\">PatientRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#22\">RDVRepo::getByDate<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#32\">RDVRepo::delete<\/a>"],[91.666666666667,6,"<a href=\"repos\/RDVRepo.php.html#40\">RDVRepo::add<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#59\">RDVRepo::updateDateTime<\/a>"],[100,3,"<a href=\"repos\/RDVRepo.php.html#69\">RDVRepo::getByPatientAndDate<\/a>"],[86.666666666667,5,"<a href=\"repos\/RDVRepo.php.html#80\">RDVRepo::getAll<\/a>"],[100,2,"<a href=\"repos\/RDVRepo.php.html#102\">RDVRepo::getByMonth<\/a>"],[91.304347826087,8,"<a href=\"repos\/StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"repos\/StatsRepo.php.html#48\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);

View File

@ -43,21 +43,21 @@
<tr>
<td class="success">Total</td>
<td class="success big"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="91.25" aria-valuemin="0" aria-valuemax="100" style="width: 91.25%">
<span class="sr-only">91.25% covered (success)</span>
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.36" aria-valuemin="0" aria-valuemax="100" style="width: 93.36%">
<span class="sr-only">93.36% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">91.25%</div></td>
<td class="success small"><div align="right">219&nbsp;/&nbsp;240</div></td>
<td class="success small"><div align="right">93.36%</div></td>
<td class="success small"><div align="right">225&nbsp;/&nbsp;241</div></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="66.67" aria-valuemin="0" aria-valuemax="100" style="width: 66.67%">
<span class="sr-only">66.67% covered (warning)</span>
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="70.37" aria-valuemin="0" aria-valuemax="100" style="width: 70.37%">
<span class="sr-only">70.37% covered (warning)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">66.67%</div></td>
<td class="warning small"><div align="right">18&nbsp;/&nbsp;27</div></td>
<td class="warning small"><div align="right">70.37%</div></td>
<td class="warning small"><div align="right">19&nbsp;/&nbsp;27</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
@ -71,21 +71,21 @@
<tr>
<td class="success"><span class="glyphicon glyphicon-folder-open"></span> <a href="repos/index.html">repos</a></td>
<td class="success big"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.05" aria-valuemin="0" aria-valuemax="100" style="width: 93.05%">
<span class="sr-only">93.05% covered (success)</span>
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.74" aria-valuemin="0" aria-valuemax="100" style="width: 95.74%">
<span class="sr-only">95.74% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">93.05%</div></td>
<td class="success small"><div align="right">174&nbsp;/&nbsp;187</div></td>
<td class="success small"><div align="right">95.74%</div></td>
<td class="success small"><div align="right">180&nbsp;/&nbsp;188</div></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="69.57" aria-valuemin="0" aria-valuemax="100" style="width: 69.57%">
<span class="sr-only">69.57% covered (warning)</span>
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="73.91" aria-valuemin="0" aria-valuemax="100" style="width: 73.91%">
<span class="sr-only">73.91% covered (warning)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">69.57%</div></td>
<td class="warning small"><div align="right">16&nbsp;/&nbsp;23</div></td>
<td class="warning small"><div align="right">73.91%</div></td>
<td class="warning small"><div align="right">17&nbsp;/&nbsp;23</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
@ -136,7 +136,7 @@
<span class="success"><strong>High</strong>: 90% to 100%</span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
</footer>
</div>

View File

@ -318,7 +318,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
</footer>

View File

@ -412,7 +412,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
</footer>

View File

@ -52,22 +52,22 @@
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="62.50" aria-valuemin="0" aria-valuemax="100" style="width: 62.50%">
<span class="sr-only">62.50% covered (warning)</span>
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%">
<span class="sr-only">75.00% covered (warning)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">62.50%</div></td>
<td class="warning small"><div align="right">5&nbsp;/&nbsp;8</div></td>
<td class="warning small"><div align="right">75.00%</div></td>
<td class="warning small"><div align="right">6&nbsp;/&nbsp;8</div></td>
<td class="warning small"><abbr title="Change Risk Anti-Patterns (CRAP) Index">CRAP</abbr></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="85.45" aria-valuemin="0" aria-valuemax="100" style="width: 85.45%">
<span class="sr-only">85.45% covered (warning)</span>
<td class="success big"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.64" aria-valuemin="0" aria-valuemax="100" style="width: 94.64%">
<span class="sr-only">94.64% covered (success)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">85.45%</div></td>
<td class="warning small"><div align="right">47&nbsp;/&nbsp;55</div></td>
<td class="success small"><div align="right">94.64%</div></td>
<td class="success small"><div align="right">53&nbsp;/&nbsp;56</div></td>
</tr>
<tr>
@ -81,22 +81,22 @@
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="62.50" aria-valuemin="0" aria-valuemax="100" style="width: 62.50%">
<span class="sr-only">62.50% covered (warning)</span>
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%">
<span class="sr-only">75.00% covered (warning)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">62.50%</div></td>
<td class="warning small"><div align="right">5&nbsp;/&nbsp;8</div></td>
<td class="warning small">25.77</td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="85.45" aria-valuemin="0" aria-valuemax="100" style="width: 85.45%">
<span class="sr-only">85.45% covered (warning)</span>
<td class="warning small"><div align="right">75.00%</div></td>
<td class="warning small"><div align="right">6&nbsp;/&nbsp;8</div></td>
<td class="warning small">24.09</td>
<td class="success big"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.64" aria-valuemin="0" aria-valuemax="100" style="width: 94.64%">
<span class="sr-only">94.64% covered (success)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">85.45%</div></td>
<td class="warning small"><div align="right">47&nbsp;/&nbsp;55</div></td>
<td class="success small"><div align="right">94.64%</div></td>
<td class="success small"><div align="right">53&nbsp;/&nbsp;56</div></td>
</tr>
<tr>
@ -247,24 +247,24 @@
</tr>
<tr>
<td class="danger" colspan="4">&nbsp;<a href="#102"><abbr title="getByMonth($date)">getByMonth</abbr></a></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
<td class="success" colspan="4">&nbsp;<a href="#102"><abbr title="getByMonth($date)">getByMonth</abbr></a></td>
<td class="success big"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;1</div></td>
<td class="danger small">6</td>
<td class="danger big"> <div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">1&nbsp;/&nbsp;1</div></td>
<td class="success small">2</td>
<td class="success big"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="100.00" aria-valuemin="0" aria-valuemax="100" style="width: 100.00%">
<span class="sr-only">100.00% covered (success)</span>
</div>
</div>
</td>
<td class="danger small"><div align="right">0.00%</div></td>
<td class="danger small"><div align="right">0&nbsp;/&nbsp;5</div></td>
<td class="success small"><div align="right">100.00%</div></td>
<td class="success small"><div align="right">6&nbsp;/&nbsp;6</div></td>
</tr>
@ -375,15 +375,16 @@
<tr><td><div align="right"><a name="101"></a><a href="#101">101</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="102"></a><a href="#102">102</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">public</span><span class="default">&nbsp;</span><span class="keyword">static</span><span class="default">&nbsp;</span><span class="keyword">function</span><span class="default">&nbsp;</span><span class="default">getByMonth</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">{</span></td></tr>
<tr><td><div align="right"><a name="103"></a><a href="#103">103</a></div></td><td class="codeLine"></td></tr>
<tr class="danger"><td><div align="right"><a name="104"></a><a href="#104">104</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">!</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">,</span><span class="default">'Date'</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 104" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="104"></a><a href="#104">104</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">if</span><span class="keyword">(</span><span class="keyword">!</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">checkParam</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">,</span><span class="default">'Date'</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">{</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">false</span><span class="keyword">;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="105"></a><a href="#105">105</a></div></td><td class="codeLine"></td></tr>
<tr class="danger"><td><div align="right"><a name="106"></a><a href="#106">106</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$date</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="danger"><td><div align="right"><a name="107"></a><a href="#107">107</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$req</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-&gt;</span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT&nbsp;*&nbsp;FROM&nbsp;RDV&nbsp;WHERE&nbsp;DATE(DateRDV)&nbsp;=&nbsp;:date&nbsp;ORDER&nbsp;BY&nbsp;DateRDV&nbsp;ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="danger"><td><div align="right"><a name="108"></a><a href="#108">108</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$req</span><span class="default">-&gt;</span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'date'</span><span class="default">&nbsp;</span><span class="default">=&gt;</span><span class="default">&nbsp;</span><span class="default">$date</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="danger"><td><div align="right"><a name="109"></a><a href="#109">109</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-&gt;</span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="warning"><td><div align="right"><a name="110"></a><a href="#110">110</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="112"></a><a href="#112">112</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 106" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="106"></a><a href="#106">106</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$date</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y-m-d'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 107" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="107"></a><a href="#107">107</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$req</span><span class="default">&nbsp;</span><span class="keyword">=</span><span class="default">&nbsp;</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">getConnexion</span><span class="keyword">(</span><span class="keyword">)</span><span class="default">-&gt;</span><span class="default">prepare</span><span class="keyword">(</span><span class="default">'SELECT&nbsp;*&nbsp;FROM&nbsp;RDV&nbsp;WHERE&nbsp;MONTH(DateRDV)&nbsp;=&nbsp;:month&nbsp;AND&nbsp;YEAR(DateRDV)&nbsp;=&nbsp;:year&nbsp;ORDER&nbsp;BY&nbsp;DateRDV&nbsp;ASC'</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 108" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="108"></a><a href="#108">108</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">$req</span><span class="default">-&gt;</span><span class="default">execute</span><span class="keyword">(</span><span class="keyword">[</span><span class="default">'month'</span><span class="default">&nbsp;</span><span class="default">=&gt;</span><span class="default">&nbsp;</span><span class="default">date</span><span class="keyword">(</span><span class="default">'m'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">,</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 109" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="109"></a><a href="#109">109</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="default">'year'</span><span class="default">&nbsp;</span><span class="default">=&gt;</span><span class="default">&nbsp;</span><span class="default">date</span><span class="keyword">(</span><span class="default">'Y'</span><span class="keyword">,</span><span class="default">strtotime</span><span class="keyword">(</span><span class="default">$date</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">]</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="covered-by-large-tests popin" data-title="1 test covers line 110" data-content="&lt;ul&gt;&lt;li class=&quot;covered-by-large-tests&quot;&gt;RDVRepoTest::testGetByMonth&lt;/li&gt;&lt;/ul&gt;" data-placement="bottom" data-html="true"><td><div align="right"><a name="110"></a><a href="#110">110</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">return</span><span class="default">&nbsp;</span><span class="default">StaticRepo</span><span class="default">::</span><span class="default">delNumeric</span><span class="keyword">(</span><span class="default">$req</span><span class="default">-&gt;</span><span class="default">fetchAll</span><span class="keyword">(</span><span class="keyword">)</span><span class="keyword">)</span><span class="keyword">;</span></td></tr>
<tr class="warning"><td><div align="right"><a name="111"></a><a href="#111">111</a></div></td><td class="codeLine"><span class="default">&nbsp;&nbsp;&nbsp;&nbsp;</span><span class="keyword">}</span></td></tr>
<tr><td><div align="right"><a name="112"></a><a href="#112">112</a></div></td><td class="codeLine"></td></tr>
<tr><td><div align="right"><a name="113"></a><a href="#113">113</a></div></td><td class="codeLine"><span class="keyword">}</span></td></tr>
</tbody>
</table>
@ -396,7 +397,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
</footer>

View File

@ -213,7 +213,7 @@
<span class="warning"><strong>Dead Code</strong></span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
<a title="Back to the top" id="toplink" href="#"><span class="glyphicon glyphicon-arrow-up"></span></a>
</footer>

View File

@ -59,7 +59,6 @@
</tr>
</thead>
<tbody>
<tr><td><a href="RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">85%</td></tr>
</tbody>
</table>
@ -76,7 +75,6 @@
</tr>
</thead>
<tbody>
<tr><td><a href="RDVRepo.php.html#9">RDVRepo</a></td><td class="text-right">25</td></tr>
</tbody>
</table>
@ -114,7 +112,6 @@
</tr>
</thead>
<tbody>
<tr><td><a href="RDVRepo.php.html#102"><abbr title="RDVRepo::getByMonth">getByMonth</abbr></a></td><td class="text-right">0%</td></tr>
<tr><td><a href="RDVRepo.php.html#80"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">86%</td></tr>
<tr><td><a href="MedecinRepo.php.html#22"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">88%</td></tr>
@ -133,7 +130,6 @@
</tr>
</thead>
<tbody>
<tr><td><a href="RDVRepo.php.html#102"><abbr title="RDVRepo::getByMonth">getByMonth</abbr></a></td><td class="text-right">6</td></tr>
<tr><td><a href="RDVRepo.php.html#80"><abbr title="RDVRepo::getAll">getAll</abbr></a></td><td class="text-right">5</td></tr>
<tr><td><a href="MedecinRepo.php.html#22"><abbr title="MedecinRepo::add">add</abbr></a></td><td class="text-right">5</td></tr>
@ -145,7 +141,7 @@
<footer>
<hr/>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
</footer>
</div>
@ -166,7 +162,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#classCoverageDistribution svg')
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,1,3,0], "Class Coverage"))
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,0,4,0], "Class Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@ -184,7 +180,7 @@ $(document).ready(function() {
.yAxis.tickFormat(d3.format('d'));
d3.select('#methodCoverageDistribution svg')
.datum(getCoverageDistributionData([1,0,0,0,0,0,0,0,0,2,4,16], "Method Coverage"))
.datum(getCoverageDistributionData([0,0,0,0,0,0,0,0,0,2,4,17], "Method Coverage"))
.transition().duration(500).call(chart);
nv.utils.windowResize(chart.update);
@ -234,7 +230,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Cyclomatic Complexity');
d3.select('#classComplexity svg')
.datum(getComplexityData([[96.428571428571,15,"<a href=\"MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[97.435897435897,44,"<a href=\"PatientRepo.php.html#9\">PatientRepo<\/a>"],[85.454545454545,24,"<a href=\"RDVRepo.php.html#9\">RDVRepo<\/a>"],[92.307692307692,9,"<a href=\"StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
.datum(getComplexityData([[96.428571428571,15,"<a href=\"MedecinRepo.php.html#9\">MedecinRepo<\/a>"],[97.435897435897,44,"<a href=\"PatientRepo.php.html#9\">PatientRepo<\/a>"],[94.642857142857,24,"<a href=\"RDVRepo.php.html#9\">RDVRepo<\/a>"],[92.307692307692,9,"<a href=\"StatsRepo.php.html#9\">StatsRepo<\/a>"]], 'Class Complexity'))
.transition()
.duration(500)
.call(chart);
@ -258,7 +254,7 @@ $(document).ready(function() {
chart.yAxis.axisLabel('Method Complexity');
d3.select('#methodComplexity svg')
.datum(getComplexityData([[100,2,"<a href=\"MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[88.888888888889,5,"<a href=\"MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,2,"<a href=\"MedecinRepo.php.html#37\">MedecinRepo::delete<\/a>"],[100,3,"<a href=\"MedecinRepo.php.html#45\">MedecinRepo::search<\/a>"],[100,2,"<a href=\"MedecinRepo.php.html#56\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#68\">MedecinRepo::getAll<\/a>"],[100,2,"<a href=\"PatientRepo.php.html#11\">PatientRepo::getById<\/a>"],[96.774193548387,17,"<a href=\"PatientRepo.php.html#20\">PatientRepo::add<\/a>"],[96.774193548387,16,"<a href=\"PatientRepo.php.html#74\">PatientRepo::update<\/a>"],[100,2,"<a href=\"PatientRepo.php.html#113\">PatientRepo::delete<\/a>"],[100,3,"<a href=\"PatientRepo.php.html#122\">PatientRepo::updateMedecinTraitant<\/a>"],[100,3,"<a href=\"PatientRepo.php.html#131\">PatientRepo::search<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#141\">PatientRepo::getAll<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#22\">RDVRepo::getByDate<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#32\">RDVRepo::delete<\/a>"],[91.666666666667,6,"<a href=\"RDVRepo.php.html#40\">RDVRepo::add<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#59\">RDVRepo::updateDateTime<\/a>"],[100,3,"<a href=\"RDVRepo.php.html#69\">RDVRepo::getByPatientAndDate<\/a>"],[86.666666666667,5,"<a href=\"RDVRepo.php.html#80\">RDVRepo::getAll<\/a>"],[0,2,"<a href=\"RDVRepo.php.html#102\">RDVRepo::getByMonth<\/a>"],[91.304347826087,8,"<a href=\"StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"StatsRepo.php.html#48\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
.datum(getComplexityData([[100,2,"<a href=\"MedecinRepo.php.html#12\">MedecinRepo::getById<\/a>"],[88.888888888889,5,"<a href=\"MedecinRepo.php.html#22\">MedecinRepo::add<\/a>"],[100,2,"<a href=\"MedecinRepo.php.html#37\">MedecinRepo::delete<\/a>"],[100,3,"<a href=\"MedecinRepo.php.html#45\">MedecinRepo::search<\/a>"],[100,2,"<a href=\"MedecinRepo.php.html#56\">MedecinRepo::getPatients<\/a>"],[100,1,"<a href=\"MedecinRepo.php.html#68\">MedecinRepo::getAll<\/a>"],[100,2,"<a href=\"PatientRepo.php.html#11\">PatientRepo::getById<\/a>"],[96.774193548387,17,"<a href=\"PatientRepo.php.html#20\">PatientRepo::add<\/a>"],[96.774193548387,16,"<a href=\"PatientRepo.php.html#74\">PatientRepo::update<\/a>"],[100,2,"<a href=\"PatientRepo.php.html#113\">PatientRepo::delete<\/a>"],[100,3,"<a href=\"PatientRepo.php.html#122\">PatientRepo::updateMedecinTraitant<\/a>"],[100,3,"<a href=\"PatientRepo.php.html#131\">PatientRepo::search<\/a>"],[100,1,"<a href=\"PatientRepo.php.html#141\">PatientRepo::getAll<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#12\">RDVRepo::getById<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#22\">RDVRepo::getByDate<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#32\">RDVRepo::delete<\/a>"],[91.666666666667,6,"<a href=\"RDVRepo.php.html#40\">RDVRepo::add<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#59\">RDVRepo::updateDateTime<\/a>"],[100,3,"<a href=\"RDVRepo.php.html#69\">RDVRepo::getByPatientAndDate<\/a>"],[86.666666666667,5,"<a href=\"RDVRepo.php.html#80\">RDVRepo::getAll<\/a>"],[100,2,"<a href=\"RDVRepo.php.html#102\">RDVRepo::getByMonth<\/a>"],[91.304347826087,8,"<a href=\"StatsRepo.php.html#12\">StatsRepo::getAgePatient<\/a>"],[100,1,"<a href=\"StatsRepo.php.html#48\">StatsRepo::getRDVStat<\/a>"]], 'Method Complexity'))
.transition()
.duration(500)
.call(chart);

View File

@ -44,21 +44,21 @@
<tr>
<td class="success">Total</td>
<td class="success big"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="93.05" aria-valuemin="0" aria-valuemax="100" style="width: 93.05%">
<span class="sr-only">93.05% covered (success)</span>
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="95.74" aria-valuemin="0" aria-valuemax="100" style="width: 95.74%">
<span class="sr-only">95.74% covered (success)</span>
</div>
</div>
</td>
<td class="success small"><div align="right">93.05%</div></td>
<td class="success small"><div align="right">174&nbsp;/&nbsp;187</div></td>
<td class="success small"><div align="right">95.74%</div></td>
<td class="success small"><div align="right">180&nbsp;/&nbsp;188</div></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="69.57" aria-valuemin="0" aria-valuemax="100" style="width: 69.57%">
<span class="sr-only">69.57% covered (warning)</span>
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="73.91" aria-valuemin="0" aria-valuemax="100" style="width: 73.91%">
<span class="sr-only">73.91% covered (warning)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">69.57%</div></td>
<td class="warning small"><div align="right">16&nbsp;/&nbsp;23</div></td>
<td class="warning small"><div align="right">73.91%</div></td>
<td class="warning small"><div align="right">17&nbsp;/&nbsp;23</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
@ -126,23 +126,23 @@
</tr>
<tr>
<td class="warning"><span class="glyphicon glyphicon-file"></span> <a href="RDVRepo.php.html">RDVRepo.php</a></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="85.45" aria-valuemin="0" aria-valuemax="100" style="width: 85.45%">
<span class="sr-only">85.45% covered (warning)</span>
<td class="success"><span class="glyphicon glyphicon-file"></span> <a href="RDVRepo.php.html">RDVRepo.php</a></td>
<td class="success big"> <div class="progress">
<div class="progress-bar progress-bar-success" role="progressbar" aria-valuenow="94.64" aria-valuemin="0" aria-valuemax="100" style="width: 94.64%">
<span class="sr-only">94.64% covered (success)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">85.45%</div></td>
<td class="warning small"><div align="right">47&nbsp;/&nbsp;55</div></td>
<td class="success small"><div align="right">94.64%</div></td>
<td class="success small"><div align="right">53&nbsp;/&nbsp;56</div></td>
<td class="warning big"> <div class="progress">
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="62.50" aria-valuemin="0" aria-valuemax="100" style="width: 62.50%">
<span class="sr-only">62.50% covered (warning)</span>
<div class="progress-bar progress-bar-warning" role="progressbar" aria-valuenow="75.00" aria-valuemin="0" aria-valuemax="100" style="width: 75.00%">
<span class="sr-only">75.00% covered (warning)</span>
</div>
</div>
</td>
<td class="warning small"><div align="right">62.50%</div></td>
<td class="warning small"><div align="right">5&nbsp;/&nbsp;8</div></td>
<td class="warning small"><div align="right">75.00%</div></td>
<td class="warning small"><div align="right">6&nbsp;/&nbsp;8</div></td>
<td class="danger big"> <div class="progress">
<div class="progress-bar progress-bar-danger" role="progressbar" aria-valuenow="0.00" aria-valuemin="0" aria-valuemax="100" style="width: 0.00%">
<span class="sr-only">0.00% covered (danger)</span>
@ -193,7 +193,7 @@
<span class="success"><strong>High</strong>: 90% to 100%</span>
</p>
<p>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 7:56:03 UTC 2015.</small>
<small>Generated by <a href="http://github.com/sebastianbergmann/php-code-coverage" target="_top">PHP_CodeCoverage 3.0.2</a> using <a href="http://php.net/" target="_top">PHP 7.0.0</a> and <a href="https://phpunit.de/">PHPUnit 5.1.3</a> at Thu Dec 17 8:04:45 UTC 2015.</small>
</p>
</footer>
</div>

View File

@ -120,7 +120,260 @@ class RDV
}
public function getSVG($params){
$days = ['Mon'=>0,'Tue'=>1,'Wed'=>2,'Thu'=>3,'Fri'=>4,'Sat'=>5,'Sun'=>6];
$svgCalendar = "<?xml version=\"1.0\" encoding=\"UTF-8\" standalone=\"no\"?>
<!-- Created with PHP Maggle -->
<svg
xmlns:svg=\"http://www.w3.org/2000/svg\"
xmlns=\"http://www.w3.org/2000/svg\"
xmlns:xlink=\"http://www.w3.org/1999/xlink\"
version=\"1.1\"
width=\"7700\"
height=\"6000\"
id=\"svg2\">
<metadata
id=\"metadata7\">
<rdf:RDF>
<cc:Work
rdf:about=\"\">
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource=\"http://purl.org/dc/dcmitype/StillImage\" />
<dc:title>Calendar</dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
";
$current = strtotime($params['mois']);
//on range les rendez-vous dans un tableau avec leur jour comme clé
$RDVTemp = RDVRepo::getByMonth($params['mois'].'-01');
$RDVs = [];
foreach($RDVTemp as $rdv){
if(!isset($RDVs[date('j',strtotime($rdv['DateRDV']))])){
$RDVs[date('j',strtotime($rdv['DateRDV']))] = [];
}
array_push($RDVs[date('j',strtotime($rdv['DateRDV']))],$rdv);
}
foreach(range(1,date('t',strtotime($params['mois']))) as $day) {
//génération du SVG de la journée
//selon si on a une date sur un ou deux chiffres, on adapte
$date = strftime("%B %Y", $current);
if ($day >= 10) {
$xDate = 1500;
} else {
$xDate = 1000;
}
//fond général + affichage de la date
$svgCalendar .= '<g id="Day_' . $day . '">
<rect
width="7700"
height="6000"
x="0"
y="0"
id="backgroundDay_' . $day . '"
style="fill:#fff;fill-opacity:1;stroke:none" />
<text
x="300"
y="1000"
id="TextDay_' . $day . '"
xml:space="preserve"
style="font-size:750px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee">
<tspan
x="300"
y="1000"
id="TextSpanDay_' . $day . '">' . $day . '
</tspan>
</text>
<text
x="' . $xDate . '"
y="1000"
id="TextMonthDay_' . $day . '"
xml:space="preserve"
style="font-size:400px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
x="' . $xDate . '"
y="1000"
id="TextSpanMonthDay_' . $day . '">' . $date . '
</tspan>
</text>
';
//on défini le tableau si jamais
if (!isset($RDVs[$day])) {
$RDVs[$day] = [];
}
//on parcours les consultations du jour pour les afficher
foreach ($RDVs[$day] as $key => $rdv) {
$patient = PatientRepo::getById(intval($rdv['Patient_Id']));
$medecin = MedecinRepo::getById(intval($rdv['Medecin_id']));
//couleur suivant le nombre de consultation
if ($key % 2 == 0) {
$color = 'f9f9f9';
} else {
$color = 'ececec';
}
//du svg blablabla
$yConsult = 1500 + 700 * $key;
$svgCalendar .= '<g
id="ConsultationGroupDay' . $day . 'Consult' . $key . '"
data-patient="' . $rdv['Patient_Id'] . '"
data-medecin="' . $rdv['Medecin_id'] . '">
<rect
width="7000"
height="700"
x="300"
y="' . $yConsult . '"
id="ConsultationBackgroundDay' . $day . 'Consult' . $key . '"
style="fill:#' . $color . ';fill-opacity:1;stroke:none" />
<text
x="400"
y="' . $yConsult . '"
id="ConsultationTextHourDay' . $day . 'Consult' . $key . '"
xml:space="preserve"
style="font-size:400px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
x="400"
y="' . ($yConsult + 500) . '"
id="ConsultationTextSpanHourDay' . $day . 'Consult' . $key . '">' . date('G:i', strtotime($rdv['DateRDV'])) . '</tspan></text>
<g
id="g5136">
<text
x="6100"
y="' . ($yConsult + 500) . '"
id="text5084"
xml:space="preserve"
style="font-size:400px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#999999;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
x="6100"
y="' . ($yConsult + 500) . '"
id="tspan5086">' . $rdv['Minute'] . 'mn</tspan></text>
<g
id="g5224">
<text
x="2500"
y="' . ($yConsult + 270) . '"
id="text5072"
xml:space="preserve"
style="font-size:250px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
x="2500"
y="' . ($yConsult + 270) . '"
id="tspan5074">' . $medecin['Prenom'] . '</tspan></text>
<text
x="3800"
y="' . ($yConsult + 270) . '"
id="text5186"
xml:space="preserve"
style="font-size:250px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
x="3800"
y="' . ($yConsult + 270) . '"
id="tspan5188"
style="font-size:250;fill:#4d4d4d;fill-opacity:1">' . $medecin['Nom'] . '</tspan></text>
</g>
<g
id="g5230">
<text
x="2500"
y="' . ($yConsult + 600) . '"
id="text5080"
xml:space="preserve"
style="font-size:250px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
x="2500"
y="' . ($yConsult + 600) . '"
id="tspan5082">' . $patient['Prenom'] . '</tspan></text>
<text
x="3800"
y="' . ($yConsult + 600) . '"
id="text5194"
xml:space="preserve"
style="font-size:250px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;line-height:125%;letter-spacing:0px;word-spacing:0px;fill:#4d4d4d;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
x="3800"
y="' . ($yConsult + 600) . '"
id="tspan5196">' . $patient['Nom'] . '</tspan></text>
</g>
</g>';
}
$svgCalendar .= '</g></g>';
}
//on met u fond (sinon on voit les consultation en arrière plan)
$svgCalendar .= '</g></g><g id="Calendar">';
$svgCalendar.='<rect
width="7700"
height="6000"
x="0"
y="0"
id="BackgroundCalendar"
style="fill:#fff";fill-opacity:1;stroke:none" />';
//position x;y de base des jours du calendrier
$x=1100*$days[date('D',$current)];
$y=0;
//initialisation de variables
$cal = [];
$week=[];
//obligé de séparer la génération des consultation et du calendrier pour organiser le svg
foreach(range(1,date('t',strtotime($params['mois']))) as $day){
//génération du svg du calendrier
$day = date('D',$current);
$day_nbr = date('d',$current);
$week[$days[$day]] = date('d',$current);
$current = strtotime("+1 day",$current);
if($y/1100 % 2 == 0){
if($days[$day] % 2 == 0){$color='f0f0f0';}else{$color='fff';}
$svgCalendar.='<rect
width="1000"
height="1000"
ry="90"
x="'.$x.'"
y="'.$y.'"
id="day_'.$days[$day].'"
style="fill:#'.$color.';fill-opacity:1;stroke:none" />';
}else{
if($days[$day] % 2 != 0){$color='f0f0f0';}else{$color='fff';}
$svgCalendar.='<rect
width="1000"
height="1000"
ry="90"
x="'.$x.'"
y="'.$y.'"
id="day_'.$days[$day].'"
style="fill:#'.$color.';fill-opacity:1;stroke:none" />';
}
$svgCalendar.='<text
x="'.($x-700).'"
y="'.(($y+1100)-700).'"
id="Textday_'.$days[$day].'"
xml:space="preserve"
style="font-size:400px;font-style:normal;font-variant:normal;font-weight:normal;font-stretch:normal;letter-spacing:0px;word-spacing:0px;fill:#000000;fill-opacity:1;stroke:none;font-family:Sawasdee;-inkscape-font-specification:Sawasdee"><tspan
x="'.($x+260).'"
y="'.($y+1100-470).'"
id="TextDay_'.$days[$day].'">'.$day_nbr.'</tspan></text>';
$x+=1100;
if($days[$day] == 6){
$i=0;
array_push($cal,$week);
$week = [];
$y+=1100;
$x=0;
}
}
$svgCalendar .= '</g>';
return $svgCalendar;
}
}

View File

@ -104,8 +104,9 @@ class RDVRepo
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]);
$req = StaticRepo::getConnexion()->prepare('SELECT *, ((HOUR(Duree)*60)+MINUTE(Duree)) AS Minute FROM RDV WHERE MONTH(DateRDV) = :month AND YEAR(DateRDV) = :year ORDER BY DateRDV ASC');
$req->execute(['month' => date('m',strtotime($date)),
'year' => date('Y',strtotime($date))]);
return StaticRepo::delNumeric($req->fetchAll());
}

View File

@ -6,5 +6,16 @@
* Time: 11:40
*/
require_once('autoloader.php');
$rdv=new RDV();
?>
<!DOCTYPE html>
<html>
<head>
Response::quickResponse(200,'lol');
</head>
<body>
<?php
echo $rdv->getSVG(['mois' => '2015-11']);
?>
</body>
</html>

View File

@ -60,4 +60,9 @@ class RDVRepoTest extends PHPUnit_Framework_TestCase
$this->assertEquals(count($this->repo->getAll(1)),1);
}
public function testGetByMonth(){
$date = '2015-12-00 00:00:00';
$this->assertEquals(count($this->repo->getByMonth(date('Y-m-d',strtotime($date)))),13);
}
}