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.
Completed
Push — 8.x-2.x ( 336e2b...aaf4f9 )
by Devin
04:05
created
df/df_tools/df_tools_message/src/Plugin/RulesAction/SendStyledEmail.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
       'format' => $format,
105 105
     ];
106 106
     // Set a unique key for this mail.
107
-    $key = 'rules_action_mail_' . $this->getPluginId();
107
+    $key = 'rules_action_mail_'.$this->getPluginId();
108 108
     $message = $this->mailManager->mail('df_tools_message', $key, $to, LanguageInterface::LANGCODE_NOT_SPECIFIED, $params);
109 109
     if ($message['result']) {
110 110
       $this->logger->notice('Successfully sent styled email to %recipient', ['%recipient' => $to]);
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_color/df_tools_color.module 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
     return;
51 51
   }
52 52
 
53
-  $config = \Drupal::configFactory()->getEditable('color.theme.' . $theme);
53
+  $config = \Drupal::configFactory()->getEditable('color.theme.'.$theme);
54 54
 
55 55
   // Resolve palette.
56 56
   if ($scheme != '') {
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
   // Make sure enough memory is available.
66 66
   if (isset($info['base_image'])) {
67 67
     // Fetch source image dimensions.
68
-    $source = drupal_get_path('theme', $theme) . '/' . $info['base_image'];
68
+    $source = drupal_get_path('theme', $theme).'/'.$info['base_image'];
69 69
     list($width, $height) = getimagesize($source);
70 70
 
71 71
     // We need at least a copy of the source and a target buffer of the same
@@ -102,28 +102,28 @@  discard block
 block discarded – undo
102 102
   }
103 103
 
104 104
   // Prepare target locations for generated files.
105
-  $id = $theme . '-' . substr(hash('sha256', serialize($palette) . microtime()), 0, 8);
105
+  $id = $theme.'-'.substr(hash('sha256', serialize($palette).microtime()), 0, 8);
106 106
   $paths['color'] = 'public://color';
107
-  $paths['target'] = $paths['color'] . '/' . $id;
107
+  $paths['target'] = $paths['color'].'/'.$id;
108 108
   foreach ($paths as $path) {
109 109
     file_prepare_directory($path, FILE_CREATE_DIRECTORY);
110 110
   }
111
-  $paths['target'] = $paths['target'] . '/';
111
+  $paths['target'] = $paths['target'].'/';
112 112
   $paths['id'] = $id;
113
-  $paths['source'] = drupal_get_path('theme', $theme) . '/';
113
+  $paths['source'] = drupal_get_path('theme', $theme).'/';
114 114
   $paths['files'] = $paths['map'] = array();
115 115
 
116 116
   // Save palette and logo location.
117 117
   $config
118 118
     ->set('palette', $palette)
119
-    ->set('logo', $paths['target'] . 'logo.svg')
119
+    ->set('logo', $paths['target'].'logo.svg')
120 120
     ->save();
121 121
 
122 122
   // Copy over neutral images.
123 123
   foreach ($info['copy'] as $file) {
124 124
     $base = drupal_basename($file);
125
-    $source = $paths['source'] . $file;
126
-    $filepath = file_unmanaged_copy($source, $paths['target'] . $base);
125
+    $source = $paths['source'].$file;
126
+    $filepath = file_unmanaged_copy($source, $paths['target'].$base);
127 127
     $paths['map'][$file] = $base;
128 128
     $paths['files'][] = $filepath;
129 129
   }
@@ -138,7 +138,7 @@  discard block
 block discarded – undo
138 138
   foreach ($info['css'] as $stylesheet) {
139 139
     // Build a temporary array with CSS files.
140 140
     $files = array();
141
-    if (file_exists($paths['source'] . $stylesheet)) {
141
+    if (file_exists($paths['source'].$stylesheet)) {
142 142
       $files[] = $stylesheet;
143 143
     }
144 144
 
@@ -147,11 +147,11 @@  discard block
 block discarded – undo
147 147
       // Aggregate @imports recursively for each configured top level CSS file
148 148
       // without optimization. Aggregation and optimization will be
149 149
       // handled by drupal_build_css_cache() only.
150
-      $style = $css_optimizer->loadFile($paths['source'] . $file, FALSE);
150
+      $style = $css_optimizer->loadFile($paths['source'].$file, FALSE);
151 151
 
152 152
       // Return the path to where this CSS file originated from, stripping
153 153
       // off the name of the file at the end of the path.
154
-      $css_optimizer->rewriteFileURIBasePath = base_path() . dirname($paths['source'] . $file) . '/';
154
+      $css_optimizer->rewriteFileURIBasePath = base_path().dirname($paths['source'].$file).'/';
155 155
 
156 156
       // Prefix all paths within this CSS file, ignoring absolute paths.
157 157
       $style = preg_replace_callback('/url\([\'"]?(?![a-z]+:|\/+)([^\'")]+)[\'"]?\)/i', array($css_optimizer, 'rewriteFileURI'), $style);
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
       // Rewrite stylesheet with new colors.
160 160
       $style = _df_tools_color_color_rewrite_stylesheet($theme, $info, $paths, $palette, $style);
161 161
       $base_file = drupal_basename($file);
162
-      $css[] = $paths['target'] . $base_file;
163
-      _color_save_stylesheet($paths['target'] . $base_file, $style, $paths);
162
+      $css[] = $paths['target'].$base_file;
163
+      _color_save_stylesheet($paths['target'].$base_file, $style, $paths);
164 164
     }
165 165
   }
166 166
 
@@ -216,7 +216,7 @@  discard block
 block discarded – undo
216 216
 
217 217
     // Convert placeholder ids to the format we handle.
218 218
     foreach ($palette_template as $color_id => $color_placeholder) {
219
-      $palette_template[$color_id] = '#__' . Html::cleanCssIdentifier((string) $color_placeholder, $filter) . '__';
219
+      $palette_template[$color_id] = '#__'.Html::cleanCssIdentifier((string) $color_placeholder, $filter).'__';
220 220
     }
221 221
 
222 222
     return $palette_template;
@@ -291,7 +291,7 @@  discard block
 block discarded – undo
291 291
 
292 292
   // Replace paths to images.
293 293
   foreach ($paths['map'] as $before => $after) {
294
-    $before = base_path() . $paths['source'] . $before;
294
+    $before = base_path().$paths['source'].$before;
295 295
     $before = preg_replace('`(^|/)(?!../)([^/]+)/../`', '$1', $before);
296 296
     $output = str_replace($before, $after, $output);
297 297
   }
Please login to merge, or discard this patch.
df_tools_tabs/src/Plugin/Field/FieldFormatter/TextWithTabFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         '#attributes' => [
36 36
           'id' => $this->getFieldId($items, $delta),
37 37
         ],
38
-        '#prefix' => '<h3 class="df-tools-tabs-accordion-title">' . Xss::filter($item->tab_title) . '</h3>',
38
+        '#prefix' => '<h3 class="df-tools-tabs-accordion-title">'.Xss::filter($item->tab_title).'</h3>',
39 39
       ];
