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 ( 4424ac...1a3975 )
by Kevin
05:00
created
modules/df/df_tools/df_tools_blocks/df_tools_blocks.module 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     $hero_callout_width = $entity->get('field_callout_width')->getString();
79
-    switch($hero_callout_width) {
79
+    switch ($hero_callout_width) {
80 80
       case '03':
81 81
         $hero_callout_width = 'col col-md-5 col-lg-3';
82 82
         break;
@@ -110,12 +110,12 @@  discard block
 block discarded – undo
110 110
     }
111 111
 
112 112
     $wrapper = [
113
-      '#prefix' => '<div class="container"><div class="row ' . $hero_alignment . '">',
113
+      '#prefix' => '<div class="container"><div class="row '.$hero_alignment.'">',
114 114
       '#suffix' => '</div></div>',
115 115
       '#type' => 'container',
116 116
       '#weight' => -1,
117 117
       '#attributes' => [
118
-        'class' => ['hero-block-fields', $hero_callout_width ],
118
+        'class' => ['hero-block-fields', $hero_callout_width],
119 119
       ],
120 120
       '#children' => [],
121 121
     ];
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
         $icon = $build[$field_name]['#object']->field_icon->getString();
125 125
         if (!empty($icon)) {
126 126
           $wrapper['#children'][$field_name] = [
127
-            '#markup' => '<i class="fa ' . $icon . ' hero-icon"></i>',
127
+            '#markup' => '<i class="fa '.$icon.' hero-icon"></i>',
128 128
             '#allowed_tags' => ['i'],
129 129
           ];
130 130
         }
@@ -137,15 +137,15 @@  discard block
 block discarded – undo
137 137
     }
138 138
 
139 139
     $hero_first_line_size = $entity->get('field_first_line_size')->getString();
140
-    $wrapper['#children']['field_first_line']['#attributes']['class'][] = 'size-' . $hero_first_line_size;
140
+    $wrapper['#children']['field_first_line']['#attributes']['class'][] = 'size-'.$hero_first_line_size;
141 141
 
142 142
     $hero_second_line_size = $entity->get('field_second_line_size')->getString();
143
-    $wrapper['#children']['field_second_line']['#attributes']['class'][] = 'size-' . $hero_second_line_size;
143
+    $wrapper['#children']['field_second_line']['#attributes']['class'][] = 'size-'.$hero_second_line_size;
144 144
 
145 145
     // Attach styles.
146 146
     $alignment = $entity->get('field_hero_alignment')->getString();
147 147
     if (preg_match('/^[a-z_]+$/i', $alignment)) {
148
-      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-' . $alignment);
148
+      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-'.$alignment);
149 149
     }
150 150
     $color_regex = '/^#[0-9a-f]{6}$/i';
151 151
     $callout_background_color = $entity->get('field_callout_background_color')->getString();
@@ -158,8 +158,8 @@  discard block
 block discarded – undo
158 158
     $wrapper['#attributes']['style'] = $callout_background_color;
159 159
     $text_color = $entity->get('field_text_color')->getString();
160 160
     if (preg_match($color_regex, $text_color)) {
161
-      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: ' . $text_color;
162
-      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: ' . $text_color;
161
+      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: '.$text_color;
162
+      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: '.$text_color;
163 163
     }
164 164
     $gradient_color = $entity->get('field_gradient_color')->getString();
165 165
     if (preg_match($color_regex, $gradient_color)) {
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
     }
181 181
     $callout_color = $entity->get('field_callout_color')->getString();
182 182
     if (preg_match($color_regex, $callout_color)) {
183
-      $style = 'background-color: ' . $callout_color . ';';
183
+      $style = 'background-color: '.$callout_color.';';
184 184
       $hex = trim($callout_color, '#');
185 185
       $r = hexdec(substr($hex, 0, 2));
186 186
       $g = hexdec(substr($hex, 2, 2));
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
   if (isset($variables['elements']['content']) && isset($variables['elements']['content']['#block_content'])) {
234 234
     /** @var \Drupal\block_content\Entity\BlockContent $entity */
235 235
     $entity = $variables['elements']['content']['#block_content'];
236
-    $suggestions[] = 'block__block_content__' . $entity->bundle();
236
+    $suggestions[] = 'block__block_content__'.$entity->bundle();
237 237
   }
238 238
 }
239 239
 
@@ -542,7 +542,7 @@  discard block
 block discarded – undo
542 542
     // 'Current @Entity_Type' category. If the block is not a field on the
543 543
     // current entity, allow its category to be remapped.
544 544
     if ($category === '@entity') {
545
-      $block_info[$key]['category'] = $info['category']->render() . ' Fields';
545
+      $block_info[$key]['category'] = $info['category']->render().' Fields';
546 546
     }
547 547
     // Place Block Content entities into categories based on their type.
548 548
     elseif ($category === 'Custom') {
Please login to merge, or discard this patch.