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
Pull Request — 8.x-1.x (#32)
by Brant
02:37
created
modules/dfs/dfs_tec/dfs_tec.module 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -15,8 +15,8 @@  discard block
 block discarded – undo
15 15
     // Main module help for the dfs_dev module.
16 16
     case 'help.page.dfs_tec':
17 17
       $output = '';
18
-      $output .= '<h3>' . t('About') . '</h3>';
19
-      $output .= '<p>' . t('Demo Framework Scenario for Technology Websites.') . '</p>';
18
+      $output .= '<h3>'.t('About').'</h3>';
19
+      $output .= '<p>'.t('Demo Framework Scenario for Technology Websites.').'</p>';
20 20
       return $output;
21 21
     default:
22 22
   }
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
  */
77 77
 function dfs_tec_migration_plugins_alter(&$definitions) {
78 78
   // Set up base path.
79
-  $path = dirname(__FILE__) . '/data/';
79
+  $path = dirname(__FILE__).'/data/';
80 80
 
81 81
   $dfs = 'dfs_tec';
82 82
 
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
   // Add our block migrations
177 177
   $block_types = array('slideshow', 'hero', 'basic');
178 178
   foreach ($block_types as $type) {
179
-    $migration = _df_migration_copy($definitions['import_block_' . $type], $dfs, $type, 'block_content', $path);
179
+    $migration = _df_migration_copy($definitions['import_block_'.$type], $dfs, $type, 'block_content', $path);
180 180
     $definitions[$migration['id']] = $migration;
181 181
   }
182 182
 
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_config/df_tools_config.drush.inc 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -75,13 +75,13 @@  discard block
 block discarded – undo
75 75
             }
76 76
             try {
77 77
               $module_info = \Drupal::moduleHandler()->getModule($input);
78
-              $destination_dir = DRUPAL_ROOT . '/' . $module_info->getPath() . '/config/install/';
79
-              $source = DRUPAL_ROOT . '/' . $destination_storage->getFilePath($config);
78
+              $destination_dir = DRUPAL_ROOT.'/'.$module_info->getPath().'/config/install/';
79
+              $source = DRUPAL_ROOT.'/'.$destination_storage->getFilePath($config);
80 80
               // Create /config/install directory if it does not exist.
81 81
               if (!file_exists($destination_dir)) {
82 82
                 mkdir($destination_dir, 0755, true);
83 83
               }
84
-              $destination = $destination_dir . basename($source);
84
+              $destination = $destination_dir.basename($source);
85 85
               if (!copy($source, $destination)) {
86 86
                 drush_log(dt('New copy from @source to @destination failed.', ['@source' => $source, '@destination' => $destination]), LogLevel::ERROR);
87 87
               }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
           break;
97 97
         case 'update':
98 98
           foreach ($list as $config) {
99
-            $source = DRUPAL_ROOT . '/' . $destination_storage->getFilePath($config);
99
+            $source = DRUPAL_ROOT.'/'.$destination_storage->getFilePath($config);
100 100
 
101 101
             $instances = _df_tools_config_find_config_instances($destination_storage, $config);
102 102
             $choice = drush_choice($instances, dt('Choose update destination for @config.', ['@config' => $config]));
@@ -148,8 +148,8 @@  discard block
 block discarded – undo
148 148
 
149 149
   $iterator = new RecursiveDirectoryIterator(DRUPAL_ROOT);
150 150
   $files = [];
151
-  foreach(new RecursiveIteratorIterator($iterator) as $file){
152
-    if(strpos($file, $filename) !== FALSE && strpos($file, DRUPAL_ROOT . '/sites/') === FALSE){
151
+  foreach (new RecursiveIteratorIterator($iterator) as $file) {
152
+    if (strpos($file, $filename) !== FALSE && strpos($file, DRUPAL_ROOT.'/sites/') === FALSE) {
153 153
       $files[] = (string) $file;
154 154
     }
155 155
   }
Please login to merge, or discard this patch.
Braces   +6 added lines, -12 removed lines patch added patch discarded remove patch
@@ -41,8 +41,7 @@  discard block
 block discarded – undo
41 41
     if (empty($destination)) {
42 42
       return drush_user_abort();
43 43
     }
44
-  }
45
-  elseif (!isset($destination)) {
44
+  } elseif (!isset($destination)) {
46 45
     $destination = CONFIG_SYNC_DIRECTORY;
47 46
   }
48 47
   $destination_dir = config_get_config_directory($destination);
@@ -84,13 +83,11 @@  discard block
 block discarded – undo
84 83
               $destination = $destination_dir . basename($source);
85 84
               if (!copy($source, $destination)) {
86 85
                 drush_log(dt('New copy from @source to @destination failed.', ['@source' => $source, '@destination' => $destination]), LogLevel::ERROR);
87
-              }
88
-              else {
86
+              } else {
89 87
                 _df_tools_config_strip_uuid($destination);
90 88
                 drush_log(dt('Successfully created @config.', ['@config' => $config]), LogLevel::OK);
91 89
               }
92
-            }
93
-            catch (InvalidArgumentException $e) {
90
+            } catch (InvalidArgumentException $e) {
94 91
               drush_log(dt('Module @input does not exist or is not enabled.', ['@input' => $input]), LogLevel::ERROR);
95 92
             }
96 93
           }
@@ -105,8 +102,7 @@  discard block
 block discarded – undo
105 102
               $destination = $instances[$choice];
106 103
               if (!copy($source, $destination)) {
107 104
                 drush_log(dt('Copy from @source to @destination failed.', ['@source' => $source, '@destination' => $destination]), LogLevel::ERROR);
108
-              }
109
-              else {
105
+              } else {
110 106
                 _df_tools_config_strip_uuid($destination);
111 107
                 drush_log(dt('Successfully copied @config.', ['@config' => $config]), LogLevel::OK);
112 108
               }
@@ -120,8 +116,7 @@  discard block
 block discarded – undo
120 116
             if ($choice !== FALSE) {
121 117
               if (!unlink($instances[$choice])) {
122 118
                 drush_log(dt('Deletion of @path failed.', ['@path' => $instances[$choice]]), LogLevel::ERROR);
123
-              }
124
-              else {
119
+              } else {
125 120
                 drush_log(dt('Successfully deleted @config.', ['@config' => $config]), LogLevel::OK);
126 121
               }
127 122
             }
@@ -221,8 +216,7 @@  discard block
 block discarded – undo
221 216
       file_put_contents($filepath, implode($file));
222 217
     }
