GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.

Code Duplication    Length = 38-41 lines in 2 locations

src/Application/ControllerProvider/MembersArea/PostsControllerProvider.php 1 location

@@ 11-48 (lines=38) @@
8
/**
9
 * @author Borut Balažek <[email protected]>
10
 */
11
class PostsControllerProvider implements ControllerProviderInterface
12
{
13
    /**
14
     * @param Application $app
15
     *
16
     * @return \Silex\ControllerCollection
17
     */
18
    public function connect(Application $app)
19
    {
20
        $controllers = $app['controllers_factory'];
21
22
        $controllers->match(
23
            '',
24
            'Application\Controller\MembersArea\PostsController::listAction'
25
        )
26
        ->bind('members-area.posts');
27
28
        $controllers->match(
29
            '/new',
30
            'Application\Controller\MembersArea\PostsController::newAction'
31
        )
32
        ->bind('members-area.posts.new');
33
34
        $controllers->match(
35
            '/{id}/edit',
36
            'Application\Controller\MembersArea\PostsController::editAction'
37
        )
38
        ->bind('members-area.posts.edit');
39
40
        $controllers->match(
41
            '/{id}/remove',
42
            'Application\Controller\MembersArea\PostsController::removeAction'
43
        )
44
        ->bind('members-area.posts.remove');
45
46
        return $controllers;
47
    }
48
}
49

src/Application/ControllerProvider/MembersArea/ToolsControllerProvider.php 1 location

@@ 11-51 (lines=41) @@
8
/**
9
 * @author Borut Balažek <[email protected]>
10
 */
11
class ToolsControllerProvider implements ControllerProviderInterface
12
{
13
    /**
14
     * @param Application $app
15
     *
16
     * @return \Silex\ControllerCollection
17
     */
18
    public function connect(Application $app)
19
    {
20
        $controllers = $app['controllers_factory'];
21
22
        $controllers->match(
23
            '',
24
            'Application\Controller\MembersArea\ToolsController::indexAction'
25
        )
26
        ->bind('members-area.tools');
27
28
        /***** Email *****/
29
        $controllers->match(
30
            '/email',
31
            'Application\Controller\MembersArea\Tools\EmailController::indexAction'
32
        )
33
        ->bind('members-area.tools.email');
34
35
        /*** Preview Templates ***/
36
        $controllers->match(
37
            '/email/preview-templates',
38
            'Application\Controller\MembersArea\Tools\EmailController::previewTemplatesAction'
39
        )
40
        ->bind('members-area.tools.email.preview-templates');
41
42
        /***** Database backups *****/
43
        $controllers->match(
44
            '/database-backup',
45
            'Application\Controller\MembersArea\ToolsController::databaseBackupAction'
46
        )
47
        ->bind('members-area.tools.database-backup');
48
49
        return $controllers;
50
    }
51
}
52