GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Passed
Push — 8.x-3.x ( 15461f...110c9b )
by Brant
05:17 queued 10s
created
modules/df/df_tools/df_tools_blocks/df_tools_blocks.module 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
         $icon = $build[$field_name]['#object']->field_icon->getString();
74 74
         if (!empty($icon)) {
75 75
           $wrapper['#children'][$field_name] = [
76
-            '#markup' => '<i class="fa ' . $icon . ' hero-icon"></i>',
76
+            '#markup' => '<i class="fa '.$icon.' hero-icon"></i>',
77 77
             '#allowed_tags' => ['i'],
78 78
           ];
79 79
         }
@@ -87,13 +87,13 @@  discard block
 block discarded – undo
87 87
     // Attach styles.
88 88
     $alignment = $entity->get('field_hero_alignment')->getString();
89 89
     if (preg_match('/^[a-z_]+$/i', $alignment)) {
90
-      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-' . $alignment);
90
+      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-'.$alignment);
91 91
     }
92 92
     $color_regex = '/^#[0-9a-f]{6}$/i';
93 93
     $text_color = $entity->get('field_text_color')->getString();
94 94
     if (preg_match($color_regex, $text_color)) {
95
-      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: ' . $text_color;
96
-      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: ' . $text_color;
95
+      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: '.$text_color;
96
+      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: '.$text_color;
97 97
     }
98 98
     $gradient_color = $entity->get('field_gradient_color')->getString();
99 99
     if (preg_match($color_regex, $gradient_color)) {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
     $callout_color = $entity->get('field_callout_color')->getString();
116 116
     if (preg_match($color_regex, $callout_color)) {
117
-      $style = 'background-color: ' . $callout_color . ';';
117
+      $style = 'background-color: '.$callout_color.';';
118 118
       $hex = trim($callout_color, '#');
119 119
       $r = hexdec(substr($hex, 0, 2));
120 120
       $g = hexdec(substr($hex, 2, 2));
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
167 167
   if (isset($variables['elements']['content']) && isset($variables['elements']['content']['#block_content'])) {
168 168
     /** @var \Drupal\block_content\Entity\BlockContent $entity */
169 169
     $entity = $variables['elements']['content']['#block_content'];
170
-    $suggestions[] = 'block__block_content__' . $entity->bundle();
170
+    $suggestions[] = 'block__block_content__'.$entity->bundle();
171 171
   }
172 172
 }
173 173
 
@@ -355,7 +355,7 @@  discard block
 block discarded – undo
355 355
   // Set up the correct pa$th for the CSV files in this module.
356 356
   $types = ['hero', 'media'];
357 357
   foreach ($types as $type) {
358
-    $id = 'import_block_' . $type;
358
+    $id = 'import_block_'.$type;
359 359
     $definitions[$id]['source']['path'] = str_replace('..', dirname(__FILE__), $definitions[$id]['source']['path']);
360 360
   }
361 361
 }
@@ -416,7 +416,7 @@  discard block
 block discarded – undo
416 416
     // 'Current @Entity_Type' category. If the block is not a field on the
417 417
     // current entity, allow its category to be remapped.
418 418
     if ($category === '@entity') {
419
-      $block_info[$key]['category'] = $info['category']->render() . ' Fields';
419
+      $block_info[$key]['category'] = $info['category']->render().' Fields';
420 420
     }
421 421
     // Place Block Content entities into categories based on their type.
422 422
     elseif ($category === 'Custom') {
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -78,8 +78,7 @@  discard block
 block discarded – undo
78 78
           ];
79 79
         }
80 80
         unset($build[$field_name]);
81
-      }
82
-      elseif ($field_name !== 'field_hero_image') {
81
+      } elseif ($field_name !== 'field_hero_image') {
83 82
         $wrapper['#children'][$field_name] = $build[$field_name];
84 83
         unset($build[$field_name]);
85 84
       }
@@ -122,8 +121,7 @@  discard block
 block discarded – undo
122 121
       if ($r + $g + $b > 382) {
123 122
         $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-light-bg';
124 123
         $style .= 'border-color:black;color:black;';
125
-      }
126
-      else {
124
+      } else {
127 125
         $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-dark-bg';
128 126
         $style .= 'border-color:white;color:white;';
129 127
       }
@@ -257,8 +255,7 @@  discard block
 block discarded – undo
257 255
           unset($form['flipper']['front']['settings']['view_mode']['#options'][$view_mode]);
258 256
         }
259 257
       }
