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 = 14-14 lines in 2 locations

Generator/PetkoparaCrudGenerator.php 2 locations

@@ 107-120 (lines=14) @@
104
     *
105
     * @param string $dir The path to the folder that hosts templates in the bundle
106
     */
107
    protected function generateShowView($dir)
108
    {
109
        $this->renderFile('crud/views/show.html.twig.twig', $dir . '/show.html.twig', array(
110
            'bundle' => $this->bundle->getName(),
111
            'entity' => $this->entity,
112
            'entity_singularized' => $this->entitySingularized,
113
            'identifier' => $this->metadata->identifier[0],
114
            'fields' => $this->metadata->fieldMappings,
115
            'actions' => $this->actions,
116
            'route_prefix' => $this->config->getRoutePrefix(),
117
            'route_name_prefix' => $this->routeNamePrefix,
118
            'base_template' => $this->config->getBaseTemplate(),
119
        ));
120
    }
121
122
    /**
123
     * Generates the new.html.twig template in the final bundle.
@@ 146-159 (lines=14) @@
143
     *
144
     * @param string $dir The path to the folder that hosts templates in the bundle
145
     */
146
    protected function generateEditView($dir)
147
    {
148
        $this->renderFile('crud/views/edit.html.twig.twig', $dir . '/edit.html.twig', array(
149
            'route_prefix' => $this->config->getRoutePrefix(),
150
            'route_name_prefix' => $this->routeNamePrefix,
151
            'identifier' => $this->metadata->identifier[0],
152
            'entity' => $this->entity,
153
            'entity_singularized' => $this->entitySingularized,
154
            'fields' => $this->metadata->fieldMappings,
155
            'bundle' => $this->bundle->getName(),
156
            'actions' => $this->actions,
157
            'base_template' => $this->config->getBaseTemplate(),
158
        ));
159
        }
160
161
        /**
162
         * Generates the controller class only.