Code Duplication    Length = 4-4 lines in 2 locations

app/controllers/Grid.php 1 location

@@ 28-31 (lines=4) @@
25
        ];
26
27
        $items = array();
28
        for($i = 0; $i < $args['count']; $i++) {
29
            $item['name'] = "Item $i";
30
            $items[] = $item;
31
        }
32
        $config['items'] = $items;
33
34
   		return $this->container->theme->render($response, $view, $config);

app/controllers/Examples.php 1 location

@@ 86-89 (lines=4) @@
83
        $max = (int)$args['param'];
84
        $this->container->logger->debug("param: ".$max);
85
86
        for($i = 0; $i < $max; $i++) {
87
            $item['name'] = "Item $i";
88
            $items[] = $item;
89
        }
90
91
        $themeData['args'] = $args;
92
        $themeData['page'] = [