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 — master ( fec4fe...b16356 )
by Vincent
07:45 queued 05:15
created
web/app/themes/stash/author.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,9 +12,9 @@
 block discarded – undo
12 12
 
13 13
 $data = Timber::get_context();
14 14
 $data['posts'] = Timber::get_posts();
15
-if ( isset( $wp_query->query_vars['author'] ) ) {
16
-    $author = new TimberUser( $wp_query->query_vars['author'] );
15
+if (isset($wp_query->query_vars['author'])) {
16
+    $author = new TimberUser($wp_query->query_vars['author']);
17 17
     $data['author'] = $author;
18
-    $data['title'] = 'Author Archives: ' . $author->name();
18
+    $data['title'] = 'Author Archives: '.$author->name();
19 19
 }
20
-Timber::render( array( 'author.twig', 'archive.twig' ), $data );
20
+Timber::render(array('author.twig', 'archive.twig'), $data);
Please login to merge, or discard this patch.
web/app/themes/stash/content-single.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,10 +16,10 @@
 block discarded – undo
16 16
 	<div class="entry-content">
17 17
 		<?php the_content(); ?>
18 18
 		<?php
19
-            wp_link_pages( array(
20
-                'before' => '<div class="page-links">' . __( 'Pages:', 'stash' ),
19
+            wp_link_pages(array(
20
+                'before' => '<div class="page-links">'.__('Pages:', 'stash'),
21 21
                 'after'  => '</div>',
22
-            ) );
22
+            ));
23 23
         ?>
24 24
 	</div><!-- .entry-content -->
25 25
 
Please login to merge, or discard this patch.
web/app/themes/stash/content.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -18,17 +18,17 @@
 block discarded – undo
18 18
 	<div class="entry-content">
19 19
 		<?php
20 20
             /* translators: %s: Name of current post */
21
-            the_content( sprintf(
22
-                __( 'Continue reading %s <span class="meta-nav">&rarr;</span>', 'stash' ),
23
-                the_title( '<span class="screen-reader-text">"', '"</span>', false )
24
-            ) );
21
+            the_content(sprintf(
22
+                __('Continue reading %s <span class="meta-nav">&rarr;</span>', 'stash'),
23
+                the_title('<span class="screen-reader-text">"', '"</span>', false)
24
+            ));
25 25
         ?>
26 26
 
27 27
 		<?php
28
-            wp_link_pages( array(
29
-                'before' => '<div class="page-links">' . __( 'Pages:', 'stash' ),
28
+            wp_link_pages(array(
29
+                'before' => '<div class="page-links">'.__('Pages:', 'stash'),
30 30
                 'after'  => '</div>',
31
-            ) );
31
+            ));
32 32
         ?>
33 33
 	</div><!-- .entry-content -->
34 34
 
Please login to merge, or discard this patch.
web/app/themes/stash/archive.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -14,27 +14,27 @@
 block discarded – undo
14 14
  * @since   Timber 0.2
15 15
  */
16 16
 
17
-$templates = array( 'archive.twig', 'index.twig' );
17
+$templates = array('archive.twig', 'index.twig');
18 18
 
19 19
 $data = Timber::get_context();
20 20
 
21 21
 $data['title'] = 'Archive';
22
-if ( is_day() ) {
23
-    $data['title'] = 'Archive: '.get_the_date( 'D M Y' );
24
-} else if ( is_month() ) {
25
-    $data['title'] = 'Archive: '.get_the_date( 'M Y' );
26
-} else if ( is_year() ) {
27
-    $data['title'] = 'Archive: '.get_the_date( 'Y' );
28
-} else if ( is_tag() ) {
29
-    $data['title'] = single_tag_title( '', false );
30
-} else if ( is_category() ) {
31
-    $data['title'] = single_cat_title( '', false );
32
-    array_unshift( $templates, 'archive-' . get_query_var( 'cat' ) . '.twig' );
33
-} else if ( is_post_type_archive() ) {
34
-    $data['title'] = post_type_archive_title( '', false );
35
-    array_unshift( $templates, 'archive-' . get_post_type() . '.twig' );
22
+if (is_day()) {
23
+    $data['title'] = 'Archive: '.get_the_date('D M Y');
24
+} else if (is_month()) {
25
+    $data['title'] = 'Archive: '.get_the_date('M Y');
26
+} else if (is_year()) {
27
+    $data['title'] = 'Archive: '.get_the_date('Y');
28
+} else if (is_tag()) {
29
+    $data['title'] = single_tag_title('', false);
30
+} else if (is_category()) {
31
+    $data['title'] = single_cat_title('', false);
32
+    array_unshift($templates, 'archive-'.get_query_var('cat').'.twig');
33
+} else if (is_post_type_archive()) {
34
+    $data['title'] = post_type_archive_title('', false);
35
+    array_unshift($templates, 'archive-'.get_post_type().'.twig');
36 36
 }
37 37
 
38 38
 $data['posts'] = Timber::get_posts();
39 39
 
40
-Timber::render( $templates, $data );
40
+Timber::render($templates, $data);
Please login to merge, or discard this patch.
web/app/themes/stash/footer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -4,10 +4,10 @@
 block discarded – undo
4 4
  * We use this to end our output buffer (started in header.php) and render into the view/page-plugin.twig template.
5 5
  */
6 6
 $timberContext = $GLOBALS['timberContext'];
7
-if ( ! isset( $timberContext ) ) {
8
-    throw new \Exception( 'Timber context not set in footer.' );
7
+if (!isset($timberContext)) {
8
+    throw new \Exception('Timber context not set in footer.');
9 9
 }
10 10
 $timberContext['content'] = ob_get_contents();
11 11
 ob_end_clean();
12
-$templates = array( 'page-plugin.twig' );
13
-Timber::render( $templates, $timberContext );
12
+$templates = array('page-plugin.twig');
13
+Timber::render($templates, $timberContext);
Please login to merge, or discard this patch.
web/app/themes/stash/comments.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
  * the visitor has not yet entered the password we will
14 14
  * return early without loading the comments.
15 15
  */
16
-if ( post_password_required() ) {
16
+if (post_password_required()) {
17 17
     return;
18 18
 }
19 19
 ?>
@@ -22,21 +22,21 @@  discard block
 block discarded – undo
22 22
 
23 23
 	<?php // You can start editing here -- including this comment! ?>
24 24
 
25
-	<?php if ( have_comments() ) : ?>
25
+	<?php if (have_comments()) : ?>
26 26
 		<h2 class="comments-title">
27 27
 			<?php
28
-                printf( _nx( 'One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'stash' ),
29
-                    number_format_i18n( get_comments_number() ), '<span>' . get_the_title() . '</span>' );
28
+                printf(_nx('One thought on &ldquo;%2$s&rdquo;', '%1$s thoughts on &ldquo;%2$s&rdquo;', get_comments_number(), 'comments title', 'stash'),
29
+                    number_format_i18n(get_comments_number()), '<span>'.get_the_title().'</span>');
30 30
             ?>
31 31
 		</h2>
32 32
 
33
-		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
33
+		<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?>
34 34
 		<nav id="comment-nav-above" class="navigation comment-navigation" role="navigation">
35
-			<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'stash' ); ?></h2>
35
+			<h2 class="screen-reader-text"><?php _e('Comment navigation', 'stash'); ?></h2>
36 36
 			<div class="nav-links">
37 37
 
38
-				<div class="nav-previous"><?php previous_comments_link( __( 'Older Comments', 'stash' ) ); ?></div>
39
-				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments', 'stash' ) ); ?></div>
38
+				<div class="nav-previous"><?php previous_comments_link(__('Older Comments', 'stash')); ?></div>
39
+				<div class="nav-next"><?php next_comments_link(__('Newer Comments', 'stash')); ?></div>
40 40
 
41 41
 			</div><!-- .nav-links -->
42 42
 		</nav><!-- #comment-nav-above -->
@@ -44,20 +44,20 @@  discard block
 block discarded – undo
44 44
 
45 45
 		<ol class="comment-list">
46 46
 			<?php
47
-                wp_list_comments( array(
47
+                wp_list_comments(array(
48 48
                     'style'      => 'ol',
49 49
                     'short_ping' => true,
50
-                ) );
50
+                ));
51 51
             ?>
52 52
 		</ol><!-- .comment-list -->
53 53
 
54
-		<?php if ( get_comment_pages_count() > 1 && get_option( 'page_comments' ) ) : // are there comments to navigate through ?>
54
+		<?php if (get_comment_pages_count() > 1 && get_option('page_comments')) : // are there comments to navigate through ?>
55 55
 		<nav id="comment-nav-below" class="navigation comment-navigation" role="navigation">
56
-			<h2 class="screen-reader-text"><?php _e( 'Comment navigation', 'stash' ); ?></h2>
56
+			<h2 class="screen-reader-text"><?php _e('Comment navigation', 'stash'); ?></h2>
57 57
 			<div class="nav-links">
58 58
 
59
-				<div class="nav-previous"><?php previous_comments_link( __( 'Older Comments', 'stash' ) ); ?></div>
60
-				<div class="nav-next"><?php next_comments_link( __( 'Newer Comments', 'stash' ) ); ?></div>
59
+				<div class="nav-previous"><?php previous_comments_link(__('Older Comments', 'stash')); ?></div>
60
+				<div class="nav-next"><?php next_comments_link(__('Newer Comments', 'stash')); ?></div>
61 61
 
62 62
 			</div><!-- .nav-links -->
63 63
 		</nav><!-- #comment-nav-below -->
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
 
68 68
 	<?php
69 69
         // If comments are closed and there are comments, let's leave a little note, shall we?
70
-        if ( ! comments_open() && '0' != get_comments_number() && post_type_supports( get_post_type(), 'comments' ) ) :
70
+        if (!comments_open() && '0' != get_comments_number() && post_type_supports(get_post_type(), 'comments')) :
71 71
     ?>
72
-		<p class="no-comments"><?php _e( 'Comments are closed.', 'stash' ); ?></p>
72
+		<p class="no-comments"><?php _e('Comments are closed.', 'stash'); ?></p>
73 73
 	<?php endif; ?>
74 74
 
75 75
 	<?php comment_form(); ?>
Please login to merge, or discard this patch.
web/app/themes/stash/single.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 $context = Timber::get_context();
13 13
 $post = Timber::query_post();
14 14
 $context['post'] = $post;
15
-$context['wp_title'] .= ' - ' . $post->title();
15
+$context['wp_title'] .= ' - '.$post->title();
16 16
 $context['comment_form'] = TimberHelper::get_comment_form();
17 17
 
18
-if ( post_password_required( $post->ID ) ) {
19
-    Timber::render( 'single-password.twig', $context );
18
+if (post_password_required($post->ID)) {
19
+    Timber::render('single-password.twig', $context);
20 20
 } else {
21
-    Timber::render( array( 'single-' . $post->ID . '.twig', 'single-' . $post->post_type . '.twig', 'single.twig' ), $context );
21
+    Timber::render(array('single-'.$post->ID.'.twig', 'single-'.$post->post_type.'.twig', 'single.twig'), $context);
22 22
 }
Please login to merge, or discard this patch.
web/app/mu-plugins/bedrock-autoloader.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
     $this->countPlugins();
45 45
 
46 46
     foreach (self::$cache['plugins'] as $plugin_file => $plugin_info) {
47
-        include_once(WPMU_PLUGIN_DIR . '/' . $plugin_file);
47
+        include_once(WPMU_PLUGIN_DIR.'/'.$plugin_file);
48 48
     }
49 49
 
50 50
     $this->pluginHooks();
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
 
64 64
     $this->updateCache(); // May as well update the transient cache whilst here.
65 65
 
66
-    self::$auto_plugins = array_map(function ($auto_plugin) {
66
+    self::$auto_plugins = array_map(function($auto_plugin) {
67 67
         $auto_plugin['Name'] .= ' *';
68 68
         return $auto_plugin;
69 69
     }, self::$auto_plugins);
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      * After that, we can update the cache.
93 93
      */
94 94
     private function updateCache() {
95
-    require_once(ABSPATH . 'wp-admin/includes/plugin.php');
95
+    require_once(ABSPATH.'wp-admin/includes/plugin.php');
96 96
 
97 97
     self::$auto_plugins = get_plugins(self::$relative_path);
98 98
     self::$mu_plugins   = get_mu_plugins(self::$relative_path);
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     if (!is_array(self::$activated)) { return; }
114 114
 
115 115
     foreach (self::$activated as $plugin_file => $plugin_info) {
116
-        do_action('activate_' . $plugin_file);
116
+        do_action('activate_'.$plugin_file);
117 117
     }
118 118
     }
119 119
 
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
      */
123 123
     private function validatePlugins() {
124 124
     foreach (self::$cache['plugins'] as $plugin_file => $plugin_info) {
125
-        if (!file_exists(WPMU_PLUGIN_DIR . '/' . $plugin_file)) {
125
+        if (!file_exists(WPMU_PLUGIN_DIR.'/'.$plugin_file)) {
126 126
         $this->updateCache();
127 127
         break;
128 128
         }
Please login to merge, or discard this patch.
config/application.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 $root_dir = dirname(__DIR__);
5 5
 
6 6
 /** @var string Document Root */
7
-$webroot_dir = $root_dir . '/web';
7
+$webroot_dir = $root_dir.'/web';
8 8
 
9 9
 /**
10 10
  * Expose global env() function from oscarotero/env
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  * Use Dotenv to set required environment variables and load .env file in root
16 16
  */
17 17
 $dotenv = new Dotenv\Dotenv($root_dir);
18
-if (file_exists($root_dir . '/.env')) {
18
+if (file_exists($root_dir.'/.env')) {
19 19
     $dotenv->load();
20 20
     $dotenv->required(['DB_NAME', 'DB_USER', 'DB_PASSWORD', 'WP_HOME', 'WP_SITEURL']);
21 21
 }
Please login to merge, or discard this patch.