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-4.x-cleanup ( 7e3320...6ee389 )
by Brant
07:06 queued 02:57
created
modules/df/df_tools/df_tools_workflow/df_tools_workflow.module 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -68,8 +68,7 @@  discard block
 block discarded – undo
68 68
     if (isset($options['langcode'])) {
69 69
       $url_options['language'] = \Drupal::languageManager()->getLanguage($options['langcode']);
70 70
       $langcode = $options['langcode'];
71
-    }
72
-    else {
71
+    } else {
73 72
       $langcode = NULL;
74 73
     }
75 74
 
@@ -93,8 +92,7 @@  discard block
 block discarded – undo
93 92
             $replacements[$original] = Url::fromRoute('entity.node.latest_version', [
94 93
               'node' => $node->id(),
95 94
             ], $url_options)->toString();
96
-          }
97
-          else {
95
+          } else {
98 96
             $replacements[$original] = $latest->toUrl('canonical', $url_options)->toString();
99 97
           }
100 98
           break;
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
           if (!empty($settings)) {
211 211
             // Use the Type Style color as the button's background color.
212 212
             if (!empty($settings['color'])) {
213
-              $build['actions']['quick_draft_form'][$id]['#attributes']['style'] = 'background-color: ' . $settings['color'];
213
+              $build['actions']['quick_draft_form'][$id]['#attributes']['style'] = 'background-color: '.$settings['color'];
214 214
             }
215 215
 
216 216
             // Add the Type Style icon to the button.
@@ -219,7 +219,7 @@  discard block
 block discarded – undo
219 219
                 '#type' => 'container',
220 220
                 $build['actions']['quick_draft_form'][$id],
221 221
                 [
222
-                  '#markup' => '<i class="material-icons">' . $settings['icon'] . '</i>'
222
+                  '#markup' => '<i class="material-icons">'.$settings['icon'].'</i>'
223 223
                 ],
224 224
                 '#attributes' => [
225 225
                   'class' => ['moderation-sidebar-button-wrapper'],
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_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.
src/Composer/Package.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -112,8 +112,7 @@  discard block
 block discarded – undo
112 112
           $name = 'drupal';
113 113
         }
114 114
         $info['projects'][$name] = $this->buildProject($package);
115
-      }
116
-      elseif ($this->isLightning($package)) {
115
+      } elseif ($this->isLightning($package)) {
117 116
         $info['projects'][$name] = $this->buildProject($package);
118 117
 
119 118
         // The Lightning project uses semantic versioning.
@@ -283,8 +282,7 @@  discard block
 block discarded – undo
283 282
         'type' => 'get',
284 283
         'url' => $package['dist']['url'],
285 284
       ];