223 218
     return TRUE;
224
-  }
225
-  else {
219
+  } else {
226 220
     return FALSE;
227 221
   }
228 222
 }
Please login to merge, or discard this patch.
themes/dfs_base/layouts/onecoltabs/onecoltabs.inc 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
   'theme' => 'fin_onecoltabs',
12 12
   'css' => 'onecoltabs.css',
13 13
   'regions' => array(
14
-  	'top' => t('Top region'),
15
-  	'tabs'   => t('Tabbed region')
16
-  	),
14
+    'top' => t('Top region'),
15
+    'tabs'   => t('Tabbed region')
16
+    ),
17 17
 );
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_translation/df_tools_translation.batch.inc 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-include_once drupal_get_path('module', 'locale') . '/locale.bulk.inc';
4
-include_once drupal_get_path('module', 'locale') . '/locale.batch.inc';
3
+include_once drupal_get_path('module', 'locale').'/locale.bulk.inc';
4
+include_once drupal_get_path('module', 'locale').'/locale.batch.inc';
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_translation/df_tools_translation.module 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
   $source = $migration->getSourcePlugin();
17 17
   /** @var Drupal\migrate_source_csv\CSVFileObject $iterator */
18 18
   $iterator = $source->initializeIterator();
19
-  $filename = $iterator->getPath() . '/' . $iterator->getFilename();
19
+  $filename = $iterator->getPath().'/'.$iterator->getFilename();
20 20
 
21 21
   $destination = $migration->getDestinationPlugin();
22 22
   $entity_type = explode(':', $destination->getPluginId())[1];
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
   batch_set($batch);
198 198
   // Set a batch to update configuration as well.
199 199
   if ($batch = locale_config_batch_update_components($options, $langcodes)) {
200
-    $batch['file'] = drupal_get_path('module', 'df_tools_translation') . '/df_tools_translation.batch.inc';
200
+    $batch['file'] = drupal_get_path('module', 'df_tools_translation').'/df_tools_translation.batch.inc';
201 201
     batch_set($batch);
202 202
   }
203 203
 }
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
 
224 224
   // Import each file.
225 225
   foreach ($langcodes as $langcode) {
226
-    $filepath = DRUPAL_ROOT . '/' . $path . '/translations/' . $langcode . '.po';
226
+    $filepath = DRUPAL_ROOT.'/'.$path.'/translations/'.$langcode.'.po';
227 227
     if (file_exists($filepath)) {
228 228
       \Drupal::moduleHandler()->loadInclude('locale', 'bulk.inc');
229 229
       \Drupal::moduleHandler()->loadInclude('locale', 'translation.inc');
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
       ]);
238 238
 
239 239
       $original_file = (object) [
240
-        'filename' => $langcode . '.po',
240
+        'filename' => $langcode.'.po',
241 241
         'uri' => $filepath
242 242
       ];
243 243
       $file = locale_translate_file_attach_properties($original_file, $options);
@@ -280,7 +280,7 @@  discard block
 block discarded – undo
280 280
       if ($langcode == 'en') {
281 281
         $langcode = '';
282 282
       }
283
-      $url = \Drupal\Core\Url::fromUri('base:/' . $langcode . $alias);
283
+      $url = \Drupal\Core\Url::fromUri('base:/'.$langcode.$alias);
284 284
 
