Your project controllers should only contains actions as public methods 2

More information: https://insight.symfony.com/what-we-analyse/symfony.controller.non_action_public_method_in_controller_class

  1. protected int $criticalExitCode,
  2. protected ?string $authToken = null
  3. ) {
  4. }
  5. public function __invoke(Request $request, MonitoringManager $monitoringManager, SerializerInterface $serializer): Response

    Non-action public method found in controller class

    Time to fix: about 1 hour
    Read doc Open Issue Permalink
    Last edited by Ueli Banholzer
  6. {
  7. if ($this->authToken !== null
  8. && $request->headers->get('X-Auth-Token', '') !== $this->authToken) {
  9. return new Response('Unauthorized', 401);
  10. }
  • whatwedo

    Ignored on Sat, 07 Jan 2023 02:21:05 GMT
  1. use Symfony\Component\HttpFoundation\Response;
  2. use whatwedo\MonitorBundle\Manager\MonitoringManager;
  3. class DashboardController extends AbstractController
  4. {
  5. public function __invoke(MonitoringManager $monitoringManager): Response

    Non-action public method found in controller class

    Time to fix: about 1 hour
    Read doc Open Issue Permalink
    Last edited by Ueli Banholzer
  6. {
  7. return $this->render('@whatwedoMonitor/dashboard.html.twig', [
  8. 'result' => $monitoringManager->getResult(),
  9. ]);
  10. }
  • whatwedo

    Ignored on Sat, 07 Jan 2023 02:21:09 GMT

The code of your project must follow PSR-1 basic coding standard 2

More information: https://insight.symfony.com/what-we-analyse/php.psr1

  1. /**
  2. * This is the class that loads and manages your bundle configuration.
  3. *
  4. * @see http://symfony.com/doc/current/cookbook/bundles/extension.html
  5. */
  6. class whatwedoMonitorExtension extends Extension implements PrependExtensionInterface

    Class names should be declared in StudlyCaps.
    You should rename this class to comply with PSR-1.

    Time to fix: about 15 minutes
    Read doc Open Issue Permalink
    Last edited by Ueli Banholzer
  7. {
  8. public function load(array $configs, ContainerBuilder $container): void
  9. {
  10. $configuration = new Configuration();
  11. $config = $this->processConfiguration($configuration, $configs);
  • whatwedo

    Ignored on Sat, 07 Jan 2023 02:21:13 GMT
  1. use Symfony\Component\DependencyInjection\ContainerBuilder;
  2. use Symfony\Component\HttpKernel\Bundle\Bundle;
  3. use whatwedo\MonitorBundle\DependencyInjection\CompilerPass\AttributeCompilerPass;
  4. class whatwedoMonitorBundle extends Bundle

    Class names should be declared in StudlyCaps.
    You should rename this class to comply with PSR-1.

    Time to fix: about 15 minutes
    Read doc Open Issue Permalink
    Last edited by Ueli Banholzer
  5. {
  6. public function build(ContainerBuilder $container): void
  7. {
  8. parent::build($container);
  • whatwedo

    Ignored on Sat, 07 Jan 2023 02:21:15 GMT