Passed
Branch master (51607c)
by Paul
05:13
created
views/pages/addons/addons.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,16 +1,16 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3
-<p><?= __( 'The following Add-Ons extend the functionality of Site Reviews.', 'site-reviews' ); ?></p>
3
+<p><?= __('The following Add-Ons extend the functionality of Site Reviews.', 'site-reviews'); ?></p>
4 4
 <div class="glsr-addons wp-clearfix">
5 5
 <?php
6
-glsr( 'Modules\Html' )->renderTemplate( 'addons/addon', [
7
-	'description' => __( 'Sync your Tripadvisor reviews and display them on your site.', 'site-reviews' ),
6
+glsr('Modules\Html')->renderTemplate('addons/addon', [
7
+	'description' => __('Sync your Tripadvisor reviews and display them on your site.', 'site-reviews'),
8 8
 	'link' => 'https://niftyplugins.com/addons/site-reviews-tripadvisor/',
9 9
 	'name' => 'tripadvisor',
10 10
 	'title' => 'Tripadvisor Reviews',
11 11
 ]);
12
-glsr( 'Modules\Html' )->renderTemplate( 'addons/addon', [
13
-	'description' => __( 'Sync your Yelp reviews and display them on your site.', 'site-reviews' ),
12
+glsr('Modules\Html')->renderTemplate('addons/addon', [
13
+	'description' => __('Sync your Yelp reviews and display them on your site.', 'site-reviews'),
14 14
 	'link' => 'https://niftyplugins.com/addons/site-reviews-yelp/',
15 15
 	'name' => 'yelp',
16 16
 	'title' => 'Yelp Reviews',
Please login to merge, or discard this patch.
views/pages/tools/logging.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3 3
 <br>
4 4
 
5 5
 <textarea id="log-file" class="large-text code glsr-code" rows="20" readonly><?= $logger; ?></textarea>
6 6
 
7 7
 <form method="post" class="float-left">
8
-	<?php wp_nonce_field( 'clear-log' ); ?>
8
+	<?php wp_nonce_field('clear-log'); ?>
9 9
 	<input type="hidden" name="<?= $id; ?>[action]" value="clear-log">
10
-	<?php submit_button( __( 'Clear Log', 'site-reviews' ), 'secondary', 'clear-log', false ); ?>
10
+	<?php submit_button(__('Clear Log', 'site-reviews'), 'secondary', 'clear-log', false); ?>
11 11
 </form>
12 12
 
13 13
 <form method="post">
14
-	<?php wp_nonce_field( 'download-log' ); ?>
14
+	<?php wp_nonce_field('download-log'); ?>
15 15
 	<input type="hidden" name="<?= $id; ?>[action]" value="download-log">
16
-	<?php submit_button( __( 'Download Log', 'site-reviews' ), 'secondary', '', false ); ?>
16
+	<?php submit_button(__('Download Log', 'site-reviews'), 'secondary', '', false); ?>
17 17
 </form>
Please login to merge, or discard this patch.
views/pages/tools/system-info.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3 3
 <br>
4 4
 
5 5
 <form method="post">
6
-	<?php wp_nonce_field( 'download-system-info' ); ?>
6
+	<?php wp_nonce_field('download-system-info'); ?>
7 7
 	<textarea class="large-text code glsr-code" name="<?= $id; ?>[system-info]" rows="20" onclick="this.select()" readonly><?= $system->get(); ?></textarea>
8 8
 	<input type="hidden" name="<?= $id; ?>[action]" value="download-system-info">
9
-	<?php submit_button( __( 'Download System Info', 'site-reviews' ), 'secondary', '', false ); ?>
9
+	<?php submit_button(__('Download System Info', 'site-reviews'), 'secondary', '', false); ?>
10 10
 </form>
Please login to merge, or discard this patch.
views/pages/tools/inport-export.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,3 +1,3 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3 3
 <br>
Please login to merge, or discard this patch.
views/pages/documentation/support.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,17 +1,17 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3 3
 <div class="glsr-card card">
4 4
 	<h3>Contacting Support</h3>
5 5
 	<ol>
6 6
 		<li>
7
-			<p><strong>Before you ask for help</strong>, please confirm that you have read both the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation&tab=faq' ); ?>">FAQ</a></code> and <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation&tab=shortcodes' ); ?>">Shortcodes</a></code> pages as many questions have already been answered there.</p>
7
+			<p><strong>Before you ask for help</strong>, please confirm that you have read both the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation&tab=faq'); ?>">FAQ</a></code> and <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation&tab=shortcodes'); ?>">Shortcodes</a></code> pages as many questions have already been answered there.</p>
8 8
 		</li>
9 9
 		<li>
10 10
 			<p><strong>If you are experiencing problems</strong> or something is not working as expected, please confirm that you have tried the <em>Basic Troubleshooting Steps</em> provided below.</p>
11 11
 		</li>
12 12
 		<li>
13 13
 			<p><strong>If you can confirm that you have completed the steps above</strong> and are still in a pickle, send an email to <a href="mailto:[email protected]?subject=Support%20request">[email protected]</a> and make sure to write a detailed description of the problem you are having as well as any steps needed to reproduce it.</p>
14
-			<p><span class="required">Important:</span> If you are writing about a problem that you are having, please make sure to <em>download</em> and attach the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=tools&tab=system-info' ); ?>">Tools &rarr; System Info</a></code> report to your email.</p>
14
+			<p><span class="required">Important:</span> If you are writing about a problem that you are having, please make sure to <em>download</em> and attach the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=tools&tab=system-info'); ?>">Tools &rarr; System Info</a></code> report to your email.</p>
15 15
 		</li>
16 16
 	</ol>
17 17
 </div>
Please login to merge, or discard this patch.
views/pages/documentation/hooks.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3 3
 <p>Hooks (also known as Filters &amp; Actions) are used to make changes to the plugin without modifying the core files of the plugin directly. In order to use the following hooks, you must add them to your theme's <code>functions.php</code> file.</p>
4 4
 
Please login to merge, or discard this patch.
views/pages/documentation/faq.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,13 +1,13 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3 3
 <div class="glsr-card card">
4 4
 	<h3>How do I change the text of...?</h3>
5
-	<p>You can change any text in the plugin on the <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=settings&tab=translations' ); ?>">Settings &rarr; Translations</a></code> page.</p>
5
+	<p>You can change any text in the plugin on the <code><a href="<?= admin_url('edit.php?post_type=site-review&page=settings&tab=translations'); ?>">Settings &rarr; Translations</a></code> page.</p>
6 6
 </div>
7 7
 
8 8
 <div class="glsr-card card">
9 9
 	<h3>How do I disable the plugin CSS and/or Javascript?</h3>
10
-	<p>To disable the plugin's stylesheet or javascript from loading on your website, copy and paste the provided <code><a href="<?= admin_url( 'edit.php?post_type=site-review&page=documentation&tab=hooks' ); ?>">Documentation &rarr; Hooks</a></code> into your theme's <code>functions.php</code> file.</p>
10
+	<p>To disable the plugin's stylesheet or javascript from loading on your website, copy and paste the provided <code><a href="<?= admin_url('edit.php?post_type=site-review&page=documentation&tab=hooks'); ?>">Documentation &rarr; Hooks</a></code> into your theme's <code>functions.php</code> file.</p>
11 11
 </div>
12 12
 
13 13
 <div class="glsr-card card">
Please login to merge, or discard this patch.
views/pages/documentation/functions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3 3
 <p>The following helper functions will only work if the <?= glsr()->name; ?> plugin is active. If you use any of them in a theme, make sure you add <a href="https://php.net/manual/en/function.function-exists.php">function_exists</a> checks to your theme's <code>functions.php</code> file for each helper function you use.</p>
4 4
 
Please login to merge, or discard this patch.
views/pages/documentation/shortcodes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@
 block discarded – undo
1
-<?php defined( 'WPINC' ) || die; ?>
1
+<?php defined('WPINC') || die; ?>
2 2
 
3 3
 <div class="glsr-card card">
4 4
 	<h3>The [site_reviews] shortcode</h3>
Please login to merge, or discard this patch.