for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* The MIT License (MIT)
*
* Copyright (c) 2014-2016 Spomky-Labs
* This software may be modified and distributed under the terms
* of the MIT license. See the LICENSE file for details.
*/
namespace SpomkyLabs\JoseBundle\Routing;
use Symfony\Component\Config\Loader\LoaderInterface;
use Symfony\Component\Config\Loader\LoaderResolver;
use Symfony\Component\Routing\Route;
use Symfony\Component\Routing\RouteCollection;
final class JWKSetLoader implements LoaderInterface
{
/**
* @var bool
private $loaded = false;
$loaded
This check marks private properties in classes that are never used. Those properties can be removed.
* @var \Symfony\Component\Routing\RouteCollection
private $routes;
* JWKSetLoader Constructor
public function __construct()
$this->routes = new RouteCollection();
}
* @param string $pattern
* @param string $service
public function addJWKSetRoute($pattern, $service)
$defaults =['_controller' => $service.':handleAction'];
$route = new Route($pattern, $defaults);
$this->routes->add('extraRoute', $route);
* {@inheritdoc}
public function load($resource, $type = null)
return $this->routes;
public function supports($resource, $type = null)
return 'jwkset' === $type;
public function getResolver() {}
public function setResolver(LoaderResolver $resolver) {}
This check marks private properties in classes that are never used. Those properties can be removed.