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-users ( ca2b2d )
by Kevin
15:55
created
modules/df/df_tools/df_tools_blocks/df_tools_blocks.module 3 patches
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.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -287,7 +287,7 @@
 block discarded – undo
287 287
     // Move the hero image out of the details element and set a better label.
288 288
     $element['field_hero_background']['widget']['#type'] = 'container';
289 289
     $element['field_hero_background']['widget']['entity_browser']['#process'][] = '_df_tools_blocks_hero_browser_button';
290
-     // Remove the link fieldset and put the URI and title side-by-side.
290
+      // Remove the link fieldset and put the URI and title side-by-side.
291 291
     $element['field_hero_link']['widget'][0]['#type'] = 'container';
292 292
     $element['field_hero_link']['widget'][0]['#attributes']['class'][] = 'row';
293 293
     unset($element['field_hero_link']['widget'][0]['uri']['#description']);
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
     }
78 78
 
79 79
     $hero_callout_width = $entity->get('field_callout_width')->getString();
80
-    switch($hero_callout_width) {
80
+    switch ($hero_callout_width) {
81 81
       case '03':
82 82
         $hero_callout_width = 'col col-md-5 col-lg-3';
83 83
         break;
@@ -111,12 +111,12 @@  discard block
 block discarded – undo
111 111
     }
112 112
 
113 113
     $wrapper = [
114
-      '#prefix' => '<div class="container"><div class="col-12"><div class="row ' . $hero_alignment . '">',
114
+      '#prefix' => '<div class="container"><div class="col-12"><div class="row '.$hero_alignment.'">',
115 115
       '#suffix' => '</div></div></div>',
116 116
       '#type' => 'container',
117 117
       '#weight' => -1,
118 118
       '#attributes' => [
119
-        'class' => ['hero-block-fields', $hero_callout_width ],
119
+        'class' => ['hero-block-fields', $hero_callout_width],
120 120
       ],
121 121
       '#children' => [],
122 122
     ];
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
         $icon = $build[$field_name]['#object']->field_icon->getString();
126 126
         if (!empty($icon)) {
127 127
           $wrapper['#children'][$field_name] = [
128
-            '#markup' => '<i class="fa ' . $icon . ' hero-icon"></i>',
128
+            '#markup' => '<i class="fa '.$icon.' hero-icon"></i>',
129 129
             '#allowed_tags' => ['i'],
130 130
           ];
131 131
         }
@@ -138,15 +138,15 @@  discard block
 block discarded – undo
138 138
     }
139 139
 
140 140
     $hero_first_line_size = $entity->get('field_first_line_size')->getString();
141
-    $wrapper['#children']['field_first_line']['#attributes']['class'][] = 'size-' . $hero_first_line_size;
141
+    $wrapper['#children']['field_first_line']['#attributes']['class'][] = 'size-'.$hero_first_line_size;
142 142
 
143 143
     $hero_second_line_size = $entity->get('field_second_line_size')->getString();
144
-    $wrapper['#children']['field_second_line']['#attributes']['class'][] = 'size-' . $hero_second_line_size;
144
+    $wrapper['#children']['field_second_line']['#attributes']['class'][] = 'size-'.$hero_second_line_size;
145 145
 
146 146
     // Attach styles.
147 147
     $alignment = $entity->get('field_hero_alignment')->getString();
148 148
     if (preg_match('/^[a-z_]+$/i', $alignment)) {
149
-      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('text-align-' . $text_alignment);
149
+      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('text-align-'.$text_alignment);
150 150
     }
151 151
     $color_regex = '/^#[0-9a-f]{6}$/i';
152 152
     $callout_background_color = $entity->get('field_callout_background_color')->getString();
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
     $wrapper['#attributes']['style'] = $callout_background_color;
160 160
     $text_color = $entity->get('field_text_color')->getString();
161 161
     if (preg_match($color_regex, $text_color)) {
162
-      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: ' . $text_color;
163
-      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: ' . $text_color;
162
+      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: '.$text_color;
163
+      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: '.$text_color;
164 164
     }
