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-3.x-check-php ( db7208...8c0c08 )
by Kevin
05:57
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.
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.
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.
modules/df/df_tools/df_tools_image/df_tools_image.module 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,8 +75,7 @@
 block discarded – undo
75 75
   $dir = rtrim($dir, '/');
76 76
   if ($dir == 'public') {
77 77
     $file_pattern = "[^\/]*"; // Finds anything that does not contain "/", should be fine.
78
-  }
79
-  else {
78
+  } else {
80 79
     $file_pattern = $dir ? $dir . ".+" : ".+";
81 80
   }
82 81
 
Please login to merge, or discard this patch.
df/df_tools/df_tools_migration/src/Plugin/migrate/process/DeepExplode.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -34,12 +34,10 @@
 block discarded – undo
34 34
           }
35 35
         }
36 36
         return $new_value;
37
-      }
38
-      else {
37
+      } else {
39 38
         throw new MigrateException('delimiter is empty');
40 39
       }
41
-    }
42
-    else {
40
+    } else {
43 41
       throw new MigrateException(sprintf('%s is not a string', var_export($value, TRUE)));
44 42
     }
45 43
   }
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
@@ -40,8 +40,7 @@
 block discarded – undo
40 40
       $widget_form['#title'] = '';
41 41
       $widget_form['entity_id']['#title'] = t('Existing slide');
42 42
       $widget_form['actions']['ief_reference_save']['#value'] = t('Add');
43
-    }
44
-    else {
43
+    } else {
45 44
       $widget_form['inline_entity_form']['#ief_labels']['singular'] = 'slide';
46 45
     }
47 46
   }
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
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
       list($lat, $lon) = explode(',', $geolocation);
26 26
       $point = [$lon, $lat];
27 27
       $row->setSourceProperty('Geofield', \Drupal::service('geofield.wkt_generator')->WktBuildPoint($point));
28
-    }
29
-    else {
28
+    } else {
30 29
       // Manually geocode from source information.
31 30
       $address = $row->getSourceProperty('Address Line 1');
32 31
       $address2 = $row->getSourceProperty('Address Line 2');
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_message/df_tools_message.module 1 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.