Merge branch 'develop' into feature/flow-8.2

This commit is contained in:
Ferdinand Kuhl 2023-02-07 16:45:20 +01:00
commit d9e1060641
3 changed files with 6 additions and 8 deletions

View file

@ -20,7 +20,7 @@ interface ServiceInterface
/**
* @param string|null $forPath
*
* @return array|\Iterator
* @return \Iterator
*/
public function getItems(string $forPath = null): \Iterator;
}

View file

@ -15,8 +15,6 @@ namespace DigiComp\Menu\MenuService;
use Neos\Flow\Annotations as Flow;
/**
* @package DigiComp\Menu\Menu
*
* @Flow\Scope("singleton")
*/
class SettingsService implements ServiceInterface
@ -40,9 +38,9 @@ class SettingsService implements ServiceInterface
$items = &$this->menuConfiguration;
}
if ($items) {
uasort(
\uasort(
$items,
function ($a, $b) {
static function ($a, $b) {
return $a['sorting'] > $b['sorting'];
}
);

View file

@ -53,13 +53,13 @@ class ProgressViewHelper extends AbstractViewHelper
{
$links = $activeStep = $returnable = $stepsAs = $backLinkAs = $activeStepAs = $linksAs =
$activeStepLinkAs = $offset = $linkCount = null;
extract($this->arguments);
\extract($this->arguments, \EXTR_OVERWRITE);
//handling famous off by one
$activeStep -= $offset;
//make sure our array index is numeric
$links = array_values($links);
$links = \array_values($links);
if (!$linkCount) {
$linkCount = count($links);
$linkCount = \count($links);
}
foreach ($links as $i => &$link) {
$link['completed'] = $activeStep > $i;