Skip to content

Commit

Permalink
Merge pull request #1337 from jmolivas/fix-code-warnings-insight-82
Browse files Browse the repository at this point in the history
[console] Fix code warnings insight 82
  • Loading branch information
jmolivas committed Nov 24, 2015
2 parents bd84992 + b301af4 commit 06f0dba
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 12 deletions.
8 changes: 4 additions & 4 deletions src/Command/Views/DebugCommand.php
Expand Up @@ -171,10 +171,10 @@ protected function getAllViews($tag, $status, $output, $table)
* Gets a list of paths assigned to the view.
*
* @param \Drupal\views\Entity\View $view
* The view entity.
* The view entity.
*
* @return array
* An array of paths for this view.
* An array of paths for this view.
*/
protected function getDisplayPaths(View $view, $display_id = null)
{
Expand All @@ -185,8 +185,8 @@ protected function getDisplayPaths(View $view, $display_id = null)
if ($display->hasPath()) {
$path = $display->getPath();
if (strpos($path, '%') === false) {
// @todo Views should expect and store a leading /. See:
// https://www.drupal.org/node/2423913
// @see Views should expect and store a leading /. See:
// https://www.drupal.org/node/2423913
$all_paths[] = '/'.$path;
} else {
$all_paths[] = '/'.$path;
Expand Down
1 change: 0 additions & 1 deletion src/Helper/DrupalHelper.php
Expand Up @@ -182,7 +182,6 @@ public function setMinimalContainerPreKernel()
// Create a minimal mocked container to support calls to t() in the pre-kernel
// base system verification code paths below. The strings are not actually
// used or output for these calls.
// @todo Separate API level checks from UI-facing error messages.
$container = new ContainerBuilder();
$container->setParameter('language.default_values', Language::$defaultValues);
$container
Expand Down
1 change: 0 additions & 1 deletion src/Helper/KernelHelper.php
Expand Up @@ -104,7 +104,6 @@ public function bootKernel()
public function getKernel()
{
// Add support for Acquia Dev Desktop sites on Mac OS X
// @TODO: Check if this condition works in Windows
$devdesktop_dir = getenv('HOME') . "/.acquia/DevDesktop/DrupalSettings";
if (file_exists($devdesktop_dir)) {
$_SERVER['DEVDESKTOP_DRUPAL_SETTINGS_DIR'] = $devdesktop_dir;
Expand Down
2 changes: 1 addition & 1 deletion src/Helper/SiteHelper.php
Expand Up @@ -49,7 +49,7 @@ public function setSiteRoot($siteRoot)
private function discoverModules()
{
/*
* @todo Remove DrupalExtensionDiscovery subclass once
* @see Remove DrupalExtensionDiscovery subclass once
* https://www.drupal.org/node/2503927 is fixed.
*/
$discovery = new DrupalExtensionDiscovery(\Drupal::root());
Expand Down
2 changes: 1 addition & 1 deletion templates/gitbook/available-commands-list.md.twig
Expand Up @@ -4,7 +4,7 @@
{% endif %}
{% if last_namespace is defined %}

{# @TODO fix empty new line hack #}
{# Empty new line hack #}
{% endif %}
{% spaceless %}
{% for command in commands %}
Expand Down
Expand Up @@ -28,7 +28,7 @@ use Drupal\Core\Form\FormStateInterface;
* }
{% else %}

* @todo: At least one field_types annotation array entry is necessary to display this formatter in the UI.
* At least one field_types annotation array entry is necessary to display this formatter in the UI.
* ex. field_types = { "field_type" }
{% endif %}
* )
Expand Down
Expand Up @@ -32,14 +32,14 @@ use Drupal\Core\TypedData\DataDefinition;
{% endif %}
{% else %}

* @todo: Create and/or assign a default_widget.
* Create and/or assign a default_widget.
* ex. default_widget = "field_widget"
{% endif %}
{% if default_formatter %}
* default_formatter = "{{ default_formatter }}"
{% else %}

* @todo: Create and/or assign a default_formatter.
* Create and/or assign a default_formatter.
* ex. default_formatter = "field_formatter"
{% endif %}
* )
Expand Down
Expand Up @@ -26,7 +26,7 @@ use Drupal\Core\Form\FormStateInterface;
* }
{% else %}

* @todo: At least one field_types annotation array entry is necessary to display this formatter in the UI.
* At least one field_types annotation array entry is necessary to display this formatter in the UI.
* ex. field_types = { "field_type" }
{% endif %}
* )
Expand Down

0 comments on commit 06f0dba

Please sign in to comment.