Skip to content

Commit 4ee9f72

Browse files
authored
Merge branch '4.4-dev' into 4.4/application-input
2 parents 7ba9127 + 9524415 commit 4ee9f72

File tree

33 files changed

+1022
-704
lines changed

33 files changed

+1022
-704
lines changed

administrator/modules/mod_menu/src/Menu/CssMenu.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class CssMenu
7171
/**
7272
* The application
7373
*
74-
* @var boolean
74+
* @var CMSApplication
7575
*
7676
* @since 4.0.0
7777
*/
@@ -249,7 +249,7 @@ protected function check($node, Registry $params)
249249
*
250250
* @param AdministratorMenuItem $parent A menu item to process
251251
*
252-
* @return array
252+
* @return void
253253
*
254254
* @since 3.8.0
255255
*/

administrator/modules/mod_privacy_status/src/Helper/PrivacyStatusHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,7 @@ public static function getRequestFormPublished()
6868
'published' => false,
6969
'link' => '',
7070
];
71+
$lang = '';
7172

7273
$db = Factory::getDbo();
7374
$query = $db->getQuery(true)
@@ -102,8 +103,6 @@ public static function getRequestFormPublished()
102103
// Add language to the url if the site is multilingual
103104
if (Multilanguage::isEnabled() && $menuItem->language && $menuItem->language !== '*') {
104105
$lang = '&lang=' . $menuItem->language;
105-
} else {
106-
$lang = '';
107106
}
108107
}
109108

administrator/modules/mod_quickicon/src/Helper/QuickIconHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,8 @@ class QuickIconHelper
4242
* This method returns the array by reference so it can be
4343
* used to add custom buttons or remove default ones.
4444
*
45-
* @param Registry $params The module parameters
46-
* @param CMSApplication $application The application
45+
* @param Registry $params The module parameters
46+
* @param ?CMSApplication $application The application
4747
*
4848
* @return array An array of buttons
4949
*

libraries/src/Helper/CMSHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ public function getDataObject(TableInterface $table)
128128

129129
foreach ($fields as $field) {
130130
$fieldName = $field->Field;
131-
$dataObject->$fieldName = $table->get($fieldName);
131+
$dataObject->$fieldName = $table->$fieldName ?? null;
132132
}
133133

134134
return $dataObject;

libraries/src/Helper/MediaHelper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -196,9 +196,9 @@ public static function checkFileExtension($extension, $component = 'com_media',
196196
/**
197197
* Checks if the file can be uploaded
198198
*
199-
* @param array $file File information
200-
* @param string $component The option name for the component storing the parameters
201-
* @param string $allowedExecutables Array of executable file types that shall be whitelisted
199+
* @param array $file File information
200+
* @param string $component The option name for the component storing the parameters
201+
* @param string[] $allowedExecutables Array of executable file types that shall be whitelisted
202202
*
203203
* @return boolean
204204
*

libraries/src/Helper/ModuleHelper.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,12 +599,11 @@ public static function moduleCache($module, $moduleparams, $cacheparams)
599599
break;
600600

601601
case 'safeuri':
602-
$secureid = null;
602+
$safeuri = new \stdClass();
603603

604604
if (\is_array($cacheparams->modeparams)) {
605605
$input = $app->getInput();
606606
$uri = $input->getArray();
607-
$safeuri = new \stdClass();
608607
$noHtmlFilter = InputFilter::getInstance();
609608

610609
foreach ($cacheparams->modeparams as $key => $value) {

libraries/src/Helper/TagsHelper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public function addTagMapping($ucmId, TableInterface $table, $tags = [])
108108
$typeId = $ucm->getTypeId();
109109

110110
// Insert the new tag maps
111-
if (strpos('#', implode(',', $tags)) === false) {
111+
if (strpos(implode(',', $tags), '#') !== false) {
112112
$tags = self::createTagsFromField($tags);
113113
}
114114

@@ -1044,7 +1044,7 @@ public function tagDeleteInstances($tagId)
10441044
*/
10451045
public function tagItem($ucmId, TableInterface $table, $tags = [], $replace = true)
10461046
{
1047-
$key = $table->get('_tbl_key');
1047+
$key = $table->getKeyName();
10481048
$oldTags = $this->getTagIds((int) $table->$key, $this->typeAlias);
10491049
$oldTags = explode(',', $oldTags);
10501050
$result = $this->unTagItem($ucmId, $table);

libraries/src/Helper/UserGroupsHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ final class UserGroupsHelper
4242
/**
4343
* Singleton instance.
4444
*
45-
* @var array
45+
* @var UserGroupsHelper
4646
* @since 3.6.3
4747
*/
4848
private static $instance;

libraries/src/Tree/NodeInterface.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ interface NodeInterface extends ImmutableNodeInterface
2525
*
2626
* If the node already has a parent, the link is unset
2727
*
28-
* @param NodeInterface|null $parent NodeInterface for the parent to be set or null
28+
* @param NodeInterface $parent NodeInterface for the parent to be set
2929
*
3030
* @return void
3131
*

libraries/src/Tree/NodeTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ trait NodeTrait
2727
*
2828
* If the node already has a parent, the link is unset
2929
*
30-
* @param NodeInterface|null $parent NodeInterface for the parent to be set or null
30+
* @param NodeInterface $parent NodeInterface for the parent to be set
3131
*
3232
* @return void
3333
*

0 commit comments

Comments
 (0)