260
-    }
261
-    elseif ($form['plugin_id']['#value'] === 'media_embed') {
258
+    } elseif ($form['plugin_id']['#value'] === 'media_embed') {
262 259
       if (empty(Element::getVisibleChildren($form['flipper']['front']['settings']['selection']['table'])) && !$form_state->isProcessingInput()) {
263 260
         $form['#attached']['library'][] = 'df_tools_blocks/auto_open';
264 261
         $form['#attributes']['data-df-tools-blocks-auto-open'] = 'settings_selection_mids_entity_browser';
@@ -436,16 +433,14 @@  discard block
 block discarded – undo
436 433
       if (isset($category_map[$category])) {
437 434
         // Already translated.
438 435
         $block_info[$key]['category'] = $category_map[$category];
439
-      }
440
-      elseif (is_string($block_info[$key]['category'])) {
436
+      } elseif (is_string($block_info[$key]['category'])) {
441 437
         // Already translated.
442 438
         $block_info[$key]['category'] = $block_info[$key]['category'];
443 439
       }
444 440
       if (isset($label_map[$label])) {
445 441
         // Already translated.
446 442
         $block_info[$key]['label'] = $label_map[$label];
447
-      }
448
-      elseif (is_string($block_info[$key]['label'])) {
443
+      } elseif (is_string($block_info[$key]['label'])) {
449 444
         // Already translated.
450 445
         $block_info[$key]['label'] = $block_info[$key]['label'];
451 446
       }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_blocks/src/Plugin/Block/MagellanBlock.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@
 block discarded – undo
22 22
   public function build() {
23 23
     $build = [
24 24
       '#markup' =>
25
-        '<div class="df-tools-magellan-block hide-for-small-only full-width-row sticky-container">' .
26
-        '  <div data-sticky-light>' .
27
-        '    <nav data-magellan-light>' .
28
-        '      <ul class="horizontal menu nav expanded"></ul>' .
29
-        '    </nav>' .
30
-        '  </div>' .
25
+        '<div class="df-tools-magellan-block hide-for-small-only full-width-row sticky-container">'.
26
+        '  <div data-sticky-light>'.
27
+        '    <nav data-magellan-light>'.
28
+        '      <ul class="horizontal menu nav expanded"></ul>'.
29
+        '    </nav>'.
30
+        '  </div>'.
31 31
         '</div>',
32 32
     ];
33 33
 
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_panelizer/df_tools_panelizer.scenarios.inc 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
   /** @var Drupal\migrate_source_csv\CSVFileObject $iterator */
23 23
   $iterator = $source->initializeIterator();
24 24
   $base_path = $iterator->getPath();
25
-  $filename = $base_path . '/' . $iterator->getFilename();
25
+  $filename = $base_path.'/'.$iterator->getFilename();
26 26
 
27 27
   $destination = $migration->getDestinationPlugin();
28 28
   $entity_type = explode(':', $destination->getPluginId())[1];
@@ -73,14 +73,14 @@  discard block
 block discarded – undo
73 73
         $entity = $entity_storage->load($id);
74 74
 
75 75
         // See if a Panelizer config file exists for this Node.
76
-        $panels_file = $base_path . '/panelizer.panels_display.' . $entity_type . '.' . $entity->uuid() . '.yml';
76
+        $panels_file = $base_path.'/panelizer.panels_display.'.$entity_type.'.'.$entity->uuid().'.yml';
77 77
         if (file_exists($panels_file) && isset($entity->panelizer)) {
78 78
           $yaml = file_get_contents($panels_file);
79 79
 
80 80
           $panels_display = Yaml::parse($yaml);
81 81
 
82 82
           // The storage ID isn't based on UUIDs, unfortunately. Hotswap it with current info.
83
-          $panels_display['storage_id'] = $entity_type . ':' . $entity->id() . ':full:' . $entity->getRevisionId();
83
+          $panels_display['storage_id'] = $entity_type.':'.$entity->id().':full:'.$entity->getRevisionId();
84 84
 
85 85
           // Set the Panels Display to match what's defined in YAML.
86 86
           $entity->panelizer->panels_display = $panels_display;
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_translation/df_tools_translation.module 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
   batch_set($batch);
91 91
   // Set a batch to update configuration as well.
92 92
   if ($batch = locale_config_batch_update_components($options, $langcodes)) {
93
-    $batch['file'] = drupal_get_path('module', 'df_tools_translation') . '/df_tools_translation.batch.inc';
93
+    $batch['file'] = drupal_get_path('module', 'df_tools_translation').'/df_tools_translation.batch.inc';
94 94
     batch_set($batch);
95 95
   }
96 96
 }
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
 
117 117
   // Import each file.
118 118
   foreach ($langcodes as $langcode) {
119
-    $filepath = DRUPAL_ROOT . '/' . $path . '/translations/' . $langcode . '.po';
119
+    $filepath = DRUPAL_ROOT.'/'.$path.'/translations/'.$langcode.'.po';
120 120
     if (file_exists($filepath)) {
121 121
       \Drupal::moduleHandler()->loadInclude('locale', 'bulk.inc');
122 122
       \Drupal::moduleHandler()->loadInclude('locale', 'translation.inc');
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
       ]);
131 131
 
132 132
       $original_file = (object) [
133
-        'filename' => $langcode . '.po',
133
+        'filename' => $langcode.'.po',
134 134
         'uri' => $filepath
135 135
       ];
136 136
       $file = locale_translate_file_attach_properties($original_file, $options);
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
       if ($langcode == 'en') {
174 174
         $langcode = '';
175 175
       }
176
-      $url = \Drupal\Core\Url::fromUri('base:/' . $langcode . $alias);
176
+      $url = \Drupal\Core\Url::fromUri('base:/'.$langcode.$alias);
177 177
 
178 178
       $current_name = [
179 179
         '#markup' => t($language->getName())
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_translation/df_tools_translation.scenarios.inc 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
   /** @var Drupal\migrate_source_csv\CSVFileObject $iterator */
28 28
   $iterator = $source->initializeIterator();
29
-  $filename = $iterator->getPath() . '/' . $iterator->getFilename();
29
+  $filename = $iterator->getPath().'/'.$iterator->getFilename();
30 30
 
31 31
   /** @var \Drupal\migrate\Plugin\migrate\destination\EntityContentBase $destination_plugin */
32 32
   $destination_plugin = $migration->getDestinationPlugin();
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@  discard block
 block discarded – undo
41 41
   // Prefer UUIDs to other fields.
42 42
   if (in_array('UUID', $ids, TRUE)) {
43 43
     $id_map = ['uuid', 'UUID'];
44
-  }
45
-  else {
44
+  } else {
46 45
     foreach ($processes as $field => $process) {
47 46
       if (isset($process[0]['source']) && $process[0]['source'] == $ids[0]) {
48 47
         $id_map = [$field, $ids[0]];
@@ -59,8 +58,7 @@  discard block
 block discarded – undo
59 58
   // Create a migrate executable, which we use later to set row values.
60 59
   if (function_exists('drush_log')) {
61 60
     $log = new DrushLogMigrateMessage();
62
-  }
63
-  else {
61
+  } else {
64 62
     $log = new MigrateMessage();
65 63
   }
66 64
 
@@ -106,8 +104,7 @@  discard block
 block discarded – undo
106 104
         if (!$entity->hasTranslation($langcode)) {
107 105
           $entity_values = $entity->toArray();
108 106
           $translation = $entity->addTranslation($langcode, $entity_values);
109
-        }
110
-        else {
107
+        } else {
111 108
           $translation = $entity->getTranslation($langcode);
112 109
         }
113 110
 
Please login to merge, or discard this patch.
modules/df/df_core/layouts/onecoltabs/onecoltabs.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
   'theme' => 'fin_onecoltabs',
12 12
   'css' => 'onecoltabs.css',
13 13
   'regions' => array(
14
-  	'top' => t('Top region'),
15
-  	'tabs'   => t('Tabbed region')
16
-  	),
14
+    'top' => t('Top region'),
15
+    'tabs'   => t('Tabbed region')
16
+    ),
17 17
 );
Please login to merge, or discard this patch.
df/df_tools/df_tools_panelizer/src/Commands/DfToolsPanelizerCommands.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
       }
49 49
 
50 50
       // Write YAML to a file.
51
-      $panels_file = $base_path . '/data/panelizer.panels_display.node.'.$node->uuid() . '.yml';
51
+      $panels_file = $base_path.'/data/panelizer.panels_display.node.'.$node->uuid().'.yml';
52 52
       $configuration = \Drupal::service('panelizer')->getPanelsDisplay($node, 'full')->getConfiguration();
53 53
       $yaml = \Symfony\Component\Yaml\Yaml::dump($configuration, 99, 2);
54 54
       file_put_contents($panels_file, $yaml);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
 
56 56
       drupal_set_message(t('Successfully exported Panelizer display for Node @nid to @panels_file', ['@nid' => $node->id(), '@panels_file' => $panels_file]));
57 57
       return TRUE;
58
-    }
59
-    else {
58
+    } else {
60 59
       drupal_set_message(t('The given Node is not Panelized.'), 'error');
61 60
       return FALSE;
62 61
     }
Please login to merge, or discard this patch.
profiles/dfs_tec/src/Plugin/migrate/source/EmployeeNode.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
21 21
 
22 22
   public function prepareRow(Row $row) {
23 23
     if ($image_path = $row->getSourceProperty('Headshot')) {
24
-      $path = dirname($this->configuration['path']) . '/images/' . $image_path;
24
+      $path = dirname($this->configuration['path']).'/images/'.$image_path;
25 25
 
26 26
       $data = file_get_contents($path);
27 27
       $uri = file_build_uri($image_path);
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
       $links_raw = explode(',', $value);
34 34
       $links = [];
35 35
       foreach ($links_raw as $link) {
36
-          list($uri,$title) = explode('|', $link);
36
+          list($uri, $title) = explode('|', $link);
37 37
           $links[] = [
38 38
             'uri' => $uri,
39 39
             'title' => $title,
Please login to merge, or discard this patch.
profiles/dfs_tec/src/Plugin/migrate/source/ServiceNode.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
   public function prepareRow(Row $row) {
23 23
     if ($image_path = $row->getSourceProperty('Hero Image')) {
24
-      $path = dirname($this->configuration['path']) . '/images/' . $image_path;
24
+      $path = dirname($this->configuration['path']).'/images/'.$image_path;
25 25
 
26 26
       $data = file_get_contents($path);
27 27
       $uri = file_build_uri($image_path);
Please login to merge, or discard this patch.