165 165
     if ($entity->get('field_gradient')->getString()) {
166 166
       $gradient_color = $entity->get('field_gradient_color')->getString();
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
     }
184 184
     $callout_color = $entity->get('field_callout_color')->getString();
185 185
     if (preg_match($color_regex, $callout_color)) {
186
-      $style = 'background-color: ' . $callout_color . ';';
186
+      $style = 'background-color: '.$callout_color.';';
187 187
       $hex = trim($callout_color, '#');
188 188
       $r = hexdec(substr($hex, 0, 2));
189 189
       $g = hexdec(substr($hex, 2, 2));
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
   if (isset($variables['elements']['content']) && isset($variables['elements']['content']['#block_content'])) {
237 237
     /** @var \Drupal\block_content\Entity\BlockContent $entity */
238 238
     $entity = $variables['elements']['content']['#block_content'];
239
-    $suggestions[] = 'block__block_content__' . $entity->bundle();
239
+    $suggestions[] = 'block__block_content__'.$entity->bundle();
240 240
   }
241 241
 }
242 242
 
@@ -533,7 +533,7 @@  discard block
 block discarded – undo
533 533
     // 'Current @Entity_Type' category. If the block is not a field on the
534 534
     // current entity, allow its category to be remapped.
535 535
     if ($category === '@entity') {
536
-      $block_info[$key]['category'] = $info['category']->render() . ' Fields';
536
+      $block_info[$key]['category'] = $info['category']->render().' Fields';
537 537
     }
538 538
     // Place Block Content entities into categories based on their type.
539 539
     elseif ($category === 'Custom') {
Please login to merge, or discard this patch.
themes/one/includes/html.inc 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
   $request = \Drupal::request();
17 17
 
18 18
   // Add language body class.
19
-  $variables['attributes']['class'][] = 'lang-' . $site_language;
19
+  $variables['attributes']['class'][] = 'lang-'.$site_language;
20 20
 
21 21
   // Classes for body element. Allows advanced theming based on context
22 22
   $is_front_page = \Drupal::service('path.matcher')->isFrontPage();
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
         $section = 'node-add';
31 31
       }
32 32
       elseif (isset($arg[2]) && is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) {
33
-        $section = 'node-' . $arg[2];
33
+        $section = 'node-'.$arg[2];
34 34
       }
35 35
     }
36
-    $variables['attributes']['class'][] = \Drupal\Component\Utility\Html::getClass('section-' . $section);
36
+    $variables['attributes']['class'][] = \Drupal\Component\Utility\Html::getClass('section-'.$section);
37 37
   }
38 38
 
39 39
   // Store the menu item since it has some useful information.
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -28,8 +28,7 @@  discard block
 block discarded – undo
28 28
     if ($arg[0] == 'node' && isset($arg[1])) {
29 29
       if ($arg[1] == 'add') {
30 30
         $section = 'node-add';
31
-      }
32
-      elseif (isset($arg[2]) && is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) {
31
+      } elseif (isset($arg[2]) && is_numeric($arg[1]) && ($arg[2] == 'edit' || $arg[2] == 'delete')) {
33 32
         $section = 'node-' . $arg[2];
34 33
       }
35 34
     }
@@ -39,8 +38,7 @@  discard block
 block discarded – undo
39 38
   // Store the menu item since it has some useful information.
40 39
   if ($request->attributes->get('view_id')) {
41 40
     $variables['attributes']['class'][] = 'views-page';
42
-  }
43
-  elseif ($request->attributes->get('panel')) {
41
+  } elseif ($request->attributes->get('panel')) {
44 42
     $variables['attributes']['class'][] = 'panels-page';
45 43
   }
46 44
 }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_media/df_tools_media.module 2 patches
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,8 +23,7 @@  discard block
 block discarded – undo
