diff --git a/Documentation/Report.rst b/Documentation/Report.rst index c3c6cb230400ea73f88e5cea10941b112e1cbcfd..7a587a0e90b2164801c268cce7868c714394affd 100644 --- a/Documentation/Report.rst +++ b/Documentation/Report.rst @@ -798,7 +798,7 @@ Column: _link +---+---+--------------+-----------------------------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | | |Text before |v:text before link |v:Some Text |Useful to show text before a link, delivered through `... AS _link`. See :ref:`linkTextBeforeAfter` | +---+---+--------------+-----------------------------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ -| | |Text after |V:text after link |v:Some Text |Useful to show text after a link, delivered through `... AS _link`. See :ref:`linkTextBeforeAfter` | +| | |Text after |V:text after link |V:Some Text |Useful to show text after a link, delivered through `... AS _link`. See :ref:`linkTextBeforeAfter` | +---+---+--------------+-----------------------------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ | | |File |F:<filename> |F:fileadmin/file.pdf |Element source for download mode file|pdf|zip. See :ref:`download`. | +---+---+--------------+-----------------------------------+---------------------------+----------------------------------------------------------------------------------------------------------------------------------------+ @@ -961,7 +961,7 @@ Text before / after link ^^^^^^^^^^^^^^^^^^^^^^^^ * Renders text before and/or after a link. -* Example: `SELECT 'p:{{pageAlias:T}}|t:Reload|v:Some text before |v: some text after' AS _link` +* Example: `SELECT 'p:{{pageAlias:T}}|t:Reload|v:Some text before |V: some text after' AS _link` * A typical usecase is to get several `AS _link` columns in one HTML table cell, by still using `fbeg,fend`:: 10 { diff --git a/extension/Classes/Core/AbstractBuildForm.php b/extension/Classes/Core/AbstractBuildForm.php index d9a751afc5d8d535a2ba5b2cb567dde590c671f8..75cb5b9b8e6b6b4bc8ebb4cb1ce9ed400d7616ac 100644 --- a/extension/Classes/Core/AbstractBuildForm.php +++ b/extension/Classes/Core/AbstractBuildForm.php @@ -219,6 +219,8 @@ abstract class AbstractBuildForm { $array = $processRow + $array; } } + // Importat to destroy the reference (further usage) + unset ($array); // No rows: nothing to do. if (empty($parentRecords)) { @@ -913,9 +915,9 @@ abstract class AbstractBuildForm { case FE_TYPE_TIME: $elementHtml = DateTime::buildDateTime($formElement, $htmlFormElementName, $value, $jsonElement, $this->formSpec, $this->store, $mode, $this->wrap[WRAP_SETUP_ELEMENT][WRAP_SETUP_CLASS]); //needed for datepicker to be positioned correctly - if($flagMulti==true){ - $elementHtml = Support::wrapTag('<div class="col-d-12 col-lg-12">', $elementHtml); - } + if ($flagMulti == true) { + $elementHtml = Support::wrapTag('<div class="col-d-12 col-lg-12">', $elementHtml); + } break; case FE_TYPE_TEXT: case FE_TYPE_PASSWORD: @@ -1537,7 +1539,7 @@ abstract class AbstractBuildForm { // when size empty but value contains \n then set auto multi line if (strpos($value, "\n") == true && empty($formElement[FE_SIZE])) { - $formElement[FE_SIZE]='50,2'; + $formElement[FE_SIZE] = '50,2'; } // Check for input type 'textarea'. Possible notation: a) '', b) '<width>', c) '<width>,<height>', d) '<width>,<min-height>,<max-height>' @@ -3557,7 +3559,7 @@ abstract class AbstractBuildForm { $attribute .= Support::doAttribute('data-config', $json, true); $minMax = explode(',', $formElement[FE_SIZE], 2); - if(isset($minMax[0]) && $minMax[0] !== '') { + if (isset($minMax[0]) && $minMax[0] !== '') { $attribute .= Support::doAttribute('data-height', $minMax[0]); } diff --git a/extension/Classes/Core/Constants.php b/extension/Classes/Core/Constants.php index 2f62fe5ae5e4e7e966d7190c8825c78b51df699e..98451e63998d382f79580c251a4de6889d3b213f 100644 --- a/extension/Classes/Core/Constants.php +++ b/extension/Classes/Core/Constants.php @@ -1943,7 +1943,7 @@ const NAME_SIP = 'sip'; const NAME_URL_PARAM = 'param'; const NAME_RIGHT = 'picturePositionRight'; const NAME_ACTION_DELETE = 'actionDelete'; -const NAME_ORDER_TEXT ='orderText'; +const NAME_ORDER_TEXT = 'orderText'; const NAME_ORDER_TEXT_WRAP = 'orderTextWrap'; const NAME_EXTRA_CONTENT_WRAP = 'extraContentWrap'; const NAME_FILE = 'file'; diff --git a/extension/Classes/Core/QuickFormQuery.php b/extension/Classes/Core/QuickFormQuery.php index 5ed093c19c138ffad2c143fbd5c349e08f1706fe..05eeb74e16153b41b4a12b4456bb11346dc6d210 100644 --- a/extension/Classes/Core/QuickFormQuery.php +++ b/extension/Classes/Core/QuickFormQuery.php @@ -1846,7 +1846,7 @@ class QuickFormQuery { Support::doAttribute('title', 'Save & Reload'); $saveBtnIcon = Support::renderGlyphIcon(GLYPH_ICON_CHECK); $saveBtn = Support::wrapTag("<button $saveBtnAttributes>", $saveBtnIcon); - $saveBtn .= '<div style="clear:both;"></div>'; + $saveBtn .= '<div style="clear:both;"></div>'; $header = "Page: $pageTitle Content ID: $uid<br>$reportPathFileNameFullHtml"; $headerInput = '<div style="display: flex;"> <div style="display: flex; flex-direction: column; margin-right: 10px; width: 50%;"> diff --git a/extension/Classes/Core/Report/RestClient.php b/extension/Classes/Core/Report/RestClient.php index 675519bb7e5d72a4e40e2b0f97621970e9e77214..112b0154e6ab2a5c527990665cc9c8b0ff1f880a 100644 --- a/extension/Classes/Core/Report/RestClient.php +++ b/extension/Classes/Core/Report/RestClient.php @@ -106,11 +106,11 @@ class RestClient { $param[TOKEN_L_CONTENT] = trim($param[TOKEN_L_CONTENT]) ?? ''; - if(!empty($param[TOKEN_L_CONTENT_FILE])){ + if (!empty($param[TOKEN_L_CONTENT_FILE])) { $param[TOKEN_L_CONTENT_FILE] = trim($param[TOKEN_L_CONTENT_FILE]) ?? ''; } - if(!empty($param[TOKEN_L_HEADER])){ + if (!empty($param[TOKEN_L_HEADER])) { $param[TOKEN_L_HEADER] = trim($param[TOKEN_L_HEADER]); } diff --git a/extension/Classes/Core/Save.php b/extension/Classes/Core/Save.php index ea55fa131b52555fa74ba7769aaac36bc77bca85..3b8414ebac28f30f7f62e7b9e9d0f899e7b9828a 100644 --- a/extension/Classes/Core/Save.php +++ b/extension/Classes/Core/Save.php @@ -558,7 +558,7 @@ class Save { case 'ul': case 'ol': $listFlag = true; - break; + break; case 'textDecoration': case 'u': case 'ins': diff --git a/extension/Classes/Core/Store/FillStoreForm.php b/extension/Classes/Core/Store/FillStoreForm.php index 3dc13e177d71b4f370f30d5cfb52a15e13638a6b..9527a94a4d0a23e99543278d64e8749e07201ce6 100644 --- a/extension/Classes/Core/Store/FillStoreForm.php +++ b/extension/Classes/Core/Store/FillStoreForm.php @@ -330,7 +330,7 @@ class FillStoreForm { $newValues[$formElement[FE_NAME]] = $val; // empty select, radio and checkbox elements used to be 0 for correct handling - if(($formElement[FE_TYPE] === FE_TYPE_SELECT || $formElement[FE_TYPE] === FE_TYPE_RADIO || $formElement[FE_TYPE] === FE_TYPE_CHECKBOX) && $val == '') { + if (($formElement[FE_TYPE] === FE_TYPE_SELECT || $formElement[FE_TYPE] === FE_TYPE_RADIO || $formElement[FE_TYPE] === FE_TYPE_CHECKBOX) && $val == '') { $newValues[$formElement[FE_NAME]] = 0; } } diff --git a/extension/Classes/Core/Store/Sip.php b/extension/Classes/Core/Store/Sip.php index b4c73c12d03fa3c1be20668d9ff7c1b064f58c3d..4778dcbc495972f5e80741d2acfe55d0dc8ebdff 100644 --- a/extension/Classes/Core/Store/Sip.php +++ b/extension/Classes/Core/Store/Sip.php @@ -8,7 +8,7 @@ namespace IMATHUZH\Qfq\Core\Store; - + use IMATHUZH\Qfq\Core\Exception\Thrower; use IMATHUZH\Qfq\Core\Helper\KeyValueStringParser; use IMATHUZH\Qfq\Core\Helper\OnArray;