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-4.x-cleanup ( 7e3320...6ee389 )
by Brant
07:06 queued 02:57
created
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/src/Copier.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
     // Copy and return the entity.
30 30
     if ($copy = $this->replicator->replicateEntity($entity)) {
31 31
       return $copy;
32
-    }
33
-    else {
32
+    } else {
34 33
       return false;
35 34
     }
36 35
   }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_media/src/Plugin/migrate/source/MediaImage.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
         ->getStorage('file')->loadByProperties(['filename' => $image]);
21 21
 
22 22
       if (empty($files)) {
23
-        $base_path = dirname($this->configuration['path']) . '/images/';
24
-        $path = $base_path . $image;
23
+        $base_path = dirname($this->configuration['path']).'/images/';
24
+        $path = $base_path.$image;
25 25
         $data = file_get_contents($path);
26 26
         $uri = file_build_uri($image);
27 27
         $file = file_save_data($data, $uri);
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,8 +25,7 @@
 block discarded – undo
25 25
         $data = file_get_contents($path);
26 26
         $uri = file_build_uri($image);
27 27
         $file = file_save_data($data, $uri);
28
-      }
29
-      else {
28
+      } else {
30 29
         $file = reset($files);
31 30
       }
32 31
 
Please login to merge, or discard this patch.
src/IniEncoder.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -43,12 +43,12 @@  discard block
 block discarded – undo
43 43
         }
44 44
         else {
45 45
           foreach ($value as $j) {
46
-            $output[] = $this->keysToString($keys) . '[] = ' . $j;
46
+            $output[] = $this->keysToString($keys).'[] = '.$j;
47 47
           }
48 48
         }
49 49
       }
50 50
       else {
51
-        $output[] = $this->keysToString($keys) . ' = ' . $value;
51
+        $output[] = $this->keysToString($keys).' = '.$value;
52 52
       }
53 53
 