23 23
 function df_tools_media_views_insert(ViewEntityInterface $view) {
24 24
   if (\Drupal::isConfigSyncing()) {
25 25
     return;
26
-  }
27
-  elseif (drupal_installation_attempted() && $view->id() == 'media') {
26
+  } elseif (drupal_installation_attempted() && $view->id() == 'media') {
28 27
     $display1 = &$view->getDisplay('entity_browser_1');
29 28
     $display2 = &$view->getDisplay('entity_browser_2');
30 29
     $display1['display_options']['filters']['field_tags_target_id'] = $display2['display_options']['filters']['field_tags_target_id'] = [
@@ -159,8 +158,7 @@  discard block
 block discarded – undo
159 158
     $entity->$image_field->focal_point = $x_y;
160 159
     $entity->$image_field->alt = $entity->label();
161 160
     $entity->$image_field->target_id = $file->id();
162
-  }
163
-  elseif (in_array($type, $types)
161
+  } elseif (in_array($type, $types)
164 162
     && $entity->hasField($image_field)
165 163
     && !$entity->get($image_field)->isEmpty()
166 164
     && $entity->hasField($unsplash_field)
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -153,8 +153,8 @@
 block discarded – undo
153 153
     && $entity->hasField($image_field)
154 154
   ) {
155 155
     $id = $entity->get($unsplash_field)->value;
156
-    $raw_image = file_get_contents('unsplash://' . $id);
157
-    $filename = $id . '.jpg';
156
+    $raw_image = file_get_contents('unsplash://'.$id);
157
+    $filename = $id.'.jpg';
158 158
     $images_dir = "public://images";
159 159
     if (!is_dir($images_dir)) {
160 160
       mkdir($images_dir);
Please login to merge, or discard this patch.
df_tools_translation_migrate/df_tools_translation_migrate.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.
themes/one/includes/page.inc 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -13,40 +13,35 @@
 block discarded – undo
13 13
   // Make Page Mangers pages full width
14 14
   elseif (\Drupal::routeMatch()->getRouteObject()->hasDefault('page_manager_page')) {
15 15
     $variables['container_class'] = 'container-fluid full';
16
-  }
17
-  else {
16
+  } else {
18 17
     $variables['container_class'] = 'container';
19 18
   }
20 19
 
21 20
   // Set container for Meta Header
22 21
   if (theme_get_setting('meta_header_full_width')) {
23 22
     $variables['meta_header_width'] = 'container-fluid';
24
-  }
25
-  else {
23
+  } else {
26 24
     $variables['meta_header_width'] = 'container';
27 25
   }
28 26
 
29 27
   // Set container for Navbar
30 28
   if (theme_get_setting('navbar_full_width')) {
31 29
     $variables['navbar_width'] = 'container-fluid';
32
-  }
33
-  else {
30
+  } else {
34 31
     $variables['navbar_width'] = 'container';
35 32
   }
36 33
 
37 34
   // Set container for Header
38 35
   if (theme_get_setting('header_full_width')) {
39 36
     $variables['header_width'] = 'container-fluid';
40
-  }
41
-  else {
37
+  } else {
42 38
     $variables['header_width'] = 'container';
43 39
   }
44 40
 
45 41
   // Set container for Footer
46 42
   if (theme_get_setting('footer_full_width')) {
47 43
     $variables['footer_width'] = 'container-fluid';
48
-  }
49
-  else {
44
+  } else {
50 45
     $variables['footer_width'] = 'container';
51 46
   }
52 47
 }
Please login to merge, or discard this patch.
df_tools_display/src/Plugin/DisplayVariant/LandingDisplayVariant.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
     }
42 42
 
43 43
     // Append the prefix before buildRegions.
44
-    $build['landing-top']['#prefix'] = '<div class="landing-display-' . $class . ' container-fluid">';
44
+    $build['landing-top']['#prefix'] = '<div class="landing-display-'.$class.' container-fluid">';
45 45
 
46 46
     // Build the regions via PageBlockDisplayVariant::buildRegions.
47 47
     $build = parent::buildRegions($build);
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
         continue;
53 53
       }
54 54
       $region_name = Html::getClass("block-region-$region");
55
-      $build[$region]['#prefix'] = '<div class="' . $region_name . ' row">';
55
+      $build[$region]['#prefix'] = '<div class="'.$region_name.' row">';
56 56
     }
57 57
 
58 58
     // Add suffix for wrapper after buildRegions.
Please login to merge, or discard this patch.