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/df/df_tools/df_tools_panelizer/df_tools_panelizer.drush.inc 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -55,8 +55,7 @@
 block discarded – undo
55 55
 
56 56
     drupal_set_message(t('Successfully exported Panelizer display for Node @nid to @panels_file', ['@nid' => $node->id(), '@panels_file' => $panels_file]));
57 57
     return TRUE;
58
-  }
59
-  else {
58
+  } else {
60 59
     drupal_set_message(t('The given Node is not Panelized.'), 'error');
61 60
     return FALSE;
62 61
   }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_config/df_tools_config.drush.inc 1 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.
modules/df/df_tools/df_tools_blocks/df_tools_blocks.module 1 patch
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.
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_slideshow/df_tools_slideshow.module 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.
df/df_tools/df_tools_map/src/Plugin/Field/FieldWidget/SimpleGeocoder.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.
df/df_tools/df_tools_map/src/Plugin/views/filter/SimpleProximity.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -102,8 +102,7 @@  discard block
 block discarded – undo
102 102
     $this->ensureMyTable();
103 103
     if (is_array($this->value)) {
104 104
       $location = $this->value[0];
105
-    }
106
-    else {
105
+    } else {
107 106
       $location = $this->value;
108 107
     }
109 108
 
@@ -150,8 +149,7 @@  discard block
 block discarded – undo
150 149
     foreach ($options as $key => $option) {
151 150
       if (is_numeric($option)) {
152 151
         $formula = str_replace(':' . $key, $option, $formula);
153
-      }
154
-      else {
152
+      } else {
155 153
         $formula = str_replace(':' . $key, db_escape_field($option), $formula);
156 154
       }
157 155
     }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_map/src/Plugin/migrate/source/MapBlock.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.
df_tools_frontend/src/Controller/QuickEditImageBrowserController.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,8 +90,7 @@  discard block
 block discarded – undo
90 90
       $entity_view_mode_ids = array_keys($this->entityManager()->getViewModes($entity->getEntityTypeId()));
91 91
       if (in_array($view_mode_id, $entity_view_mode_ids)) {
92 92
         $output = $entity->$field_name->view($view_mode_id);
93
-      }
94
-      else {
93
+      } else {
95 94
         // Each part of a custom (non-Entity Display) view mode ID is separated
96 95
         // by a dash; the first part must be the module name.
97 96
         $mode_id_parts = explode('-', $view_mode_id, 2);
@@ -108,8 +107,7 @@  discard block
 block discarded – undo
108 107
         'html' => $this->renderer->renderRoot($output),
109 108
       ];
110 109
       return new JsonResponse($data);
111
-    }
112
-    else {
110
+    } else {
113 111
       return new JsonResponse(['main_error' => $this->t('File does not exist.')]);
114 112
     }
115 113
   }
Please login to merge, or discard this patch.