Skip to content

Commit

Permalink
version 2.4.9
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheexakat committed Sep 7, 2022
1 parent 010c443 commit 0f3d9c6
Show file tree
Hide file tree
Showing 10 changed files with 729 additions and 541 deletions.
2 changes: 1 addition & 1 deletion Annex.rst
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ List of external links mentioned in this documentation.
* `PHP Tags <https://www.php.net/manual/en/language.basic-syntax.phptags.php>`_
* `plantuml <http://plantuml.com/>`_
* `PMB <https://www.sigb.net/>`_
* `Povilas Korop <https://twitter.com/PovilasKorop>`_
* `Prepare for PHP migration with Exakat <https://www.exakat.io/prepare-for-php-migration-with-exakat/>`_
* `printf <https://www.php.net/printf>`_
* `PSR-3 <https://www.php-fig.org/psr/psr-3>`_
Expand All @@ -157,7 +158,6 @@ List of external links mentioned in this documentation.
* `RFC 822 (MIME) <http://www.faqs.org/rfcs/rfc822.html>`_
* `RFC 959 <http://www.faqs.org/rfcs/rfc959>`_
* `Scope Resolution Operator (::) <https://www.php.net/manual/en/language.oop5.paamayim-nekudotayim.php>`_
* `Show of hands: which syntax would you prefer in a PHP function - A, B or C? <https://twitter.com/exakat/status/1542585298562998274>`_
* `Specification pattern <https://en.wikipedia.org/wiki/Specification_pattern>`_
* `sqlite3 <http://www.php.net/sqlite3>`_
* `Static Keyword <https://www.php.net/manual/en/language.oop5.static.php>`_
Expand Down
18 changes: 8 additions & 10 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,6 @@ Here is the release note of exakat.
**Version 2.4.9 (Wang Gui, 2022-09-07)**


+ Architecture
+

+ Cobbler
+

+ Report
+

+ Analysis
+ Refactored analysis : Uses Default now supports PDFF and functions
+ Refactored analysis : Using PDFF with ext/seaslog and ext/memcache
Expand All @@ -52,9 +43,16 @@ Here is the release note of exakat.
+ Refactored analysis : Uses default argument skips Virtualproperties
+ New analysis : Complete/SolveTraitConstants adds support for constants in traits (PHP 8.2)
+ Refactored analysis : Complete/SetParentDefinition was trimmed of 2 useless queries
+ Refactored analysis : PPP declaration style
+ Refactored analysis : Is Global Constant (removed usage of .ini)
+ Refactored analysis : Overwritten* are simplified for speed up and deduplication
+ Refactored analysis : UndefinedClasses speed up
+ Refactored analysis : Should Preprocess now adds Heredocs and skips variables inside strings
+ Refactored analysis : Should use Ternary now skips elsif
+ Refactored analysis : ext/fann now use pdff

+ Tokenizer
+
+ Added support for PHP keywords in namespace names.

**Version 2.4.8 (Xue Rengui, 2022-08-24)**

Expand Down
48 changes: 24 additions & 24 deletions Reference/Cases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7879,30 +7879,6 @@ Here, the new exception gets an hardcoded message. More details about the reason
}
.. _case-should-make-ternary:

Should Make Ternary
###################

.. _case-churchcrm-structures-shouldmaketernary:

ChurchCRM
+++++++++


:ref:`should-make-ternary`, in src/CartToFamily.php:57.

$sState could be the receiving part of a ternary operator.

.. code-block:: php
if ($sCountry == 'United States' || $sCountry == 'Canada') {
$sState = InputUtils::LegacyFilterInput($_POST['State']);
} else {
$sState = InputUtils::LegacyFilterInput($_POST['StateTextbox']);
}
.. _case-should-preprocess-chr():

Should Preprocess Chr()
Expand Down Expand Up @@ -8267,6 +8243,30 @@ This code is well escaped, as the integer type cast will prevent any special cha
$db->query("DELETE FROM " . MAIN_DB_PREFIX . "product_pricerules WHERE level = " . (int) $i)
.. _case-should-use-ternary-operator:

Should Use Ternary Operator
###########################

.. _case-churchcrm-structures-shouldmaketernary:

ChurchCRM
+++++++++


:ref:`should-use-ternary-operator`, in src/CartToFamily.php:57.

$sState could be the receiving part of a ternary operator.

.. code-block:: php
if ($sCountry == 'United States' || $sCountry == 'Canada') {
$sState = InputUtils::LegacyFilterInput($_POST['State']);
} else {
$sState = InputUtils::LegacyFilterInput($_POST['StateTextbox']);
}
.. _case-should-use-array\_filter():

Should Use array_filter()
Expand Down
28 changes: 14 additions & 14 deletions Reference/Cobblers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ _______________
Specs
_____

+----------------+--------------------------------------------+
| Short Name | Structures/AddBracketsToSingleInstructions |
+----------------+--------------------------------------------+
| Exakat version | 2.4.6 |
+----------------+--------------------------------------------+
| Available in | |
+----------------+--------------------------------------------+
+----------------+------------------------------------------------------------------+
| Short Name | Structures/AddBracketsToSingleInstructions |
+----------------+------------------------------------------------------------------+
| Exakat version | 2.4.6 |
+----------------+------------------------------------------------------------------+
| Available in | `Entreprise Edition <https://www.exakat.io/entreprise-edition>`_ |
+----------------+------------------------------------------------------------------+


.. _classes-addfinalclass:
Expand Down Expand Up @@ -776,13 +776,13 @@ _______________
Specs
_____

+----------------+--------------------------------------------------+
| Short Name | Structures/RemoveBracketsAroundSingleInstruction |
+----------------+--------------------------------------------------+
| Exakat version | 2.3.0 |
+----------------+--------------------------------------------------+
| Available in | |
+----------------+--------------------------------------------------+
+----------------+------------------------------------------------------------------+
| Short Name | Structures/RemoveBracketsAroundSingleInstruction |
+----------------+------------------------------------------------------------------+
| Exakat version | 2.3.0 |
+----------------+------------------------------------------------------------------+
| Available in | `Entreprise Edition <https://www.exakat.io/entreprise-edition>`_ |
+----------------+------------------------------------------------------------------+


.. _structures-removedollarcurly:
Expand Down
2 changes: 1 addition & 1 deletion Reference/Reports.rst
Original file line number Diff line number Diff line change
Expand Up @@ -2588,7 +2588,7 @@ This report builds a configuration file for php-cs-fixer.
+ :ref:`else-if-versus-elseif` : **elseif**
+ :ref:`multiple-unset()` : **combine_consecutive_unsets**
+ Classes/DontUnsetProperties: **no_unset_on_property**
+ :ref:`use-constant` : **function_to_constant**
+ :ref:`use-constant-instead-of-function` : **function_to_constant**
+ :ref:`php7-dirname` : **combine_nested_dirname**
+ :ref:`could-use-\_\_dir\_\_` : **dir_constant**
+ :ref:`isset-multiple-arguments` : **combine_consecutive_issets**
Expand Down

0 comments on commit 0f3d9c6

Please sign in to comment.