diff --git a/src/Plugin/Block/PhpInsightsBlock.php b/src/Plugin/Block/PhpInsightsBlock.php index 8de648c..6c6f456 100644 --- a/src/Plugin/Block/PhpInsightsBlock.php +++ b/src/Plugin/Block/PhpInsightsBlock.php @@ -45,7 +45,18 @@ class PhpInsightsBlock extends BlockBase implements ContainerFactoryPluginInterf protected $newTab; /** - * {@inheritDoc} + * The constructor. + * + * @param array $configuration + * The configuration. + * @param $plugin_id + * The plugin ID. + * @param $plugin_definition + * The plugin definition. + * @param \Drupal\Core\Config\ConfigFactoryInterface $config_factory + * The config factory. + * @param \Drupal\Core\Cache\CacheBackendInterface $cache_backend + * The backend cache. */ public function __construct(array $configuration, $plugin_id, $plugin_definition, ConfigFactoryInterface $config_factory, CacheBackendInterface $cache_backend) { parent::__construct($configuration, $plugin_id, $plugin_definition); @@ -221,7 +232,7 @@ class PhpInsightsBlock extends BlockBase implements ContainerFactoryPluginInterf $behance_fields = json_decode($behance_fields_json, TRUE); $tags = []; - foreach ($behance_fields['fields'] as $key => $behance_field) { + foreach ($behance_fields['fields'] as $behance_field) { $tags[$behance_field['name']] = $behance_field['id']; } return $tags;