tableDraw in TableStatsEps
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
This commit is contained in:
parent
2d5cb03077
commit
3555a85111
@ -233,13 +233,11 @@ class EpsRelationSchema extends ExportRelationSchema
|
||||
|
||||
/**
|
||||
* Draws tables
|
||||
*
|
||||
* @see TableStatsEps::Table_Stats_tableDraw()
|
||||
*/
|
||||
private function drawTables(): void
|
||||
{
|
||||
foreach ($this->tables as $table) {
|
||||
$table->tableDraw($this->showColor);
|
||||
$table->tableDraw();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@ -120,10 +120,8 @@ class TableStatsEps extends TableStats
|
||||
* @see Eps
|
||||
* @see Eps::line
|
||||
* @see Eps::rect
|
||||
*
|
||||
* @param bool $showColor Whether to display color
|
||||
*/
|
||||
public function tableDraw(bool $showColor): void
|
||||
public function tableDraw(): void
|
||||
{
|
||||
$this->diagram->rect($this->x, $this->y + 12, $this->width, $this->heightCell, 1);
|
||||
$this->diagram->showXY($this->getTitle(), $this->x + 5, $this->y + 14);
|
||||
|
||||
@ -8,10 +8,7 @@ declare(strict_types=1);
|
||||
namespace PhpMyAdmin\Plugins\Schema\Svg;
|
||||
|
||||
use PhpMyAdmin\Dbal\DatabaseName;
|
||||
use PhpMyAdmin\Plugins\Schema\Dia\TableStatsDia;
|
||||
use PhpMyAdmin\Plugins\Schema\Eps\TableStatsEps;
|
||||
use PhpMyAdmin\Plugins\Schema\ExportRelationSchema;
|
||||
use PhpMyAdmin\Plugins\Schema\Pdf\TableStatsPdf;
|
||||
use PhpMyAdmin\Version;
|
||||
|
||||
use function __;
|
||||
@ -36,7 +33,7 @@ use function sprintf;
|
||||
*/
|
||||
class SvgRelationSchema extends ExportRelationSchema
|
||||
{
|
||||
/** @var TableStatsDia[]|TableStatsEps[]|TableStatsPdf[]|TableStatsSvg[] */
|
||||
/** @var TableStatsSvg[] */
|
||||
private array $tables = [];
|
||||
|
||||
/** @var RelationStatsSvg[] Relations */
|
||||
@ -266,8 +263,6 @@ class SvgRelationSchema extends ExportRelationSchema
|
||||
|
||||
/**
|
||||
* Draws tables
|
||||
*
|
||||
* @see TableStatsSvg::Table_Stats_tableDraw()
|
||||
*/
|
||||
private function drawTables(): void
|
||||
{
|
||||
|
||||
@ -6790,11 +6790,6 @@ parameters:
|
||||
count: 1
|
||||
path: libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#1 \\$table of method PhpMyAdmin\\\\Plugins\\\\Schema\\\\Svg\\\\SvgRelationSchema\\:\\:setMinMax\\(\\) expects PhpMyAdmin\\\\Plugins\\\\Schema\\\\Svg\\\\TableStatsSvg, PhpMyAdmin\\\\Plugins\\\\Schema\\\\Dia\\\\TableStatsDia\\|PhpMyAdmin\\\\Plugins\\\\Schema\\\\Eps\\\\TableStatsEps\\|PhpMyAdmin\\\\Plugins\\\\Schema\\\\Pdf\\\\TableStatsPdf\\|PhpMyAdmin\\\\Plugins\\\\Schema\\\\Svg\\\\TableStatsSvg given\\.$#"
|
||||
count: 1
|
||||
path: libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php
|
||||
|
||||
-
|
||||
message: "#^Parameter \\#4 \\$masterField of method PhpMyAdmin\\\\Plugins\\\\Schema\\\\Svg\\\\SvgRelationSchema\\:\\:addRelation\\(\\) expects string, \\(int\\|string\\) given\\.$#"
|
||||
count: 1
|
||||
|
||||
@ -10923,9 +10923,6 @@
|
||||
<code><![CDATA[$this->y + 14]]></code>
|
||||
<code><![CDATA[$this->y + 14 + $this->currentCell]]></code>
|
||||
</PossiblyInvalidArgument>
|
||||
<PossiblyUnusedParam>
|
||||
<code>$showColor</code>
|
||||
</PossiblyUnusedParam>
|
||||
<PossiblyUnusedProperty>
|
||||
<code>$height</code>
|
||||
</PossiblyUnusedProperty>
|
||||
@ -11305,9 +11302,6 @@
|
||||
</PossiblyUnusedProperty>
|
||||
</file>
|
||||
<file src="libraries/classes/Plugins/Schema/Svg/SvgRelationSchema.php">
|
||||
<InvalidArgument>
|
||||
<code><![CDATA[$this->showColor]]></code>
|
||||
</InvalidArgument>
|
||||
<MixedArgument>
|
||||
<code>$oneField</code>
|
||||
<code><![CDATA[$oneKey['ref_index_list'][$index]]]></code>
|
||||
@ -11337,13 +11331,6 @@
|
||||
<code>$oneKey</code>
|
||||
<code>$rel</code>
|
||||
</MixedAssignment>
|
||||
<PossiblyInvalidArgument>
|
||||
<code><![CDATA[$this->tables[$table]]]></code>
|
||||
</PossiblyInvalidArgument>
|
||||
<TooFewArguments>
|
||||
<code>tableDraw</code>
|
||||
<code>tableDraw</code>
|
||||
</TooFewArguments>
|
||||
</file>
|
||||
<file src="libraries/classes/Plugins/Schema/Svg/TableStatsSvg.php">
|
||||
<MixedArgument>
|
||||
|
||||
Loading…
Reference in New Issue
Block a user