Compare commits

...

7 commits

Author SHA1 Message Date
d9e1060641 Merge branch 'develop' into feature/flow-8.2 2023-02-07 16:45:20 +01:00
b77e4f391b Only Code-Style and doc-type hints 2023-02-07 16:44:52 +01:00
Dustin Hauer
5cbd1340cd Merge branch 'version/2.x-dev' into develop
* version/2.x-dev:
2023-01-11 12:08:49 +01:00
Dustin Hauer
3a08a677bd Merge branch 'version/2.x' into version/2.x-dev
* version/2.x:
2023-01-11 12:07:40 +01:00
Dustin Hauer
bb648cee60 Merge branch 'version/2.x-dev' into version/2.x
* version/2.x-dev:
  TASK: Apply migration Neos.Flow-20180415105700
  TASK: Apply migration DigiComp.SettingValidator-20170603120900
  allow neos/flow ~5.3
2023-01-11 12:07:07 +01:00
Dustin Hauer
277835311c Merge branch 'feature/flow-5.3' into version/2.x-dev
* feature/flow-5.3:
  TASK: Apply migration Neos.Flow-20180415105700
  TASK: Apply migration DigiComp.SettingValidator-20170603120900
  allow neos/flow ~5.3
2023-01-11 12:06:34 +01:00
f32f995f43 Merge tag '3.0.0' into develop
Tagging 3.0.0
2021-08-26 11:20:06 +02:00
3 changed files with 6 additions and 8 deletions

View file

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

View file

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

View file

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