Passed
Push — master ( 0b281c...7e4cda )
by Paul
10:53 queued 04:23
created
views/pages/documentation/addons.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3
-<?php foreach ($addons as $title => $section) : ?>
3
+<?php foreach( $addons as $title => $section ) : ?>
4 4
 <div class="glsr-card postbox">
5 5
     <div class="glsr-card-header">
6 6
         <h3><?= $title; ?></h3>
7 7
         <button type="button" class="handlediv" aria-expanded="true">
8
-            <span class="screen-reader-text"><?= __('Toggle documentation panel', 'site-reviews'); ?></span>
8
+            <span class="screen-reader-text"><?= __( 'Toggle documentation panel', 'site-reviews' ); ?></span>
9 9
             <span class="toggle-indicator" aria-hidden="true"></span>
10 10
         </button>
11 11
     </div>
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,8 +1,8 @@
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3 3
 <form method="post">
4 4
     <textarea class="large-text code glsr-code glsr-code-large" name="{{ id }}[system-info]" rows="20" onclick="this.select()" readonly>{{ system }}</textarea>
5 5
     <input type="hidden" name="{{ id }}[_action]" value="download-system-info">
6
-    <?php wp_nonce_field('download-system-info'); ?>
7
-    <?php submit_button(__('Download System Info', 'site-reviews'), 'primary', '', false); ?>
6
+    <?php wp_nonce_field( 'download-system-info' ); ?>
7
+    <?php submit_button( __( 'Download System Info', 'site-reviews' ), 'primary', '', false ); ?>
8 8
 </form>
Please login to merge, or discard this patch.
views/pages/tools/general.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -1,25 +1,25 @@  discard block
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3
-<?php if (glsr()->hasPermission('settings')) : ?>
3
+<?php if( glsr()->hasPermission( 'settings' ) ) : ?>
4 4
 <div class="glsr-card card">
5 5
     <h3>Export Settings</h3>
6 6
     <p>Export the Site Reviews settings for this site to a <code>*.json</code> file. This allows you to easily import the plugin settings into another site.</p>
7
-    <p>To export your Site Reviews reviews and categories, please use the WordPress <a href="<?= admin_url('export.php'); ?>">Export</a> tool.</p>
7
+    <p>To export your Site Reviews reviews and categories, please use the WordPress <a href="<?= admin_url( 'export.php' ); ?>">Export</a> tool.</p>
8 8
     <form method="post">
9 9
         <input type="hidden" name="{{ id }}[_action]" value="export-settings">
10
-        <?php wp_nonce_field('export-settings'); ?>
11
-        <?php submit_button(__('Export Settings', 'site-reviews'), 'secondary'); ?>
10
+        <?php wp_nonce_field( 'export-settings' ); ?>
11
+        <?php submit_button( __( 'Export Settings', 'site-reviews' ), 'secondary' ); ?>
12 12
     </form>
13 13
 </div>
14 14
 <div class="glsr-card card">
15 15
     <h3>Import Settings</h3>
16 16
     <p>Import the Site Reviews settings from a <code>*.json</code> file. This file can be obtained by exporting the settings on another site using the export tool below.</p>
17
-    <p>To import your Site Reviews reviews and categories from another website, please use the WordPress <a href="<?= admin_url('import.php'); ?>">Import</a> tool.</p>
17
+    <p>To import your Site Reviews reviews and categories from another website, please use the WordPress <a href="<?= admin_url( 'import.php' ); ?>">Import</a> tool.</p>
18 18
     <form method="post" enctype="multipart/form-data">
19 19
         <input type="file" name="import-file">
20 20
         <input type="hidden" name="{{ id }}[_action]" value="import-settings">
21
-        <?php wp_nonce_field('import-settings'); ?>
22
-        <?php submit_button(__('Import Settings', 'site-reviews'), 'secondary'); ?>
21
+        <?php wp_nonce_field( 'import-settings' ); ?>
22
+        <?php submit_button( __( 'Import Settings', 'site-reviews' ), 'secondary' ); ?>
23 23
     </form>
24 24
 </div>
25 25
 <?php endif; ?>
@@ -30,10 +30,10 @@  discard block
 block discarded – undo
30 30
     <p>If you suspect that the rating counts are incorrect (perhaps you have edited reviews directly in your database), you can recalculate them here.</p>
31 31
     <form method="post">
32 32
         <input type="hidden" name="{{ id }}[_action]" value="count-reviews">
33
-        <?php wp_nonce_field('count-reviews'); ?>
33
+        <?php wp_nonce_field( 'count-reviews' ); ?>
34 34
         <p class="submit">
35 35
             <button type="submit" class="glsr-button button" name="count-reviews" id="count-reviews">
36
-                <span data-loading="<?= __('Recalculating Counts...', 'site-reviews'); ?>"><?= __('Recalculate Counts', 'site-reviews'); ?></span>
36
+                <span data-loading="<?= __( 'Recalculating Counts...', 'site-reviews' ); ?>"><?= __( 'Recalculate Counts', 'site-reviews' ); ?></span>
37 37
             </button>
38 38
         </p>
39 39
     </form>
Please login to merge, or discard this patch.
views/pages/settings/submissions.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
 <table class="form-table">
4 4
     <tbody>
Please login to merge, or discard this patch.
views/pages/settings/addons.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3
-<?php foreach ($settings as $key => $rows) : ?>
3
+<?php foreach( $settings as $key => $rows ) : ?>
4 4
 <div class="glsr-nav-view-section" id="<?= $key; ?>" style="margin-top:40px;">
5
-    <?php do_action('site-reviews/addon/settings/'.$key, $rows); ?>
5
+    <?php do_action( 'site-reviews/addon/settings/'.$key, $rows ); ?>
6 6
 </div>
7 7
 <?php endforeach; ?>
Please login to merge, or discard this patch.
templates/reviews-summary.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-summary-wrap">
4 4
     <div class="{{ class }}" id="{{ id }}">
Please login to merge, or discard this patch.
templates/review.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-review">
4 4
     {{ title }}
Please login to merge, or discard this patch.
templates/form/submit-button.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
 <button type="submit" class="glsr-button button btn">
4 4
     <span class="glsr-button-loading"></span>
Please login to merge, or discard this patch.
templates/form/field-errors.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
 <span class="glsr-field-error">
4 4
     {{ errors }}
Please login to merge, or discard this patch.