40 40
       $elements[$delta][] = [
41 41
         '#type' => 'processed_text',
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
     ];
65 65
 
66 66
     foreach ($items as $delta => $item) {
67
-      $url = Url::fromUri('internal:#' . $this->getFieldId($items, $delta))->toRenderArray();
67
+      $url = Url::fromUri('internal:#'.$this->getFieldId($items, $delta))->toRenderArray();
68 68
       $tabs['#items'][] = [
69 69
         '#type' => 'link',
70 70
         '#title' => $item->tab_title,
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_user/src/Plugin/Block/UserDropdownBlock.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -109,13 +109,13 @@
 block discarded – undo
109 109
       $markup = '';
110 110
       $markup .= '<a class="login-dropdown-button standard-icon meta-icon-size left" data-toggle="user-logout-wrapper" aria-controls="user-logout-wrapper" aria-expanded="false">';
111 111
       $markup .= '<i class="icon ion-ios-person"></i>';
112
-      $markup .= '<span> '. $username . '</span>';
112
+      $markup .= '<span> '.$username.'</span>';
113 113
       $markup .= '</a>';
114 114
 
115 115
       $markup .= '<div id="user-logout-wrapper" class="dropdown-pane f-dropdown" data-dropdown aria-hidden="true" aria-autoclose="false" data-auto-focus="false">';
116 116
       $markup .= '<div class="user-links">';
117
-      $markup .= '<a class="" href="' . $user_page_url . '"><i class="icon ion-ios-person"></i> ' . $username . '</a>';
118
-      $markup .= '<a class="logout-button" href="' . $user_logout_url . '"><i class="icon ion-log-out"></i> ' . t('Log Out') . '</a>';
117
+      $markup .= '<a class="" href="'.$user_page_url.'"><i class="icon ion-ios-person"></i> '.$username.'</a>';
118
+      $markup .= '<a class="logout-button" href="'.$user_logout_url.'"><i class="icon ion-log-out"></i> '.t('Log Out').'</a>';
119 119
       $markup .= '</div>';
120 120
       $markup .= '</div>';
121 121
 
Please login to merge, or discard this patch.
df/df_tools/df_tools_user/src/Plugin/migrate/source/UserFromNodeTitle.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,12 +18,12 @@
 block discarded – undo
18 18
       $first_name = $strings[0];
19 19
       $last_name = $strings[1];
20 20
       $password = \Drupal::service('password')->hash('password');
21
-      $row->setSourceProperty('Name', $first_name . $last_name);
21
+      $row->setSourceProperty('Name', $first_name.$last_name);
22 22
       $row->setSourceProperty('First', $first_name);
23 23
       $row->setSourceProperty('Last', $last_name);
24 24
       $row->setSourceProperty('Pass', $password);
25 25
       $row->setSourceProperty('Status', 1);
26
-      $row->setSourceProperty('Mail', $first_name . $last_name . '@example.com');
26
+      $row->setSourceProperty('Mail', $first_name.$last_name.'@example.com');
27 27
     }
28 28
   }