54 54
       array_pop($keys);
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
   protected function keysToString(array $keys) {
70 70
     $head = array_shift($keys);
71 71
     if ($keys) {
72
-      return $head . '[' . implode('][', $keys) . ']';
72
+      return $head.'['.implode('][', $keys).']';
73 73
     }
74 74
     else {
75 75
       return $head;
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         foreach (['key', 'value1', 'value2', 'value3'] as $var) {
124 124
           $$var = isset($match[++$i]) ? $match[$i] : '';
125 125
         }
126
-        $value = stripslashes(substr($value1, 1, -1)) . stripslashes(substr($value2, 1, -1)) . $value3;
126
+        $value = stripslashes(substr($value1, 1, -1)).stripslashes(substr($value2, 1, -1)).$value3;
127 127
 
128 128
         // Parse array syntax.
129 129
         $keys = preg_split('/\]?\[/', rtrim($key, ']'));
Please login to merge, or discard this patch.
Braces   +3 added lines, -6 removed lines patch added patch discarded remove patch
@@ -40,14 +40,12 @@  discard block
 block discarded – undo
40 40
       if (is_array($value)) {
41 41
         if ($this->isAssociative($value)) {
42 42
           $output = array_merge($output, $this->doEncode($value, $keys));
43
-        }
44
-        else {
43
+        } else {
45 44
           foreach ($value as $j) {
46 45
             $output[] = $this->keysToString($keys) . '[] = ' . $j;
47 46
           }
48 47
         }
49
-      }
50
-      else {
48
+      } else {
51 49
         $output[] = $this->keysToString($keys) . ' = ' . $value;
52 50
       }
53 51
 
@@ -70,8 +68,7 @@  discard block
 block discarded – undo
70 68
     $head = array_shift($keys);
71 69
     if ($keys) {
72 70
       return $head . '[' . implode('][', $keys) . ']';
73
-    }
74
-    else {
71
+    } else {
75 72
       return $head;
76 73
     }
77 74
   }
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_media/src/Plugin/Block/MediaEmbedBlock.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -139,7 +139,7 @@
 block discarded – undo
139 139
       $selection['table'][$mid] = [
140 140
         '#attributes' => [
141 141
           'class' => ['draggable'],
142
-          'data-entity-id' => $media->getEntityTypeId() . ':' . $mid,
142
+          'data-entity-id' => $media->getEntityTypeId().':'.$mid,
143 143
         ],
144 144
         'title' => ['#markup' => $media->label()],
145 145
         'type' => ['#markup' => $bundle_info[$media->bundle()]['label']],
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -206,8 +206,7 @@  discard block
 block discarded – undo
206 206
       if ($media && $media->access('view')) {
207 207
         if (isset(static::$recursiveRenderDepth[$mid])) {
208 208
           static::$recursiveRenderDepth[$mid]++;
209
-        }
210
-        else {
209
+        } else {
211 210
           static::$recursiveRenderDepth[$mid] = 1;
212 211
         }
213 212
 
@@ -236,8 +235,7 @@  discard block
 block discarded – undo
236 235
       $mids = \Drupal::entityQuery('media')
237 236
         ->condition('uuid', $this->configuration['uuids'], 'IN')
238 237
         ->execute();
239
-    }
240
-    else {
238
+    } else {
241 239
       $mids = [];
242 240
     }
243 241
 
Please login to merge, or discard this patch.
RoboFile.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@
 block discarded – undo
53 53
     foreach ($arguments as $argument) {
54 54
       if ($argument{0} == '-') {
55 55
         $task->rawArg($argument);
56
-      }
57
-      else {
56
+      } else {
58 57
         $feature = "tests/features/$argument";
59 58
 
60 59
         if (file_exists("$feature.feature")) {
Please login to merge, or discard this patch.
df/df_tools/df_tools_map/src/Plugin/Field/FieldWidget/SimpleGeocoder.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -181,11 +181,11 @@
 block discarded – undo
181 181
       // Check if this field is an Address field.
182 182
       if (isset($address['address_line1'])) {
183 183
         // Format the address as a single string.
184
-        $string .= $address['address_line1'] . "\n";
185
-        $string .= !empty($address['address_line2']) ? $address['address_line2'] . "\n" : '';
186
-        $string .= $address['locality'] . ', ';
187
-        $string .= str_replace('US-', '', $address['administrative_area']) . ' ';
188
-        $string .= $address['postal_code'] . "\n";
184
+        $string .= $address['address_line1']."\n";
185
+        $string .= !empty($address['address_line2']) ? $address['address_line2']."\n" : '';
186
+        $string .= $address['locality'].', ';
187
+        $string .= str_replace('US-', '', $address['administrative_area']).' ';
188
+        $string .= $address['postal_code']."\n";
189 189
         $string .= $address['country_code'];
190 190
       }
191 191
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -126,8 +126,7 @@
 block discarded – undo
126 126
     $coordinates = $this->getSetting('show_coordinates');
127 127
     if ($coordinates) {
128 128
       $summary[] = $this->t('Coordinates are shown');
129
-    }
130
-    else {
129
+    } else {
131 130
       $summary[] = $this->t('Coordinates are hidden');
132 131
     }
133 132
 
Please login to merge, or discard this patch.
modules/df/df_tools/df_tools_media/df_tools_media.module 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@
 block discarded – undo
29 29
 function df_tools_media_views_insert(ViewEntityInterface $view) {
30 30
   if (\Drupal::isConfigSyncing()) {
31 31
     return;
32
-  }
33
-  elseif (drupal_installation_attempted() && $view->id() == 'media') {
32
+  } elseif (drupal_installation_attempted() && $view->id() == 'media') {
34 33
     $display1 = &$view->getDisplay('entity_browser_1');
35 34
     $display2 = &$view->getDisplay('entity_browser_2');
36 35
     $display1['display_options']['filters']['field_tags_target_id'] = $display2['display_options']['filters']['field_tags_target_id'] = [
Please login to merge, or discard this patch.
df/df_tools/df_tools_workflow/src/EventSubscriber/LatestCheckSubscriber.php 1 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.