286
-    }
287
-    else {
285
+    } else {
288 286
       $download = [
289 287
         'type' => 'git',
290 288
         'url' => str_replace('[email protected]:', 'https://github.com/', $package['source']['url']),
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_blocks/df_tools_blocks.module 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     $wrapper = [
79
-      '#prefix' => '<div class="container"><div class="row ' . $hero_alignment . '">',
79
+      '#prefix' => '<div class="container"><div class="row '.$hero_alignment.'">',
80 80
       '#suffix' => '</div></div>',
81 81
       '#type' => 'container',
82 82
       '#weight' => -1,
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
         $icon = $build[$field_name]['#object']->field_icon->getString();
91 91
         if (!empty($icon)) {
92 92
           $wrapper['#children'][$field_name] = [
93
-            '#markup' => '<i class="fa ' . $icon . ' hero-icon"></i>',
93
+            '#markup' => '<i class="fa '.$icon.' hero-icon"></i>',
94 94
             '#allowed_tags' => ['i'],
95 95
           ];
96 96
         }
@@ -104,13 +104,13 @@  discard block
 block discarded – undo
104 104
     // Attach styles.
105 105
     $alignment = $entity->get('field_hero_alignment')->getString();
106 106
     if (preg_match('/^[a-z_]+$/i', $alignment)) {
107
-      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-' . $alignment);
107
+      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-'.$alignment);
108 108
     }
109 109
     $color_regex = '/^#[0-9a-f]{6}$/i';
110 110
     $text_color = $entity->get('field_text_color')->getString();
111 111
     if (preg_match($color_regex, $text_color)) {
112
-      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: ' . $text_color;
113
-      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: ' . $text_color;
112
+      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: '.$text_color;
113
+      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: '.$text_color;
114 114
     }
115 115
     $gradient_color = $entity->get('field_gradient_color')->getString();
116 116
     if (preg_match($color_regex, $gradient_color)) {
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
     }
132 132
     $callout_color = $entity->get('field_callout_color')->getString();
133 133
     if (preg_match($color_regex, $callout_color)) {
134
-      $style = 'background-color: ' . $callout_color . ';';
134
+      $style = 'background-color: '.$callout_color.';';
135 135
       $hex = trim($callout_color, '#');
136 136
       $r = hexdec(substr($hex, 0, 2));
137 137
       $g = hexdec(substr($hex, 2, 2));
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
   if (isset($variables['elements']['content']) && isset($variables['elements']['content']['#block_content'])) {
185 185
     /** @var \Drupal\block_content\Entity\BlockContent $entity */
186 186
     $entity = $variables['elements']['content']['#block_content'];
187
-    $suggestions[] = 'block__block_content__' . $entity->bundle();
187
+    $suggestions[] = 'block__block_content__'.$entity->bundle();
188 188
   }
189 189
 }
190 190
 
@@ -372,7 +372,7 @@  discard block
 block discarded – undo
372 372
   // Set up the correct pa$th for the CSV files in this module.
373 373
   $types = ['hero', 'media'];
374 374
   foreach ($types as $type) {
375
-    $id = 'import_block_' . $type;
375
+    $id = 'import_block_'.$type;
376 376
     $definitions[$id]['source']['path'] = str_replace('..', dirname(__FILE__), $definitions[$id]['source']['path']);
377 377
   }
378 378
 }
@@ -433,7 +433,7 @@  discard block
 block discarded – undo
433 433
     // 'Current @Entity_Type' category. If the block is not a field on the
434 434
     // current entity, allow its category to be remapped.
435 435
     if ($category === '@entity') {
436
-      $block_info[$key]['category'] = $info['category']->render() . ' Fields';
436
+      $block_info[$key]['category'] = $info['category']->render().' Fields';
437 437
     }
438 438
     // Place Block Content entities into categories based on their type.
439 439
     elseif ($category === 'Custom') {
Please login to merge, or discard this patch.
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -95,8 +95,7 @@  discard block
 block discarded – undo
95 95
           ];
96 96
         }
97 97
         unset($build[$field_name]);
98
-      }
99
-      elseif ($field_name !== 'field_hero_background') {
98
+      } elseif ($field_name !== 'field_hero_background') {
100 99
         $wrapper['#children'][$field_name] = $build[$field_name];
101 100
         unset($build[$field_name]);
102 101
       }
@@ -139,8 +138,7 @@  discard block
 block discarded – undo
139 138
       if ($r + $g + $b > 382) {
140 139
         $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-light-bg';
141 140
         $style .= 'border-color:black;color:black;';
142
-      }
143
-      else {
141
+      } else {
144 142
         $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-dark-bg';
145 143
         $style .= 'border-color:white;color:white;';
146 144
       }
@@ -274,8 +272,7 @@  discard block
 block discarded – undo
274 272
           unset($form['flipper']['front']['settings']['view_mode']['#options'][$view_mode]);
275 273
         }
276 274
       }
