Release of v3.2.5

Add [AllowDynamicProperties] in the base view class for J5. Move the _prepareDocument  above the display call in the base view class. Remove all backward compatibility issues, so JCB will not need the [Backward Compatibility] plugin to run. Added new import powers for custom import of spreadsheets. Move the setDocument and _prepareDocument above the display in the site view and custom admin view. Update the trashhelper layout to work in Joomla 5. Add AllowDynamicProperties (Joomla 4+5) to view class to allow Custom Dynamic Get methods to work without issues. Fix Save failed issue in dynamicGet. #1148. Move all [TEXT, EDITOR, TEXTAREA] fields from [NOT NULL] to [NULL]. Add the DateHelper class and improve the date methods. Add simple SessionHelper class. Add first classes for the new import engine. Improve the [VDM Registry] to be Joomla Registry Compatible. Move all registries to the [VDM Registry] class. Fix Checked Out to be null and not 0. (#1194). Fix created_by, modified_by, checked_out fields in the compiler of the SQL. (#1194). Update all core date fields in table class. (#1188). Update created_by, modified_by, checked_out fields in table class. Implementation of the decentralized Super-Power CORE repository network. (#1190). Fix the noticeboard to display Llewellyn's Joomla Social feed.
This commit is contained in:
2025-02-14 22:59:16 +02:00
parent 714cb5588a
commit f8b0a5df54
1474 changed files with 133744 additions and 48350 deletions

View File

@@ -186,7 +186,7 @@ class Complex
// Set parsed values in our properties
$this->realPart = (float) $realPart;
$this->imaginaryPart = (float) $imaginaryPart;
$this->suffix = strtolower($suffix);
$this->suffix = strtolower($suffix ?? '');
}
/**
@@ -194,7 +194,7 @@ class Complex
*
* @return Float
*/
public function getReal()
public function getReal(): float
{
return $this->realPart;
}
@@ -204,7 +204,7 @@ class Complex
*
* @return Float
*/
public function getImaginary()
public function getImaginary(): float
{
return $this->imaginaryPart;
}
@@ -214,7 +214,7 @@ class Complex
*
* @return String
*/
public function getSuffix()
public function getSuffix(): string
{
return $this->suffix;
}
@@ -224,7 +224,7 @@ class Complex
*
* @return Bool
*/
public function isReal()
public function isReal(): bool
{
return $this->imaginaryPart == 0.0;
}
@@ -234,12 +234,12 @@ class Complex
*
* @return Bool
*/
public function isComplex()
public function isComplex(): bool
{
return !$this->isReal();
}
public function format()
public function format(): string
{
$str = "";
if ($this->imaginaryPart != 0.0) {
@@ -262,7 +262,7 @@ class Complex
return $str;
}
public function __toString()
public function __toString(): string
{
return $this->format();
}
@@ -274,7 +274,7 @@ class Complex
* @return Complex
* @throws Exception If the argument isn't a Complex number or cannot be converted to one
*/
public static function validateComplexArgument($complex)
public static function validateComplexArgument($complex): Complex
{
if (is_scalar($complex) || is_array($complex)) {
$complex = new Complex($complex);
@@ -290,7 +290,7 @@ class Complex
*
* @return Complex
*/
public function reverse()
public function reverse(): Complex
{
return new Complex(
$this->imaginaryPart,
@@ -299,7 +299,7 @@ class Complex
);
}
public function invertImaginary()
public function invertImaginary(): Complex
{
return new Complex(
$this->realPart,
@@ -308,7 +308,7 @@ class Complex
);
}
public function invertReal()
public function invertReal(): Complex
{
return new Complex(
$this->realPart * -1,
@@ -376,15 +376,13 @@ class Complex
$functionName = strtolower(str_replace('_', '', $functionName));
// Test for function calls
if (in_array($functionName, self::$functions)) {
$functionName = "\\" . __NAMESPACE__ . "\\{$functionName}";
return $functionName($this, ...$arguments);
if (in_array($functionName, self::$functions, true)) {
return Functions::$functionName($this, ...$arguments);
}
// Test for operation calls
if (in_array($functionName, self::$operations)) {
$functionName = "\\" . __NAMESPACE__ . "\\{$functionName}";
return $functionName($this, ...$arguments);
if (in_array($functionName, self::$operations, true)) {
return Operations::$functionName($this, ...$arguments);
}
throw new Exception('Function or Operation does not exist');
throw new Exception('Complex Function or Operation does not exist');
}
}