Code Duplication    Length = 15-18 lines in 2 locations

module/Auth/src/Auth/Controller/UsersController.php 1 location

@@ 46-60 (lines=15) @@
43
     *
44
     * @return \Zend\Http\Response|ViewModel
45
     */
46
    public function listAction()
47
    {
48
        return $this->pagination([
49
            'paginator' => ['Auth/User', 'as' => 'users'],
50
            'form' => [
51
                'Core/Search',
52
                [
53
                    'text_name' => 'text',
54
                    'text_placeholder' => /*@translate*/ 'Type name, email address, role, or login name',
55
                    'button_element' => 'text',
56
                ],
57
                'as' => 'form'
58
            ],
59
        ]);
60
    }
61
62
    /**
63
     * Edit user

module/Organizations/src/Organizations/Controller/IndexController.php 1 location

@@ 89-106 (lines=18) @@
86
     *
87
     * @return array
88
     */
89
    public function indexAction()
90
    {
91
        return $this->pagination([
92
            'paginator' => [
93
                'Organizations/Organization',
94
                'as' => 'organizations'
95
            ],
96
            'form' => [
97
                'Core/Search',
98
                [
99
                    'text_name' => 'text',
100
                    'text_placeholder' => /*@translate*/ 'Search for organizations',
101
                    'button_element' => 'text'
102
                ],
103
                'as' => 'form'
104
            ]
105
        ]);
106
    }
107
     
108
     
109
    /**