Merge branch 'develop' into feature/flow-8.2
This commit is contained in:
commit
d9e1060641
3 changed files with 6 additions and 8 deletions
|
@ -20,7 +20,7 @@ interface ServiceInterface
|
|||
/**
|
||||
* @param string|null $forPath
|
||||
*
|
||||
* @return array|\Iterator
|
||||
* @return \Iterator
|
||||
*/
|
||||
public function getItems(string $forPath = null): \Iterator;
|
||||
}
|
||||
|
|
|
@ -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'];
|
||||
}
|
||||
);
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue