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 ( 0b6531...4fab5e )
by Samuel
08:43
created
modules/df/df_tools/df_tools_migration/df_tools_migration.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
 
36 36
   // Point source path to local CSV file.
37 37
   if ($local_csv === TRUE) {
38
-    $migration['source']['path'] = $path . $prefix . "." . $entity_type  . "." . $type . '.csv';
38
+    $migration['source']['path'] = $path.$prefix.".".$entity_type.".".$type.'.csv';
39 39
   }
40 40
 
41 41
   // Set content type to current bundle.
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_lite/df_tools_lite.module 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@
 block discarded – undo
22 22
 
23 23
     // Reset the library path to work around a bug with the Libraries module not
24 24
     // incorporating the ['path'] when calling libraries_get_path().
25
-    $libraries['lite']['library path'] = libraries_get_path('lite') . '/' . $libraries['lite']['path'];
25
+    $libraries['lite']['library path'] = libraries_get_path('lite').'/'.$libraries['lite']['path'];
26 26
 
27 27
     // Hardcode the version number because the raw source files do not contain
28 28
     // any version information.
Please login to merge, or discard this patch.
df/df_tools/df_tools_map/src/Plugin/Field/FieldWidget/SimpleGeocoder.php 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
 
74 74
     $summary[] = $this->t('Source Field: @source', ['@source' => $this->getSetting('source_field')]);
75 75
     $coordinates = $this->getSetting('show_coordinates') ? 'shown' : 'hidden';
76
-    $summary[] = $this->t('Coordinates are ' . $coordinates);
76
+    $summary[] = $this->t('Coordinates are '.$coordinates);
77 77
 
78 78
     return $summary;
79 79
   }
@@ -122,12 +122,12 @@  discard block
 block discarded – undo
122 122
 
123 123
         // Check if this field is an Address field.
124 124
         if (isset($value['address_line1'])) {
125
-          $address_line2 = !empty($value['address_line2']) ? $value['address_line2'] . "\n" : '';
126
-          $value['value'] = $value['address_line1'] . "\n" .
127
-            $address_line2 .
128
-            $value['locality'] . ', ' .
129
-            str_replace('US-', '', $value['administrative_area']) . ' ' .
130
-            $value['postal_code'] . "\n" .
125
+          $address_line2 = !empty($value['address_line2']) ? $value['address_line2']."\n" : '';
126
+          $value['value'] = $value['address_line1']."\n".
127
+            $address_line2.
128
+            $value['locality'].', '.
129
+            str_replace('US-', '', $value['administrative_area']).' '.
130
+            $value['postal_code']."\n".
131 131
             $value['country_code'];
132 132
         }
133 133
 
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
           // Set our value in a similar way to Geofield's LatLon Widget.
137 137
           // @see \Drupal\geofield\Plugin\Field\FieldWidget\GeofieldLatLonWidget::massageFormValues()
138 138
           $coordinates = $collection->first()->getCoordinates();
139
-          $point = [$coordinates->getLongitude(),  $coordinates->getLatitude()];
139
+          $point = [$coordinates->getLongitude(), $coordinates->getLatitude()];
140 140
           $values[$delta]['value'] = \Drupal::service('geofield.wkt_generator')->WktBuildPoint($point);
141 141
         }
142 142
       }
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -90,8 +90,7 @@
 block discarded – undo
90 90
         '#placeholder' => t('Latitude: @lat, Longitude: @lon', ['@lat' => $items[$delta]->lat, '@lon' => $items[$delta]->lon]),
91 91
         '#suffix' => t('These values are set dynamically on submit from the @field field.', ['@field' => $this->getSetting('source_field')]),
92 92
       ];
93
-    }
94
-    else {
93
+    } else {
95 94
       // We set this field dynamically, no need to have more than the minimum.
96 95
       $element += [
97 96
         '#type' => 'hidden',
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_translation/df_tools_translation.module 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
   $source = $migration->getSourcePlugin();
26 26
   /** @var Drupal\migrate_source_csv\CSVFileObject $iterator */
27 27
   $iterator = $source->initializeIterator();
28
-  $filename = $iterator->getPath() . '/' . $iterator->getFilename();
28
+  $filename = $iterator->getPath().'/'.$iterator->getFilename();
29 29
 
30 30
   /** @var \Drupal\migrate\Plugin\migrate\destination\EntityContentBase $destination_plugin */
31 31
   $destination_plugin = $migration->getDestinationPlugin();
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
   batch_set($batch);
225 225
   // Set a batch to update configuration as well.
226 226
   if ($batch = locale_config_batch_update_components($options, $langcodes)) {
227
-    $batch['file'] = drupal_get_path('module', 'df_tools_translation') . '/df_tools_translation.batch.inc';
227
+    $batch['file'] = drupal_get_path('module', 'df_tools_translation').'/df_tools_translation.batch.inc';
228 228
     batch_set($batch);
229 229
   }
230 230
 }
@@ -250,7 +250,7 @@  discard block
 block discarded – undo
250 250
 
251 251
   // Import each file.
252 252
   foreach ($langcodes as $langcode) {
253
-    $filepath = DRUPAL_ROOT . '/' . $path . '/translations/' . $langcode . '.po';
253
+    $filepath = DRUPAL_ROOT.'/'.$path.'/translations/'.$langcode.'.po';
254 254
     if (file_exists($filepath)) {
255 255
       \Drupal::moduleHandler()->loadInclude('locale', 'bulk.inc');
256 256
       \Drupal::moduleHandler()->loadInclude('locale', 'translation.inc');
@@ -264,7 +264,7 @@  discard block
 block discarded – undo
264 264
       ]);
265 265
 
266 266
       $original_file = (object) [
267
-        'filename' => $langcode . '.po',
267
+        'filename' => $langcode.'.po',
268 268
         'uri' => $filepath
269 269
       ];
270 270
       $file = locale_translate_file_attach_properties($original_file, $options);
@@ -307,7 +307,7 @@  discard block
 block discarded – undo
307 307
       if ($langcode == 'en') {
308 308
         $langcode = '';
309 309
       }
310
-      $url = \Drupal\Core\Url::fromUri('base:/' . $langcode . $alias);
310
+      $url = \Drupal\Core\Url::fromUri('base:/'.$langcode.$alias);
311 311
 
312 312
       $current_name = [
313 313
         '#markup' => t($language->getName())
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,8 +39,7 @@  discard block
 block discarded – undo
39 39
   // Prefer UUIDs to other fields.
40 40
   if (in_array('UUID', $ids, TRUE)) {
41 41
     $id_map = ['uuid', 'UUID'];
42
-  }
43
-  else {
42
+  } else {
44 43
     foreach ($processes as $field => $process) {
45 44
       if (isset($process[0]['source']) && $process[0]['source'] == $ids[0]) {
46 45
         $id_map = [$field, $ids[0]];
@@ -98,8 +97,7 @@  discard block
 block discarded – undo
98 97
           $entity_values = $entity->toArray();
99 98
           $entity_values['path'] = [];
100 99
           $translation = $entity->addTranslation($langcode, $entity_values);
101
-        }
102
-        else {
100
+        } else {
103 101
           $translation = $entity->getTranslation($langcode);
104 102
         }
105 103
 
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_frontend/df_tools_frontend.module 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,11 +8,11 @@
 block discarded – undo
8 8
 function df_tools_frontend_library_info_alter(&$libraries, $extension) {
9 9
   if ($extension == 'image') {
10 10
     $path = drupal_get_path('module', 'df_tools_frontend');
11
-    $libraries['quickedit.inPlaceEditor.image']['js']['/' . $path . '/js/quickedit_image_browser.js'] = [];
11
+    $libraries['quickedit.inPlaceEditor.image']['js']['/'.$path.'/js/quickedit_image_browser.js'] = [];
12 12
   }
13 13
   else if ($extension === 'lightning_media') {
14 14
     $path = drupal_get_path('module', 'df_tools_frontend');
15
-    $libraries['browser.styling']['css']['component']['/' . $path . '/css/lightning_media.css'] = [];
15
+    $libraries['browser.styling']['css']['component']['/'.$path.'/css/lightning_media.css'] = [];
16 16
   }
17 17
 }
18 18
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,7 @@
 block discarded – undo
9 9
   if ($extension == 'image') {
10 10
     $path = drupal_get_path('module', 'df_tools_frontend');
11 11
     $libraries['quickedit.inPlaceEditor.image']['js']['/' . $path . '/js/quickedit_image_browser.js'] = [];
12
-  }
13
-  else if ($extension === 'lightning_media') {
12
+  } else if ($extension === 'lightning_media') {
14 13
     $path = drupal_get_path('module', 'df_tools_frontend');
15 14
     $libraries['browser.styling']['css']['component']['/' . $path . '/css/lightning_media.css'] = [];
16 15
   }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_image/src/Form/CreateDerivativesForm.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     }
27 27
 
28 28
     $form['description'] = [
29
-      '#markup' => '<p>' . t('Image derivatives can be created in bulk manually to remove the need for Drupal to create them on page load.') . '</p>',
29
+      '#markup' => '<p>'.t('Image derivatives can be created in bulk manually to remove the need for Drupal to create them on page load.').'</p>',
30 30
     ];
31 31
     $form['image_styles'] = [
32 32
       '#type' => 'checkboxes',
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_message/df_tools_message.module 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -41,21 +41,21 @@
 block discarded – undo
41 41
 
42 42
   // Inline the logo image as a data URL.
43 43
   $theme = \Drupal::config('system.theme')->get('default');
44
-  $logo = DRUPAL_ROOT . '/' . theme_get_setting('logo.url', $theme);
44
+  $logo = DRUPAL_ROOT.'/'.theme_get_setting('logo.url', $theme);
45 45
   $mime = \Drupal::service('file.mime_type.guesser')->guess($logo);
46 46
   $allowed_mime = ['image/svg+xml', 'image/png', 'image/jpeg', 'image/gif'];
47 47
   if (in_array($mime, $allowed_mime, TRUE)) {
48 48
     $data = base64_encode(file_get_contents($logo));
49
-    $logo_url = 'data: ' . $mime . ';base64,' . $data;
49
+    $logo_url = 'data: '.$mime.';base64,'.$data;
50 50
   }
51 51
   else {
52 52
     $logo_url = FALSE;
53 53
   }
54 54
 
55 55
   // Use the current theme's template is available.
56
-  $template_file = drupal_get_path('theme', $theme) . '/inky_templates/compiled/styled_email.html.twig';
56
+  $template_file = drupal_get_path('theme', $theme).'/inky_templates/compiled/styled_email.html.twig';
57 57
   if (file_exists($template_file)) {
58
-    $template = str_replace(["'{{","}}'"], ['{{','}}'], file_get_contents($template_file));
58
+    $template = str_replace(["'{{", "}}'"], ['{{', '}}'], file_get_contents($template_file));
59 59
   }
60 60
   else {
61 61
     $template = '{{ message }}';
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,8 +47,7 @@  discard block
 block discarded – undo
47 47
   if (in_array($mime, $allowed_mime, TRUE)) {
48 48
     $data = base64_encode(file_get_contents($logo));
49 49
     $logo_url = 'data: ' . $mime . ';base64,' . $data;
50
-  }
51
-  else {
50
+  } else {
52 51
     $logo_url = FALSE;
53 52
   }
54 53
 
@@ -56,8 +55,7 @@  discard block
 block discarded – undo
56 55
   $template_file = drupal_get_path('theme', $theme) . '/inky_templates/compiled/styled_email.html.twig';
57 56
   if (file_exists($template_file)) {
58 57
     $template = str_replace(["'{{","}}'"], ['{{','}}'], file_get_contents($template_file));
59
-  }
60
-  else {
58
+  } else {
61 59
     $template = '{{ message }}';
62 60
   }
63 61
 
Please login to merge, or discard this patch.
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 2 patches
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.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -264,8 +264,7 @@
 block discarded – undo
264 264
       else {
265 265
         $chunk = _color_shift($palette[$base], $default_color_mapping[$base], $chunk, $info['blend_target']);
266 266
       }
267
-    }
268
-    else {
267
+    } else {
269 268
       // Determine the most suitable base color for the next color.
270 269
 
271 270
       // 'a' declarations. Use link.
Please login to merge, or discard this patch.