277
-    }
278
-    elseif ($form['plugin_id']['#value'] === 'media_embed') {
275
+    } elseif ($form['plugin_id']['#value'] === 'media_embed') {
279 276
       if (empty(Element::getVisibleChildren($form['flipper']['front']['settings']['selection']['table'])) && !$form_state->isProcessingInput()) {
280 277
         $form['#attached']['library'][] = 'df_tools_blocks/auto_open';
281 278
         $form['#attributes']['data-df-tools-blocks-auto-open'] = 'settings_selection_mids_entity_browser';
@@ -453,16 +450,14 @@  discard block
 block discarded – undo
453 450
       if (isset($category_map[$category])) {
454 451
         // Already translated.
455 452
         $block_info[$key]['category'] = $category_map[$category];
456
-      }
457
-      elseif (is_string($block_info[$key]['category'])) {
453
+      } elseif (is_string($block_info[$key]['category'])) {
458 454
         // Already translated.
459 455
         $block_info[$key]['category'] = $block_info[$key]['category'];
460 456
       }
461 457
       if (isset($label_map[$label])) {
462 458
         // Already translated.
463 459
         $block_info[$key]['label'] = $label_map[$label];
464
-      }
465
-      elseif (is_string($block_info[$key]['label'])) {
460
+      } elseif (is_string($block_info[$key]['label'])) {
466 461
         // Already translated.
467 462
         $block_info[$key]['label'] = $block_info[$key]['label'];
468 463
       }
Please login to merge, or discard this patch.
themes/one/includes/block.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,8 +17,7 @@
 block discarded – undo
17 17
     if (!$node->layout_builder__layout) {
18 18
       $variables['attributes']['class'][] = 'container';
19 19
     }
20
-  }
21
-  else {
20
+  } else {
22 21
     $variables['attributes']['class'][] = 'container';
23 22
   }
24 23
 
Please login to merge, or discard this patch.
themes/one/includes/page.inc 1 patch
Braces   +4 added lines, -8 removed lines patch added patch discarded remove patch
@@ -9,32 +9,28 @@
 block discarded – undo
9 9
   // Set container for Meta Header
10 10
   if (theme_get_setting('meta_header_full_width')) {
11 11
     $variables['meta_header_width'] = 'container-fluid';
12
-  }
13
-  else {
12
+  } else {
14 13
     $variables['meta_header_width'] = 'container';
15 14
   }
16 15
 
17 16
   // Set container for Navbar
18 17
   if (theme_get_setting('navbar_full_width')) {
19 18
     $variables['navbar_width'] = 'container-fluid';
20
-  }
21
-  else {
19
+  } else {
22 20
     $variables['navbar_width'] = 'container';
23 21
   }
24 22
 
25 23
   // Set container for Header
26 24
   if (theme_get_setting('header_full_width')) {
27 25
     $variables['header_width'] = 'container-fluid';
28
-  }
29
-  else {
26
+  } else {
30 27
     $variables['header_width'] = 'container';
31 28
   }
32 29
 
33 30
   // Set container for Footer
34 31
   if (theme_get_setting('footer_full_width')) {
35 32
     $variables['footer_width'] = 'container-fluid';
36
-  }
37
-  else {
33
+  } else {
38 34
     $variables['footer_width'] = 'container';
39 35
   }
40 36
 }
Please login to merge, or discard this patch.
themes/one/includes/menu.inc 2 patches
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
   // Set container for Navbar
10 10
   if (theme_get_setting('navbar_full_width')) {
11 11
     $variables['navbar_width'] = 'container-fluid';
12
-  }
13
-  else {
12
+  } else {
14 13
     $variables['navbar_width'] = 'container';
15 14
   }
16 15
 
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
  */
24 24
 function one_theme_suggestions_menu_alter(&$suggestions, array $variables) {
25 25
   if (isset($variables['attributes']['region'])) {
26
-    $suggestions[] = 'menu__' . $variables['attributes']['region'];
27
-    $suggestions[] = 'menu__' . $variables['menu_name'] . '__' . $variables['attributes']['region'];
26
+    $suggestions[] = 'menu__'.$variables['attributes']['region'];
27
+    $suggestions[] = 'menu__'.$variables['menu_name'].'__'.$variables['attributes']['region'];
28 28
   }
29 29
 }
Please login to merge, or discard this patch.