Skip to content

Commit

Permalink
Fixing bugs related to quotes.
Browse files Browse the repository at this point in the history
  • Loading branch information
christopheexakat committed Dec 13, 2023
1 parent cfb1b3b commit 0cbe844
Show file tree
Hide file tree
Showing 8 changed files with 527 additions and 398 deletions.
8 changes: 8 additions & 0 deletions Changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,18 @@ Here is the release note of exakat.
+ New analysis : report $array[count($array)] append system
+ Updated analysis : unknown directive names cover more PHP functions and combinaisons
+ New analysis : report when void is returned by reference in a method
+ Updated analysis : Can Count Iterable was upgraded with types
+ New analysis : can't call a generator directly
+ New analysis : report useless trailing comma
+ Removed analysis : propagate calls (Complete)
+ New analysis : report non-int and non-string used as index in an array call
+ New analysis : report attempt to instantiate non-class (e, t, i)
+ Updated analysis : Too Many Variables in Method

+ Tokenizer
+ Fixed bug with short assignment left operand not being marked as read as well as written
+ Added fullnspath to Staticclass atom
+ Added support for THROWN, CALLED, YIELDED links in methods

**Version 2.6.2 (, 2023-11-21)**

Expand Down
2 changes: 1 addition & 1 deletion Introduction.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
Introduction
============

This is the documentation of the Exakat engine, version 2.6.2 (Build 1496), on Tue, 21 Nov 2023 15:28:36 +0000.
This is the documentation of the Exakat engine, version 2.6.3 (Build 1496), on Wed, 13 Dec 2023 11:34:00 +0000.

What is Exakat ?
----------------
Expand Down
56 changes: 28 additions & 28 deletions Reference/Cases.rst
Original file line number Diff line number Diff line change
Expand Up @@ -500,6 +500,26 @@ This piece of code inside a 275 lines method. Besides, there are 11 classes that
});
.. _case-assign-and-lettered-logical-operator-precedence:

Assign And Lettered Logical Operator Precedence
###############################################

.. _case-xataface-php-assignand:

xataface
++++++++


:ref:`assign-and-lettered-logical-operator-precedence`, in Dataface/LanguageTool.php:265.

The usage of 'and' here is a workaround for PHP version that have no support for the coalesce. $autosubmit receives the value of $params['autosubmit'] only if the latter is set. Yet, with = having higher precedence over 'and', $autosubmit is mistaken with the existence of $params['autosubmit'] : its value is actually omitted.

.. code-block:: php
$autosubmit = isset($params['autosubmit']) and $params['autosubmit'];
.. _case-assign-default-to-properties:

Assign Default To Properties
Expand Down Expand Up @@ -586,26 +606,6 @@ _isEnabled may default to true. It could also default to a class constant.
$this->_isEnabled = true;
.. _case-assign-with-and-precedence:

Assign With And Precedence
##########################

.. _case-xataface-php-assignand:

xataface
++++++++


:ref:`assign-with-and-precedence`, in Dataface/LanguageTool.php:265.

The usage of 'and' here is a workaround for PHP version that have no support for the coalesce. $autosubmit receives the value of $params['autosubmit'] only if the latter is set. Yet, with = having higher precedence over 'and', $autosubmit is mistaken with the existence of $params['autosubmit'] : its value is actually omitted.

.. code-block:: php
$autosubmit = isset($params['autosubmit']) and $params['autosubmit'];
.. _case-avoid-concat-in-loop:

Avoid Concat In Loop
Expand Down Expand Up @@ -1089,7 +1089,7 @@ The array_walk() function is called on the plugin's list. Each element is regist
$plugins,
function ($plugin) use ($app) {
/** @var Plugin $plugin */
$provider = (strpos($plugin->getClassName(), '\\') === false)
$provider = (strpos($plugin->getClassName(), '\') === false)
? sprintf('phpDocumentor\Plugin\%s\ServiceProvider', $plugin->getClassName())
: $plugin->getClassName();
if (!class_exists($provider)) {
Expand Down Expand Up @@ -9197,20 +9197,20 @@ HuMo-Gen
global $db_functions, $reltext, $sexe, $sexe2, $language, $spantext, $selected_language, $foundX_nr, $rel_arrayX, $rel_arrayspouseX, $spouse;
global $reltext_nor, $reltext_nor2; // for Norwegian and Danish
if($selected_language=="es"){
if($sexe=="m") { $neph=__('nephew'); $span_postfix="o "; $grson='nieto'; }
else { $neph=__('niece'); $span_postfix="a "; $grson='nieta'; }
if($selected_language==es){
if($sexe==m) { $neph=__('nephew'); $span_postfix=o; $grson='nieto'; }
else { $neph=__('niece'); $span_postfix=a; $grson='nieta'; }
//$gendiff = abs($generX - $generY); // FOUT
$gendiff = abs($generX - $generY) - 1;
$gennr=$gendiff-1;
$degree=$grson." ".$gennr.$span_postfix;
$degree=$grson..$gennr.$span_postfix;
if($gendiff ==1) { $reltext=$neph.__(' of ');}
elseif($gendiff > 1 AND $gendiff < 27) {
spanish_degrees($gendiff,$grson);
$reltext=$neph." ".$spantext.__(' of ');
$reltext=$neph..$spantext.__(' of ');
}
else { $reltext=$neph." ".$degree; }
} elseif ($selected_language=="he"){
else { $reltext=$neph..$degree; }
} elseif ($selected_language==he){
if($sexe=='m') { $nephniece = __('nephew'); }
///............
Expand Down

0 comments on commit 0cbe844

Please sign in to comment.