29 29
 }
Please login to merge, or discard this patch.
df/df_tools/df_tools_user/src/Plugin/migrate/source/UserPictureFile.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,11 +16,11 @@
 block discarded – undo
16 16
 
17 17
   public function prepareRow(Row $row) {
18 18
     if ($image = $row->getSourceProperty('Picture')) {
19
-      $base_path = dirname($this->configuration['path']) . '/images/';
19
+      $base_path = dirname($this->configuration['path']).'/images/';
20 20
 
21 21
       // Setup our source/destination paths.
22
-      $path = $base_path . $image;
23
-      $destination_path = 'public://' . $image;
22
+      $path = $base_path.$image;
23
+      $destination_path = 'public://'.$image;
24 24
 
25 25
       // Copy the file.
26 26
       file_unmanaged_copy($path, $destination_path, FILE_EXISTS_REPLACE);
Please login to merge, or discard this patch.
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
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         $icon = $build[$field_name]['#object']->field_icon->getString();
30 30
         if (!empty($icon)) {
31 31
           $wrapper['#children'][$field_name] = [
32
-            '#markup' => '<i class="fa ' . $icon . ' hero-icon"></i>',
32
+            '#markup' => '<i class="fa '.$icon.' hero-icon"></i>',
33 33
             '#allowed_tags' => ['i'],
34 34
           ];
35 35
         }
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
     // Attach styles.
44 44
     $alignment = $entity->get('field_hero_alignment')->getString();
45 45
     if (preg_match('/^[a-z_]+$/i', $alignment)) {
46
-      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-' . $alignment);
46
+      $wrapper['#attributes']['class'][] = Html::cleanCssIdentifier('hero-block-align-'.$alignment);
47 47
     }
48 48
     $color_regex = '/^#[0-9a-f]{6}$/i';
49 49
     $text_color = $entity->get('field_text_color')->getString();
50 50
     if (preg_match($color_regex, $text_color)) {
51
-      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: ' . $text_color;
52
-      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: ' . $text_color;
51
+      $wrapper['#children']['field_first_line']['#attributes']['style'] = 'color: '.$text_color;
52
+      $wrapper['#children']['field_second_line']['#attributes']['style'] = 'color: '.$text_color;
53 53
     }
54 54
     $gradient_color = $entity->get('field_gradient_color')->getString();
55 55
     if (preg_match($color_regex, $gradient_color)) {
@@ -68,11 +68,11 @@  discard block
 block discarded – undo
68 68
     }
69 69
     $callout_color = $entity->get('field_callout_color')->getString();
70 70
     if (preg_match($color_regex, $callout_color)) {
71
-      $style = 'background-color: ' . $callout_color . ';';
71
+      $style = 'background-color: '.$callout_color.';';
72 72
       $hex = trim($callout_color, '#');
73
-      $r = hexdec(substr($hex,0,2));
74
-      $g = hexdec(substr($hex,2,2));
75
-      $b = hexdec(substr($hex,4,2));
73
+      $r = hexdec(substr($hex, 0, 2));
74
+      $g = hexdec(substr($hex, 2, 2));
75
+      $b = hexdec(substr($hex, 4, 2));
76 76
       if ($r + $g + $b > 382) {
77 77
         $wrapper['#children']['field_hero_link'][0]['#attributes']['class'][] = 'hero-link-light-bg';
78 78
         $style .= 'border-color:black;color:black;';
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
   if (isset($variables['elements']['content']) && isset($variables['elements']['content']['#block_content'])) {
99 99
     /** @var \Drupal\block_content\Entity\BlockContent $entity */
100 100
     $entity = $variables['elements']['content']['#block_content'];
101
-    $suggestions[] = 'block__block_content__' . $entity->bundle();
101
+    $suggestions[] = 'block__block_content__'.$entity->bundle();
102 102
   }
103 103
 }
104 104
 
@@ -270,7 +270,7 @@  discard block
 block discarded – undo
270 270
   // Set up the correct pa$th for the CSV files in this module.
271 271
   $types = ['hero', 'media'];
272 272
   foreach ($types as $type) {
273
-    $id = 'import_block_' . $type;
273
+    $id = 'import_block_'.$type;
274 274
     $definitions[$id]['source']['path'] = str_replace('..', dirname(__FILE__), $definitions[$id]['source']['path']);
275 275
   }
276 276
 }
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
     // 'Current @Entity_Type' category. If the block is not a field on the
315 315
     // current entity, allow its category to be remapped.
316 316
     if ($category == '@entity') {
317
-      $block_info[$key]['category'] = $info['category']->render() . ' Fields';
317
+      $block_info[$key]['category'] = $info['category']->render().' Fields';
318 318
     }
319 319
     // Place Block Content entities into categories based on their type.
320 320
     else if ($category == 'Custom') {
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
     if ($entity = $entity_type_manager->getStorage($entity_type)->load($id)) {
359 359
       foreach ($block_info as $key => $info) {
360 360
         if ($info['id'] === 'entity_field') {
361
-          list($block_id,$block_entity_type,$field_name) = explode(':', $info['plugin_id']);
361
+          list($block_id, $block_entity_type, $field_name) = explode(':', $info['plugin_id']);
362 362
           if ($block_entity_type !== $entity_type || ($entity instanceof FieldableEntityInterface && !$entity->hasField($field_name))) {
363 363
             unset($block_info[$key]);
364 364
           }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_blocks/src/Plugin/Block/MagellanBlock.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -23,13 +23,13 @@
 block discarded – undo
23 23
     $anchor_id = Html::getUniqueId('df-tools-anchor');
24 24
     $build = [
25 25
       '#markup' =>
26
-        '<div id="' . $anchor_id . '"></div>' .
27
-        '<div data-sticky-container class="df-tools-magellan-block hide-for-small-only full-width-row">' .
28
-        '  <div class="sticky" data-sticky data-top-anchor="' . $anchor_id . '" data-margin-top="0">' .
29
-        '    <nav data-magellan data-active-class="active">' .
30
-        '      <ul class="horizontal menu expanded"></ul>' .
31
-        '    </nav>' .
32
-        '  </div>' .
26
+        '<div id="'.$anchor_id.'"></div>'.
27
+        '<div data-sticky-container class="df-tools-magellan-block hide-for-small-only full-width-row">'.
28
+        '  <div class="sticky" data-sticky data-top-anchor="'.$anchor_id.'" data-margin-top="0">'.
29
+        '    <nav data-magellan data-active-class="active">'.
30
+        '      <ul class="horizontal menu expanded"></ul>'.
31
+        '    </nav>'.
32
+        '  </div>'.
33 33
         '</div>'
34 34
     ];
35 35
 
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_panelizer/df_tools_panelizer.drush.inc 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     }
50 50
 
51 51
     // Write YAML to a file.
52
-    $panels_file = $base_path . '/data/panelizer.panels_display.node.'.$node->uuid() . '.yml';
52
+    $panels_file = $base_path.'/data/panelizer.panels_display.node.'.$node->uuid().'.yml';
53 53
     $configuration = \Drupal::service('panelizer')->getPanelsDisplay($node, 'full')->getConfiguration();
54 54
     $yaml = \Symfony\Component\Yaml\Yaml::dump($configuration, 99, 2);
55 55
     file_put_contents($panels_file, $yaml);
Please login to merge, or discard this patch.