diff --git a/src/Plugin/VersionNegotiation/VersionByRel.php b/src/Plugin/VersionNegotiation/VersionByRel.php index 3fdc748..33b31f3 100644 --- a/src/Plugin/VersionNegotiation/VersionByRel.php +++ b/src/Plugin/VersionNegotiation/VersionByRel.php @@ -24,7 +24,7 @@ use Drupal\jsonapi\Revisions\VersionNotFoundException; class VersionByRel extends PluginNegotiationBase implements ContainerFactoryPluginInterface, VersionNegotiationInterface { /** - * The name of the negotiatior. + * The name of the negotiator. * * @var string */ diff --git a/src/ResourceType/ResourceTypeRepository.php b/src/ResourceType/ResourceTypeRepository.php index 9953736..fdd5b53 100644 --- a/src/ResourceType/ResourceTypeRepository.php +++ b/src/ResourceType/ResourceTypeRepository.php @@ -295,9 +295,7 @@ class ResourceTypeRepository implements ResourceTypeRepositoryInterface { * TRUE if the entity type is versionable, FALSE otherwise. */ protected static function isVersionableResourceType(EntityTypeInterface $entity_type) { - $is_versionable_storage = is_subclass_of( - $entity_type->getStorageClass(), - RevisionableStorageInterface::class); + $is_versionable_storage = is_subclass_of($entity_type->getStorageClass(), RevisionableStorageInterface::class); return $is_versionable_storage && $entity_type->isRevisionable(); } diff --git a/src/Revisions/VersionNegotiationManager.php b/src/Revisions/VersionNegotiationManager.php index 7450210..b58d710 100644 --- a/src/Revisions/VersionNegotiationManager.php +++ b/src/Revisions/VersionNegotiationManager.php @@ -47,7 +47,7 @@ class VersionNegotiationManager extends DefaultPluginManager { // Only discover plugins provided by JSON API. This is an internal API. $internal = new \ArrayIterator(array_intersect_key(iterator_to_array($namespaces), array_flip(['Drupal\jsonapi']))); parent::__construct('Plugin/VersionNegotiation', $internal, $module_handler, 'Drupal\jsonapi\Revisions\VersionNegotiationInterface', 'Drupal\jsonapi\Revisions\Annotation\VersionNegotiation'); - $this->setCacheBackend($cache_backend, 'revision_id_negoriation_info_plugins'); + $this->setCacheBackend($cache_backend, 'revision_id_negotiation_info_plugins'); } /**