285 285
       $current_name = [
286 286
         '#markup' => t($language->getName())
Please login to merge, or discard this patch.
df_tools/df_tools_moderation/src/EventSubscriber/LatestCheckSubscriber.php 2 patches
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -4,7 +4,6 @@
 block discarded – undo
4 4
 
5 5
 use Symfony\Component\EventDispatcher\EventSubscriberInterface;
6 6
 use Symfony\Component\EventDispatcher\Event;
7
-use Symfony\Component\HttpKernel\Event\KernelEvent;
8 7
 use Symfony\Component\HttpKernel\KernelEvents;
9 8
 use Symfony\Component\HttpKernel\Event\GetResponseEvent;
10 9
 use Drupal\Core\Cache\CacheTagsInvalidator;
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     if ($node = $event->getRequest()->get('node')) {
61 61
       if (\Drupal::currentUser()->hasPermission('view latest version')) {
62 62
         $theme = $this->themeManager->getActiveTheme()->getName();
63
-        $tag = 'config:block.block.' . $theme . '_local_actions';
63
+        $tag = 'config:block.block.'.$theme.'_local_actions';
64 64
         $this->cacheTagsInvalidator->invalidateTags([$tag]);
65 65
       }
66 66
     }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_blocks/df_tools_blocks.module 2 patches
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -34,8 +34,7 @@  discard block
 block discarded – undo
34 34
             ];
35 35
           }
36 36
           unset($variables['content'][$field_name]);
37
-        }
38
-        else if ($field_name != 'field_hero_image') {
37
+        } else if ($field_name != 'field_hero_image') {
39 38
           $wrapper['#children'][] = $variables['content'][$field_name];
40 39
           unset($variables['content'][$field_name]);
41 40
         }
@@ -118,8 +117,7 @@  discard block
 block discarded – undo
118 117
     if ($form['plugin_id']['#value'] == 'content_embed') {
119 118
       $form['#attached']['library'][] = 'df_tools_blocks/auto_open';
120 119
       $form['#attributes']['data-df-tools-blocks-auto-open'] = 'settings_selection_nids_entity_browser';
121
-    }
122
-    else if ($form['plugin_id']['#value'] == 'image_embed') {
120
+    } else if ($form['plugin_id']['#value'] == 'image_embed') {
123 121
       $form['#attached']['library'][] = 'df_tools_blocks/auto_open';
124 122
       $form['#attributes']['data-df-tools-blocks-auto-open'] = 'settings_selection_fids_entity_browser';
125 123
     }
@@ -246,8 +244,7 @@  discard block
 block discarded – undo
246 244
     // current entity, allow its category to be remapped.
247 245
     if ($category == '@entity') {
248 246
       $block_info[$key]['category'] = 'Current ' . $info['category']->render();
249
-    }
250
-    else {
247
+    } else {
251 248
       if (isset($category_map[$category])) {
252 249
         $block_info[$key]['category'] = t($category_map[$category]);
253 250
       }
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
           $icon = $variables['content'][$field_name]['#object']->field_icon->getString();
30 30
           if (!empty($icon)) {
31 31
             $wrapper['#children'][] = [
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
           }
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
   if (isset($variables['elements']['content']) && isset($variables['elements']['content']['#block_content'])) {
54 54
     /** @var \Drupal\block_content\Entity\BlockContent $entity */
55 55
     $entity = $variables['elements']['content']['#block_content'];
56
-    $suggestions[] = 'block__block_content__' . $entity->bundle();
56
+    $suggestions[] = 'block__block_content__'.$entity->bundle();
57 57
   }
58 58
 }
59 59
 
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
   // Set up the correct path for the CSV file in import_block_map.
182 182
   $types = ['hero', 'url'];
183 183
   foreach ($types as $type) {
184
-    $id = 'import_block_' . $type;
184
+    $id = 'import_block_'.$type;
185 185
     $definitions[$id]['source']['path'] = str_replace('..', dirname(__FILE__), $definitions[$id]['source']['path']);
186 186
   }
187 187
 }
@@ -225,7 +225,7 @@  discard block
 block discarded – undo
225 225
     // 'Current @Entity_Type' category. If the block is not a field on the
226 226
     // current entity, allow its category to be remapped.
227 227
     if ($category == '@entity') {
228
-      $block_info[$key]['category'] = 'Current ' . $info['category']->render();
228
+      $block_info[$key]['category'] = 'Current '.$info['category']->render();
229 229
     }
230 230
     else {
231 231
       if (isset($category_map[$category])) {
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_blocks/src/Copier.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -32,8 +32,7 @@
 block discarded – undo
32 32
     // Create a MigrateSource object.
33 33
     if (isset($arguments['path'])) {
34 34
       $import_path = $arguments['path'];
35
-    }
36
-    else {
35
+    } else {
37 36
       $import_path = drupal_get_path('module', 'df_tools_commerce_product') . '/import/df_tools_commerce.fpp.commerce_product.csv';
38 37
     }
39 38
     $this->source = new MigrateSourceCSV($import_path, array(), array('header_rows' => 1));
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_moderation/src/Routing/RouteSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
    * {@inheritdoc}
19 19
    */
20 20
   public static function getSubscribedEvents() {
21
-    $events[RoutingEvents::ALTER] = ['onAlterRoutes',-9999];  // negative Values means "late"
21
+    $events[RoutingEvents::ALTER] = ['onAlterRoutes', -9999]; // negative Values means "late"
22 22
     return $events;
23 23
   }
24 24
 
Please login to merge, or discard this patch.