Fix missing property type hints

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
This commit is contained in:
Maurício Meneghini Fauth 2020-07-22 21:42:22 -03:00
parent 2bf9d2bf68
commit 2358b9c4f9
96 changed files with 1110 additions and 1008 deletions

View File

@ -90,7 +90,11 @@ class Config
/** @var int source modification time */
public $source_mtime = 0;
/** @var int */
public $default_source_mtime = 0;
/** @var int */
public $set_mtime = 0;
/** @var bool */

View File

@ -15,6 +15,8 @@ class BaseFormList
{
/**
* List of all forms
*
* @var array
*/
protected static $all = [];

View File

@ -11,9 +11,16 @@ use PhpMyAdmin\Util;
*/
class DesignerTable
{
/** @var string */
private $tableName;
/** @var string */
private $databaseName;
/** @var string */
private $tableEngine;
/** @var string|null */
private $displayField;
/**

View File

@ -225,6 +225,8 @@ class Results
* for some of the system databases.
* One element of this array represent all relevant columns in all tables in
* one specific database
*
* @var array
*/
public $transformation_info;

View File

@ -20,7 +20,7 @@ use function str_split;
*/
class GisGeometryCollection extends GisGeometry
{
// Hold the singleton instance of the class
/** @var self */
private static $_instance;
/**

View File

@ -23,7 +23,7 @@ use function trim;
*/
class GisLineString extends GisGeometry
{
// Hold the singleton instance of the class
/** @var self */
private static $_instance;
/**

View File

@ -24,7 +24,7 @@ use function trim;
*/
class GisMultiLineString extends GisGeometry
{
// Hold the singleton instance of the class
/** @var self */
private static $_instance;
/**

View File

@ -23,7 +23,7 @@ use function trim;
*/
class GisMultiPoint extends GisGeometry
{
// Hold the singleton instance of the class
/** @var self */
private static $_instance;
/**

View File

@ -27,7 +27,7 @@ use function trim;
*/
class GisMultiPolygon extends GisGeometry
{
// Hold the singleton instance of the class
/** @var self */
private static $_instance;
/**

View File

@ -22,7 +22,7 @@ use function trim;
*/
class GisPoint extends GisGeometry
{
// Hold the singleton instance of the class
/** @var self */
private static $_instance;
/**

View File

@ -31,7 +31,7 @@ use function trim;
*/
class GisPolygon extends GisGeometry
{
// Hold the singleton instance of the class
/** @var self */
private static $_instance;
/**

View File

@ -36,7 +36,10 @@ class GisVisualization
{
/** @var array Raw data for the visualization */
private $_data;
/** @var string */
private $_modified_sql;
/** @var array Set of default settings values are here. */
private $_settings = [
// Array of colors to be used for GIS visualizations.
@ -64,6 +67,7 @@ class GisVisualization
// The height of the GIS visualization.
'height' => 450,
];
/** @var array Options that the user has specified. */
private $_userSpecifiedSettings = null;

View File

@ -21,10 +21,19 @@ use function strpos;
*/
class Language
{
/** @var string */
protected $code;
/** @var string */
protected $name;
/** @var string */
protected $native;
/** @var string */
protected $regex;
/** @var string */
protected $mysql;
/**

View File

@ -28,7 +28,7 @@ use function ucfirst;
class LanguageManager
{
/**
* @var array Definition data for languages
* Definition data for languages
*
* Each member contains:
* - Language code
@ -36,6 +36,8 @@ class LanguageManager
* - Native language name
* - Match regular expression
* - MySQL locale
*
* @var array
*/
private static $_language_data = [
'af' => [
@ -679,11 +681,20 @@ class LanguageManager
],
];
/** @var array */
private $_available_locales;
/** @var array */
private $_available_languages;
private $_lang_failed_cfg;
private $_lang_failed_cookie;
private $_lang_failed_request;
/** @var bool */
private $_lang_failed_cfg = false;
/** @var bool */
private $_lang_failed_cookie = false;
/** @var bool */
private $_lang_failed_request = false;
/** @var LanguageManager */
private static $instance;

View File

@ -19,6 +19,7 @@ use function trigger_error;
*/
class NodeFactory
{
/** @var string */
protected static $namespace = 'PhpMyAdmin\\Navigation\\Nodes\\%s';
/**

View File

@ -26,8 +26,13 @@ use function register_shutdown_function;
*/
class OutputBuffering
{
/** @var self */
private static $_instance;
/** @var int */
private $_mode;
/** @var string */
private $_content;
/** @var bool */

View File

@ -19,7 +19,10 @@ use function strtr;
*/
class Pdf extends TCPDF
{
/** @var array */
public $footerset;
/** @var array */
public $Alias = [];
/**

View File

@ -55,11 +55,15 @@ class AuthenticationCookie extends AuthenticationPlugin
{
/**
* IV for encryption
*
* @var string|null
*/
private $_cookie_iv = null;
/**
* Whether to use OpenSSL directly
*
* @var bool
*/
private $_use_openssl;

View File

@ -26,6 +26,7 @@ use function stripslashes;
*/
class ExportJson extends ExportPlugin
{
/** @var bool */
private $first = true;
public function __construct()

View File

@ -23,27 +23,67 @@ use function stripos;
*/
class Pdf extends PdfLib
{
/** @var array */
public $tablewidths;
/** @var array */
public $headerset;
/** @var int|float */
private $dataY;
/** @var int|float */
private $cellFontSize;
/** @var mixed */
private $titleFontSize;
/** @var mixed */
private $titleText;
/** @var mixed */
private $dbAlias;
/** @var mixed */
private $tableAlias;
/** @var mixed */
private $purpose;
/** @var array */
private $colTitles;
/** @var mixed */
private $results;
/** @var array */
private $colAlign;
/** @var mixed */
private $titleWidth;
/** @var mixed */
private $colFits;
/** @var array */
private $display_column;
/** @var int */
private $numFields;
/** @var array */
private $fields;
/** @var int|float */
private $sColWidth;
/** @var mixed */
private $currentDb;
/** @var mixed */
private $currentTable;
/** @var array */
private $aliases;
/** @var Relation */

View File

@ -13,9 +13,18 @@ namespace PhpMyAdmin\Plugins;
*/
abstract class IOTransformationsPlugin extends TransformationsPlugin
{
// specifies whether transformation was successful or not
/**
* Specifies whether transformation was successful or not.
*
* @var bool
*/
protected $success = true;
// to store the error message in case of failed transformations
/**
* To store the error message in case of failed transformations.
*
* @var string
*/
protected $error = '';
/**

View File

@ -31,12 +31,23 @@ class DiaRelationSchema extends ExportRelationSchema
{
/** @var TableStatsDia[]|TableStatsEps[]|TableStatsPdf[]|TableStatsSvg[] */
private $_tables = [];
/** @var RelationStatsDia[] Relations */
private $_relations = [];
/** @var float */
private $_topMargin = 2.8222000598907471;
/** @var float */
private $_bottomMargin = 2.8222000598907471;
/** @var float */
private $_leftMargin = 2.8222000598907471;
/** @var float */
private $_rightMargin = 2.8222000598907471;
/** @var int */
public static $objectId = 0;
/**

View File

@ -24,18 +24,34 @@ use function shuffle;
*/
class RelationStatsDia
{
/** @var Dia */
protected $diagram;
/**
* Defines properties
*/
/** @var mixed */
public $srcConnPointsRight;
/** @var mixed */
public $srcConnPointsLeft;
/** @var mixed */
public $destConnPointsRight;
/** @var mixed */
public $destConnPointsLeft;
/** @var int */
public $masterTableId;
/** @var int */
public $foreignTableId;
/** @var mixed */
public $masterTablePos;
/** @var mixed */
public $foreignTablePos;
/** @var string */
public $referenceColor;
/**

View File

@ -25,7 +25,10 @@ use function sprintf;
*/
class TableStatsDia extends TableStats
{
/** @var int */
public $tableId;
/** @var string */
public $tableColor;
/**

View File

@ -21,8 +21,13 @@ use function strlen;
*/
class Eps
{
/** @var string */
public $font;
/** @var int */
public $fontSize;
/** @var string */
public $stringCommands;
/**

View File

@ -36,6 +36,7 @@ class EpsRelationSchema extends ExportRelationSchema
/** @var RelationStatsEps[] Relations */
private $_relations = [];
/** @var int */
private $_tablewidth;
/**

View File

@ -25,10 +25,10 @@ use function sprintf;
*/
class TableStatsEps extends TableStats
{
/**
* Defines properties
*/
/** @var int */
public $height;
/** @var int */
public $currentCell = 0;
/**

View File

@ -21,15 +21,34 @@ use function rawurldecode;
*/
class ExportRelationSchema
{
/** @var string */
protected $db;
/** @var Dia\Dia|Eps\Eps|Pdf\Pdf|Svg\Svg|null */
protected $diagram;
/** @var bool */
protected $showColor;
/** @var bool */
protected $tableDimension;
/** @var bool */
protected $sameWide;
/** @var bool */
protected $showKeys;
/** @var string */
protected $orientation;
/** @var string */
protected $paper;
/** @var int */
protected $pageNumber;
/** @var bool */
protected $offline;
/** @var Relation */

View File

@ -47,23 +47,49 @@ if (getcwd() == __DIR__) {
*/
class Pdf extends PdfLib
{
/**
* Defines properties
*/
/** @var int|float */
public $_xMin;
/** @var int|float */
public $_yMin;
/** @var int|float */
public $leftMargin = 10;
/** @var int|float */
public $topMargin = 10;
/** @var int|float */
public $scale;
/** @var array */
public $PMA_links;
/** @var array */
public $Outlines = [];
/** @var mixed */
public $def_outlines;
/** @var array */
public $widths;
/** @var float */
public $cMargin;
/** @var string */
private $_ff = PdfLib::PMA_PDF_FONT;
/** @var string */
private $_offline;
/** @var int */
private $_pageNumber;
/** @var bool */
private $_withDoc;
/** @var string */
private $_db;
/** @var Relation */

View File

@ -55,25 +55,49 @@ if (getcwd() == __DIR__) {
*/
class PdfRelationSchema extends ExportRelationSchema
{
/**
* Defines properties
*/
/** @var bool */
private $_showGrid;
/** @var bool */
private $_withDoc;
/** @var string */
private $_tableOrder;
/** @var TableStatsPdf[] */
private $_tables = [];
/** @var string */
private $_ff = PdfLib::PMA_PDF_FONT;
/** @var int */
private $_xMax = 0;
/** @var int */
private $_yMax = 0;
/** @var float|int */
private $_scale;
/** @var int */
private $_xMin = 100000;
/** @var int */
private $_yMin = 100000;
/** @var int */
private $_topMargin = 10;
/** @var int */
private $_bottomMargin = 10;
/** @var int */
private $_leftMargin = 10;
/** @var int */
private $_rightMargin = 10;
/** @var int */
private $_tablewidth;
/** @var RelationStatsPdf[] */

View File

@ -27,11 +27,13 @@ use function sprintf;
*/
class TableStatsPdf extends TableStats
{
/**
* Defines properties
*/
/** @var mixed */
public $nb_fiels;
/** @var int */
public $height;
/** @var string */
private $_ff = PdfLib::PMA_PDF_FONT;
/**

View File

@ -22,16 +22,28 @@ use function min;
*/
abstract class RelationStats
{
/** @var object */
protected $diagram;
/**
* Defines properties
*/
/** @var mixed */
public $xSrc;
/** @var mixed */
public $ySrc;
/** @var int */
public $srcDir;
/** @var int */
public $destDir;
/** @var mixed */
public $xDest;
/** @var mixed */
public $yDest;
/** @var int */
public $wTick;
/**

View File

@ -25,9 +25,16 @@ use function strlen;
*/
class Svg extends XMLWriter
{
/** @var string */
public $title;
/** @var string */
public $author;
/** @var string */
public $font;
/** @var int */
public $fontSize;
/**

View File

@ -34,12 +34,23 @@ class SvgRelationSchema extends ExportRelationSchema
{
/** @var TableStatsDia[]|TableStatsEps[]|TableStatsPdf[]|TableStatsSvg[] */
private $_tables = [];
/** @var RelationStatsSvg[] Relations */
private $_relations = [];
/** @var int */
private $_xMax = 0;
/** @var int */
private $_yMax = 0;
/** @var int */
private $_xMin = 100000;
/** @var int */
private $_yMin = 100000;
/** @var int */
private $_tablewidth;
/**

View File

@ -26,10 +26,10 @@ use function sprintf;
*/
class TableStatsSvg extends TableStats
{
/**
* Defines properties
*/
/** @var int */
public $height;
/** @var int */
public $currentCell = 0;
/**

View File

@ -28,19 +28,46 @@ use function sprintf;
*/
abstract class TableStats
{
/** @var Dia\Dia|Eps\Eps|Pdf\Pdf|Svg\Svg */
protected $diagram;
/** @var string */
protected $db;
/** @var int */
protected $pageNumber;
/** @var string */
protected $tableName;
/** @var bool */
protected $showKeys;
/** @var bool */
protected $tableDimension;
/** @var mixed */
public $displayfield;
/** @var array */
public $fields = [];
/** @var array */
public $primary = [];
/** @var int */
public $x;
/** @var int */
public $y;
/** @var int */
public $width = 0;
/** @var int */
public $heightCell = 0;
/** @var bool */
protected $offline;
/** @var Relation */

View File

@ -26,6 +26,7 @@ class Application extends TwoFactorPlugin
/** @var string */
public static $id = 'application';
/** @var Google2FA */
protected $_google2fa;
/**

View File

@ -17,6 +17,7 @@ class Invalid extends TwoFactorPlugin
/** @var string */
public static $id = 'invalid';
/** @var bool */
public static $showSubmit = false;
/**

View File

@ -30,6 +30,8 @@ class TwoFactorPlugin
/**
* Whether to show submit button in form
*
* @var bool
*/
public static $showSubmit = true;

View File

@ -25,16 +25,37 @@ use function mb_strtolower;
*/
class Data
{
/** @var array */
public $status;
/** @var array */
public $sections;
/** @var array */
public $variables;
/** @var array */
public $used_queries;
/** @var array */
public $allocationMap;
/** @var array */
public $links;
/** @var bool */
public $db_isLocal;
/** @var mixed */
public $section;
/** @var array */
public $sectionUsed;
/** @var string */
public $selfUrl;
/** @var bool */
public $dataLoaded;
/**

View File

@ -43,8 +43,13 @@ use function strlen;
*/
class HttpRequest
{
/** @var string */
private $proxyUrl;
/** @var string */
private $proxyUser;
/** @var string */
private $proxyPass;
public function __construct()

View File

@ -21,7 +21,6 @@
<exclude name="PSR2.Classes.PropertyDeclaration.Underscore"/>
<exclude name="SlevomatCodingStandard.Operators.DisallowEqualOperators"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingParameterTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingPropertyTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingReturnTypeHint"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversableParameterTypeHintSpecification"/>
<exclude name="SlevomatCodingStandard.TypeHints.TypeHintDeclaration.MissingTraversablePropertyTypeHintSpecification"/>

File diff suppressed because it is too large Load Diff

View File

@ -1104,6 +1104,11 @@
<code>bool</code>
</InvalidReturnType>
</file>
<file src="libraries/classes/LanguageManager.php">
<MissingConstructor occurrences="1">
<code>$_available_locales</code>
</MissingConstructor>
</file>
<file src="libraries/classes/Menu.php">
<NullableReturnStatement occurrences="1">
<code>$allowedTabs</code>
@ -1469,13 +1474,16 @@
</ImplementedReturnTypeMismatch>
</file>
<file src="libraries/classes/Plugins/Schema/Dia/DiaRelationSchema.php">
<InvalidScalarArgument occurrences="1">
<code>$this-&gt;showColor</code>
</InvalidScalarArgument>
<PossiblyInvalidArgument occurrences="6">
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;_tables[$masterTable]</code>
<code>$this-&gt;_tables[$foreignTable]</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
</PossiblyInvalidArgument>
<PossiblyNullArgument occurrences="5">
<code>$this-&gt;paper</code>
@ -1484,44 +1492,91 @@
<code>$this-&gt;showKeys</code>
<code>$this-&gt;showKeys</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="2">
<PossiblyNullReference occurrences="3">
<code>startDiaDoc</code>
<code>endDiaDoc</code>
<code>showOutput</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="3">
<code>startDiaDoc</code>
<code>endDiaDoc</code>
<code>showOutput</code>
</PossiblyUndefinedMethod>
<TooFewArguments occurrences="1">
<code>tableDraw</code>
</TooFewArguments>
</file>
<file src="libraries/classes/Plugins/Schema/Dia/RelationStatsDia.php">
<InvalidOperand occurrences="4">
<code>$pos</code>
<code>$pos</code>
<code>$pos</code>
<code>$pos</code>
</InvalidOperand>
<PossiblyFalseOperand occurrences="4">
<code>$pos</code>
<code>$pos</code>
<code>$pos</code>
<code>$pos</code>
</PossiblyFalseOperand>
</file>
<file src="libraries/classes/Plugins/Schema/Dia/TableStatsDia.php">
<PossiblyUndefinedMethod occurrences="11">
<code>startElement</code>
<code>writeAttribute</code>
<code>writeAttribute</code>
<code>writeAttribute</code>
<code>writeRaw</code>
<code>startElement</code>
<code>writeAttribute</code>
<code>writeRaw</code>
<code>writeRaw</code>
<code>endElement</code>
<code>endElement</code>
</PossiblyUndefinedMethod>
</file>
<file src="libraries/classes/Plugins/Schema/Eps/Eps.php">
<InvalidReturnStatement occurrences="1">
<code>$this-&gt;fontSize</code>
</InvalidReturnStatement>
<InvalidReturnType occurrences="1">
<code>string</code>
</InvalidReturnType>
</file>
<file src="libraries/classes/Plugins/Schema/Eps/EpsRelationSchema.php">
<InvalidArgument occurrences="2">
<code>$this-&gt;_tables[$masterTable]</code>
<code>$this-&gt;_tables[$foreignTable]</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="1">
<InvalidScalarArgument occurrences="2">
<code>'10'</code>
<code>$this-&gt;showColor</code>
</InvalidScalarArgument>
<PossiblyInvalidArgument occurrences="1">
<code>$this-&gt;diagram</code>
</PossiblyInvalidArgument>
<PossiblyNullArgument occurrences="16">
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;orientation</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;showKeys</code>
<code>$this-&gt;tableDimension</code>
<code>$this-&gt;offline</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;tableDimension</code>
<code>$this-&gt;tableDimension</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="12">
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$this-&gt;_tablewidth</code>
</PossiblyNullPropertyAssignmentValue>
<PossiblyNullReference occurrences="13">
<code>setTitle</code>
<code>setAuthor</code>
<code>setDate</code>
@ -1534,7 +1589,23 @@
<code>getFont</code>
<code>getFontSize</code>
<code>endEpsDoc</code>
<code>showOutput</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="13">
<code>setTitle</code>
<code>setAuthor</code>
<code>setDate</code>
<code>setOrientation</code>
<code>setFont</code>
<code>getFont</code>
<code>getFontSize</code>
<code>getFont</code>
<code>getFontSize</code>
<code>getFont</code>
<code>getFontSize</code>
<code>endEpsDoc</code>
<code>showOutput</code>
</PossiblyUndefinedMethod>
<TooFewArguments occurrences="1">
<code>tableDraw</code>
</TooFewArguments>
@ -1548,12 +1619,26 @@
<ArgumentTypeCoercion occurrences="1">
<code>$diagram</code>
</ArgumentTypeCoercion>
<PossiblyUndefinedMethod occurrences="4">
<code>rect</code>
<code>showXY</code>
<code>rect</code>
<code>showXY</code>
</PossiblyUndefinedMethod>
</file>
<file src="libraries/classes/Plugins/Schema/Pdf/PdfRelationSchema.php">
<InvalidArgument occurrences="2">
<code>$this-&gt;_tables[$masterTable]</code>
<code>$this-&gt;_tables[$foreignTable]</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="6">
<code>$this-&gt;offline</code>
<code>'B'</code>
<code>''</code>
<code>'B'</code>
<code>''</code>
<code>''</code>
</InvalidScalarArgument>
<NullArgument occurrences="4">
<code>null</code>
<code>null</code>
@ -1563,34 +1648,45 @@
<PossiblyInvalidArgument occurrences="1">
<code>$this-&gt;diagram</code>
</PossiblyInvalidArgument>
<PossiblyNullArgument occurrences="22">
<PossiblyNullArgument occurrences="21">
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;orientation</code>
<code>$this-&gt;paper</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_withDoc</code>
<code>$this-&gt;offline</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;showKeys</code>
<code>$this-&gt;tableDimension</code>
<code>$this-&gt;offline</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;showKeys</code>
<code>$this-&gt;tableDimension</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;showKeys</code>
<code>$this-&gt;tableDimension</code>
<code>$this-&gt;_withDoc</code>
</PossiblyNullArgument>
<PossiblyNullPropertyFetch occurrences="1">
<PossiblyNullPropertyAssignment occurrences="5">
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
</PossiblyNullPropertyAssignment>
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$this-&gt;_tablewidth</code>
</PossiblyNullPropertyAssignmentValue>
<PossiblyNullPropertyFetch occurrences="3">
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
</PossiblyNullPropertyFetch>
<PossiblyNullReference occurrences="32">
<PossiblyNullReference occurrences="92">
<code>SetTitle</code>
<code>setCMargin</code>
<code>Open</code>
@ -1610,6 +1706,8 @@
<code>setScale</code>
<code>setLineWidthScale</code>
<code>SetFontSize</code>
<code>setFontSizeScale</code>
<code>download</code>
<code>SetMargins</code>
<code>SetDrawColor</code>
<code>getPageHeight</code>
@ -1622,23 +1720,227 @@
<code>getPageHeight</code>
<code>SetXY</code>
<code>Cell</code>
<code>setFontSizeScale</code>
<code>AddPage</code>
<code>Cell</code>
<code>Ln</code>
<code>AddLink</code>
<code>SetX</code>
<code>Cell</code>
<code>SetX</code>
<code>Cell</code>
<code>SetX</code>
<code>AddLink</code>
<code>AddLink</code>
<code>SetX</code>
<code>Cell</code>
<code>SetX</code>
<code>Cell</code>
<code>SetAutoPageBreak</code>
<code>AddPage</code>
<code>Bookmark</code>
<code>setAlias</code>
<code>PageNo</code>
<code>AddLink</code>
<code>SetLink</code>
<code>SetFont</code>
<code>Cell</code>
<code>SetFont</code>
<code>Ln</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Ln</code>
<code>SetFont</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>setWidths</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>setWidths</code>
<code>SetFont</code>
<code>AddLink</code>
<code>Bookmark</code>
<code>SetLink</code>
<code>row</code>
<code>SetFont</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="92">
<code>SetTitle</code>
<code>setCMargin</code>
<code>Open</code>
<code>SetAutoPageBreak</code>
<code>setOffline</code>
<code>SetAutoPageBreak</code>
<code>setCMargin</code>
<code>SetAutoPageBreak</code>
<code>setCMargin</code>
<code>AddPage</code>
<code>SetLink</code>
<code>Bookmark</code>
<code>PageNo</code>
<code>setAlias</code>
<code>getPageWidth</code>
<code>getPageHeight</code>
<code>setScale</code>
<code>setLineWidthScale</code>
<code>SetFontSize</code>
<code>setFontSizeScale</code>
<code>download</code>
<code>SetMargins</code>
<code>SetDrawColor</code>
<code>getPageHeight</code>
<code>getPageWidth</code>
<code>line</code>
<code>SetXY</code>
<code>Cell</code>
<code>getPageWidth</code>
<code>getPageHeight</code>
<code>line</code>
<code>SetXY</code>
<code>Cell</code>
<code>AddPage</code>
<code>Cell</code>
<code>Ln</code>
<code>AddLink</code>
<code>SetX</code>
<code>Cell</code>
<code>SetX</code>
<code>Cell</code>
<code>SetX</code>
<code>AddLink</code>
<code>AddLink</code>
<code>SetX</code>
<code>Cell</code>
<code>SetX</code>
<code>Cell</code>
<code>SetAutoPageBreak</code>
<code>AddPage</code>
<code>Bookmark</code>
<code>PageNo</code>
<code>setAlias</code>
<code>AddLink</code>
<code>SetLink</code>
<code>SetFont</code>
<code>Cell</code>
<code>SetFont</code>
<code>Ln</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Ln</code>
<code>SetFont</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>setWidths</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>Cell</code>
<code>setWidths</code>
<code>SetFont</code>
<code>AddLink</code>
<code>Bookmark</code>
<code>SetLink</code>
<code>row</code>
<code>SetFont</code>
</PossiblyUndefinedMethod>
<UndefinedPropertyAssignment occurrences="4">
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
</UndefinedPropertyAssignment>
<UndefinedPropertyFetch occurrences="3">
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
</UndefinedPropertyFetch>
</file>
<file src="libraries/classes/Plugins/Schema/Pdf/TableStatsPdf.php">
<ArgumentTypeCoercion occurrences="1">
<code>$diagram</code>
</ArgumentTypeCoercion>
<InvalidScalarArgument occurrences="2">
<InvalidScalarArgument occurrences="6">
<code>'B'</code>
<code>''</code>
<code>'B'</code>
<code>$setColor</code>
<code>''</code>
<code>$setColor</code>
</InvalidScalarArgument>
<PossiblyUndefinedMethod occurrences="21">
<code>GetStringWidth</code>
<code>GetStringWidth</code>
<code>SetFont</code>
<code>GetStringWidth</code>
<code>SetFont</code>
<code>setXyScale</code>
<code>SetFont</code>
<code>SetTextColor</code>
<code>SetFillColor</code>
<code>SetLink</code>
<code>cellScale</code>
<code>setXScale</code>
<code>SetFont</code>
<code>SetTextColor</code>
<code>SetFillColor</code>
<code>SetFillColor</code>
<code>SetFillColor</code>
<code>SetLink</code>
<code>cellScale</code>
<code>setXScale</code>
<code>SetFillColor</code>
</PossiblyUndefinedMethod>
<UndefinedPropertyAssignment occurrences="2">
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
</UndefinedPropertyAssignment>
<UndefinedPropertyFetch occurrences="2">
<code>$this-&gt;diagram-&gt;PMA_links</code>
<code>$this-&gt;diagram-&gt;PMA_links</code>
</UndefinedPropertyFetch>
</file>
<file src="libraries/classes/Plugins/Schema/RelationStats.php">
<InvalidArgument occurrences="2">
<code>$master_table</code>
<code>$foreign_table</code>
</InvalidArgument>
<InvalidOperand occurrences="1">
<code>$pos</code>
</InvalidOperand>
<PossiblyFalseOperand occurrences="1">
<code>$pos</code>
</PossiblyFalseOperand>
</file>
<file src="libraries/classes/Plugins/Schema/Svg/Svg.php">
<InvalidArgument occurrences="4">
@ -1653,28 +1955,34 @@
<code>$this-&gt;_tables[$masterTable]</code>
<code>$this-&gt;_tables[$foreignTable]</code>
</InvalidArgument>
<InvalidScalarArgument occurrences="1">
<code>$this-&gt;showColor</code>
</InvalidScalarArgument>
<PossiblyInvalidArgument occurrences="2">
<code>$this-&gt;_tables[$table]</code>
<code>$this-&gt;diagram</code>
</PossiblyInvalidArgument>
<PossiblyNullArgument occurrences="15">
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;showKeys</code>
<code>$this-&gt;tableDimension</code>
<code>$this-&gt;offline</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;diagram</code>
<code>$this-&gt;pageNumber</code>
<code>$this-&gt;_tablewidth</code>
<code>$this-&gt;tableDimension</code>
<code>$this-&gt;tableDimension</code>
</PossiblyNullArgument>
<PossiblyNullReference occurrences="12">
<PossiblyNullPropertyAssignmentValue occurrences="1">
<code>$this-&gt;_tablewidth</code>
</PossiblyNullPropertyAssignmentValue>
<PossiblyNullReference occurrences="13">
<code>setTitle</code>
<code>SetAuthor</code>
<code>setFont</code>
@ -1687,7 +1995,23 @@
<code>getFont</code>
<code>getFontSize</code>
<code>endSvgDoc</code>
<code>showOutput</code>
</PossiblyNullReference>
<PossiblyUndefinedMethod occurrences="13">
<code>setTitle</code>
<code>SetAuthor</code>
<code>setFont</code>
<code>setFontSize</code>
<code>getFont</code>
<code>getFontSize</code>
<code>startSvgDoc</code>
<code>getFont</code>
<code>getFontSize</code>
<code>getFont</code>
<code>getFontSize</code>
<code>endSvgDoc</code>
<code>showOutput</code>
</PossiblyUndefinedMethod>
<TooFewArguments occurrences="1">
<code>tableDraw</code>
</TooFewArguments>
@ -1701,6 +2025,18 @@
<ArgumentTypeCoercion occurrences="1">
<code>$diagram</code>
</ArgumentTypeCoercion>
<PossiblyUndefinedMethod occurrences="4">
<code>printElement</code>
<code>printElement</code>
<code>printElement</code>
<code>printElement</code>
</PossiblyUndefinedMethod>
</file>
<file src="libraries/classes/Plugins/Schema/TableStats.php">
<InvalidPropertyAssignmentValue occurrences="2">
<code>(float) $_POST['t_x'][$key]</code>
<code>(float) $_POST['t_y'][$key]</code>
</InvalidPropertyAssignmentValue>
</file>
<file src="libraries/classes/Plugins/Transformations/Abs/DateFormatTransformationsPlugin.php">
<PossiblyInvalidOperand occurrences="1">
@ -1727,6 +2063,12 @@
<code>string</code>
</InvalidFalsableReturnType>
</file>
<file src="libraries/classes/Plugins/TwoFactor/Application.php">
<InvalidReturnStatement occurrences="1"/>
<InvalidReturnType occurrences="1">
<code>bool</code>
</InvalidReturnType>
</file>
<file src="libraries/classes/Properties/Options/OptionsPropertyOneItem.php">
<ImplementedParamTypeMismatch occurrences="1">
<code>$force</code>

View File

@ -15,6 +15,7 @@ use PhpMyAdmin\Template;
*/
class BrowseForeignersTest extends AbstractTestCase
{
/** @var BrowseForeigners */
private $browseForeigners;
/**

View File

@ -22,8 +22,10 @@ use function ceil;
*/
class CentralColumnsTest extends AbstractTestCase
{
/** @var CentralColumns */
private $centralColumns;
/** @var array<int, array<string, string|int>> */
private $columnData = [
[
'col_name' => 'id',
@ -54,6 +56,7 @@ class CentralColumnsTest extends AbstractTestCase
],
];
/** @var array<int, array<string, string|int>> */
private $modifiedColumnData = [
[
'col_name' => 'id',

View File

@ -42,6 +42,8 @@ class ConfigTest extends AbstractTestCase
{
/**
* Turn off backup globals
*
* @var bool
*/
protected $backupGlobals = false;

View File

@ -18,7 +18,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class QbeTest extends AbstractTestCase
{
/** @access protected */
/** @var Qbe */
protected $object;
/**

View File

@ -17,7 +17,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class SearchTest extends AbstractTestCase
{
/** @access protected */
/** @var Search */
protected $object;
/**

View File

@ -22,6 +22,7 @@ use function htmlspecialchars;
*/
class ExportTest extends AbstractTestCase
{
/** @var Export */
private $export;
/**

View File

@ -24,7 +24,7 @@ use function hex2bin;
*/
class ResultsTest extends AbstractTestCase
{
/** @access protected */
/** @var DisplayResults */
protected $object;
/**

View File

@ -15,7 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class BdbTest extends AbstractTestCase
{
/** @access protected */
/** @var Bdb */
protected $object;
/**

View File

@ -15,7 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class BinlogTest extends AbstractTestCase
{
/** @access protected */
/** @var Binlog */
protected $object;
/**

View File

@ -15,7 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class InnodbTest extends AbstractTestCase
{
/** @access protected */
/** @var Innodb */
protected $object;
/**

View File

@ -15,7 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class MemoryTest extends AbstractTestCase
{
/** @access protected */
/** @var Memory */
protected $object;
/**

View File

@ -15,7 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class MrgMyisamTest extends AbstractTestCase
{
/** @access protected */
/** @var MrgMyisam */
protected $object;
/**

View File

@ -15,7 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class MyisamTest extends AbstractTestCase
{
/** @access protected */
/** @var Myisam */
protected $object;
/**

View File

@ -15,7 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class NdbclusterTest extends AbstractTestCase
{
/** @access protected */
/** @var Ndbcluster */
protected $object;
/**

View File

@ -17,7 +17,7 @@ use function sprintf;
*/
class PbxtTest extends AbstractTestCase
{
/** @access protected */
/** @var Pbxt */
protected $object;
/**

View File

@ -18,7 +18,7 @@ use const E_WARNING;
*/
class ErrorHandlerTest extends AbstractTestCase
{
/** @access protected */
/** @var ErrorHandler */
protected $object;
/**

View File

@ -19,7 +19,7 @@ class FooterTest extends AbstractTestCase
/** @var array store private attributes of PhpMyAdmin\Footer */
public $privates = [];
/** @access protected */
/** @var Footer */
protected $object;
/**

View File

@ -15,6 +15,7 @@ use function imagesx;
*/
abstract class GisGeomTestCase extends AbstractTestCase
{
/** @var object */
protected $object;
/**

View File

@ -21,7 +21,7 @@ use function preg_match;
*/
class GisGeometryCollectionTest extends AbstractTestCase
{
/** @access protected */
/** @var GisGeometryCollection */
protected $object;
/**

View File

@ -9,13 +9,14 @@ namespace PhpMyAdmin\Tests\Gis;
use PhpMyAdmin\Gis\GisGeometry;
use PhpMyAdmin\Tests\AbstractTestCase;
use PHPUnit\Framework\MockObject\MockObject;
/**
* Tests for PhpMyAdmin\Gis\GisGeometry class
*/
class GisGeometryTest extends AbstractTestCase
{
/** @access protected */
/** @var GisGeometry|MockObject */
protected $object;
/**

View File

@ -14,6 +14,7 @@ use PhpMyAdmin\Index;
*/
class IndexTest extends AbstractTestCase
{
/** @var array */
private $_params = [];
/**

View File

@ -28,6 +28,7 @@ use function sprintf;
*/
class InsertEditTest extends AbstractTestCase
{
/** @var InsertEdit */
private $insertEdit;
/**

View File

@ -23,6 +23,7 @@ use function json_encode;
*/
class NormalizationTest extends AbstractTestCase
{
/** @var Normalization */
private $normalization;
/**

View File

@ -19,6 +19,7 @@ use function ob_start;
*/
class AuthenticationConfigTest extends AbstractTestCase
{
/** @var AuthenticationConfig */
protected $object;
/**

View File

@ -23,6 +23,7 @@ use function version_compare;
*/
class AuthenticationSignonTest extends AbstractNetworkTestCase
{
/** @var AuthenticationSignon */
protected $object;
/**

View File

@ -29,6 +29,7 @@ use function ob_start;
*/
class ExportCsvTest extends AbstractTestCase
{
/** @var ExportCsv */
protected $object;
/**

View File

@ -27,6 +27,7 @@ use function array_shift;
*/
class ExportExcelTest extends AbstractTestCase
{
/** @var ExportExcel */
protected $object;
/**

View File

@ -31,6 +31,7 @@ use function ob_start;
*/
class ExportHtmlwordTest extends AbstractTestCase
{
/** @var ExportHtmlword */
protected $object;
/**

View File

@ -26,6 +26,7 @@ use function array_shift;
*/
class ExportJsonTest extends AbstractTestCase
{
/** @var ExportJson */
protected $object;
/**

View File

@ -30,6 +30,7 @@ use function ob_start;
*/
class ExportLatexTest extends AbstractTestCase
{
/** @var ExportLatex */
protected $object;
/**

View File

@ -29,6 +29,7 @@ use function ob_start;
*/
class ExportMediawikiTest extends AbstractTestCase
{
/** @var ExportMediawiki */
protected $object;
/**

View File

@ -29,6 +29,7 @@ use function array_shift;
*/
class ExportOdsTest extends AbstractTestCase
{
/** @var ExportOds */
protected $object;
/**

View File

@ -30,6 +30,7 @@ use function array_shift;
*/
class ExportOdtTest extends AbstractTestCase
{
/** @var ExportOdt */
protected $object;
/**

View File

@ -26,6 +26,7 @@ use function array_shift;
*/
class ExportPdfTest extends AbstractTestCase
{
/** @var ExportPdf */
protected $object;
/**

View File

@ -27,6 +27,7 @@ use function ob_start;
*/
class ExportPhparrayTest extends AbstractTestCase
{
/** @var ExportPhparray */
protected $object;
/**

View File

@ -35,6 +35,7 @@ use function ob_start;
*/
class ExportSqlTest extends AbstractTestCase
{
/** @var ExportSql */
protected $object;
/**

View File

@ -30,6 +30,7 @@ use function ob_start;
*/
class ExportTexytextTest extends AbstractTestCase
{
/** @var ExportTexytext */
protected $object;
/**

View File

@ -29,6 +29,7 @@ use function ob_start;
*/
class ExportXmlTest extends AbstractTestCase
{
/** @var ExportXml */
protected $object;
/**

View File

@ -27,6 +27,7 @@ use function ob_start;
*/
class ExportYamlTest extends AbstractTestCase
{
/** @var ExportYaml */
protected $object;
/**

View File

@ -15,6 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class TablePropertyTest extends AbstractTestCase
{
/** @var TableProperty */
protected $object;
/**

View File

@ -19,7 +19,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class DiaRelationSchemaTest extends AbstractTestCase
{
/** @access protected */
/** @var DiaRelationSchema */
protected $object;
/**

View File

@ -17,7 +17,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class EpsRelationSchemaTest extends AbstractTestCase
{
/** @access protected */
/** @var EpsRelationSchema */
protected $object;
/**

View File

@ -15,7 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class ExportRelationSchemaTest extends AbstractTestCase
{
/** @access protected */
/** @var ExportRelationSchema */
protected $object;
/**

View File

@ -17,7 +17,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class PdfRelationSchemaTest extends AbstractTestCase
{
/** @access protected */
/** @var PdfRelationSchema */
protected $object;
/**

View File

@ -19,7 +19,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class SvgRelationSchemaTest extends AbstractTestCase
{
/** @access protected */
/** @var SvgRelationSchema */
protected $object;
/**

View File

@ -15,6 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class OptionsPropertyMainGroupTest extends AbstractTestCase
{
/** @var OptionsPropertyMainGroup */
protected $object;
/**

View File

@ -15,6 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class OptionsPropertyRootGroupTest extends AbstractTestCase
{
/** @var OptionsPropertyRootGroup */
protected $object;
/**

View File

@ -15,6 +15,7 @@ use PhpMyAdmin\Tests\AbstractTestCase;
*/
class OptionsPropertySubgroupTest extends AbstractTestCase
{
/** @var OptionsPropertySubgroup */
protected $object;
/**

View File

@ -9,6 +9,7 @@ namespace PhpMyAdmin\Tests\Properties\Options;
use PhpMyAdmin\Properties\Options\OptionsPropertyGroup;
use PhpMyAdmin\Tests\AbstractTestCase;
use PHPUnit\Framework\MockObject\MockObject;
use ReflectionProperty;
/**
@ -16,6 +17,7 @@ use ReflectionProperty;
*/
class OptionsPropertyGroupTest extends AbstractTestCase
{
/** @var OptionsPropertyGroup|MockObject */
protected $stub;
/**

View File

@ -9,12 +9,14 @@ namespace PhpMyAdmin\Tests\Properties\Options;
use PhpMyAdmin\Properties\Options\OptionsPropertyItem;
use PhpMyAdmin\Tests\AbstractTestCase;
use PHPUnit\Framework\MockObject\MockObject;
/**
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyItem class
*/
class OptionsPropertyItemTest extends AbstractTestCase
{
/** @var OptionsPropertyItem|MockObject */
protected $stub;
/**

View File

@ -9,12 +9,14 @@ namespace PhpMyAdmin\Tests\Properties\Options;
use PhpMyAdmin\Properties\Options\OptionsPropertyOneItem;
use PhpMyAdmin\Tests\AbstractTestCase;
use PHPUnit\Framework\MockObject\MockObject;
/**
* Tests for PhpMyAdmin\Properties\Options\OptionsPropertyOneItem class
*/
class OptionsPropertyOneItemTest extends AbstractTestCase
{
/** @var OptionsPropertyOneItem|MockObject */
protected $stub;
/**

View File

@ -9,12 +9,14 @@ namespace PhpMyAdmin\Tests\Properties;
use PhpMyAdmin\Properties\PropertyItem;
use PhpMyAdmin\Tests\AbstractTestCase;
use PHPUnit\Framework\MockObject\MockObject;
/**
* Tests for PhpMyAdmin\Properties\PropertyItem class
*/
class PropertyItemTest extends AbstractTestCase
{
/** @var PropertyItem|MockObject */
protected $stub;
/**