Passed
Push — feature/rebusify ( 0fe5b2...103190 )
by Paul
08:37 queued 03:55
created
views/pages/addons/index.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -1,32 +1,32 @@
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3 3
 <div class="wrap">
4
-    <h1 class="page-title"><?= esc_html(get_admin_page_title()); ?></h1>
4
+    <h1 class="page-title"><?= esc_html( get_admin_page_title() ); ?></h1>
5 5
     <div class="notice notice-warning is-dismissible">
6
-        <p><?= __('Now that Site Reviews v3.0 (a major overhaul of the plugin) has been released, the only thing delaying the add-ons is the distribution platform which is currently being built. Expect to see them in the coming months!', 'site-reviews'); ?></p>
7
-        <p><?= __('Thank you for your patience.', 'site-reviews'); ?></p>
6
+        <p><?= __( 'Now that Site Reviews v3.0 (a major overhaul of the plugin) has been released, the only thing delaying the add-ons is the distribution platform which is currently being built. Expect to see them in the coming months!', 'site-reviews' ); ?></p>
7
+        <p><?= __( 'Thank you for your patience.', 'site-reviews' ); ?></p>
8 8
     </div>
9
-    <p><?= __('Add-ons extend the functionality of Site Reviews.', 'site-reviews'); ?></p>
9
+    <p><?= __( 'Add-ons extend the functionality of Site Reviews.', 'site-reviews' ); ?></p>
10 10
     <div class="glsr-addons wp-clearfix">
11 11
     <?php
12
-        $template->render('partials/addons/addon', [
12
+        $template->render( 'partials/addons/addon', [
13 13
             'context' => [
14
-                'description' => __('Allow your visitors to submit multiple images with their reviews.', 'site-reviews'),
14
+                'description' => __( 'Allow your visitors to submit multiple images with their reviews.', 'site-reviews' ),
15 15
                 'link' => 'https://niftyplugins.com/addons/site-reviews-images/',
16 16
                 'slug' => 'images',
17 17
                 'title' => 'Images',
18 18
             ],
19 19
             'plugin' => 'site-reviews-images/site-reviews-images.php',
20
-        ]);
21
-        $template->render('partials/addons/addon', [
20
+        ] );
21
+        $template->render( 'partials/addons/addon', [
22 22
             'context' => [
23
-                'description' => __('Sync your Tripadvisor reviews to your website and manage them with Site Reviews.', 'site-reviews'),
23
+                'description' => __( 'Sync your Tripadvisor reviews to your website and manage them with Site Reviews.', 'site-reviews' ),
24 24
                 'link' => 'https://niftyplugins.com/addons/site-reviews-tripadvisor/',
25 25
                 'slug' => 'tripadvisor',
26 26
                 'title' => 'Tripadvisor Reviews',
27 27
             ],
28 28
             'plugin' => 'site-reviews-tripadvisor/site-reviews-tripadvisor.php',
29
-        ]);
29
+        ] );
30 30
     ?>
31 31
     </div>
32 32
 </div>
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/index.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3 3
 <div class="wrap">
4
-    <h1 class="page-title"><?= esc_html(get_admin_page_title()); ?></h1>
4
+    <h1 class="page-title"><?= esc_html( get_admin_page_title() ); ?></h1>
5 5
     <?= $notices; ?>
6 6
     <h2 class="glsr-nav-tab-wrapper nav-tab-wrapper">
7
-        <?php foreach ($tabs as $id => $title) : ?>
7
+        <?php foreach( $tabs as $id => $title ) : ?>
8 8
         <a class="glsr-nav-tab nav-tab" href="#<?= $id; ?>"><?= $title; ?></a>
9 9
         <?php endforeach; ?>
10 10
     </h2>
11 11
     <form class="glsr-form" action="options.php" enctype="multipart/form-data" method="post">
12
-        <?php foreach ($tabs as $id => $title) : ?>
12
+        <?php foreach( $tabs as $id => $title ) : ?>
13 13
         <div class="glsr-nav-view ui-tabs-hide" id="<?= $id; ?>">
14
-            <?= $settings->buildFields($id); ?>
14
+            <?= $settings->buildFields( $id ); ?>
15 15
         </div>
16 16
         <?php endforeach; ?>
17 17
         <input type="hidden" name="_active_tab">
18
-        <?php settings_fields(glsr()->id.'-settings'); ?>
18
+        <?php settings_fields( glsr()->id.'-settings' ); ?>
19 19
         <?php submit_button(); ?>
20 20
     </form>
21 21
 </div>
Please login to merge, or discard this patch.
views/pages/settings/translations.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@  discard block
 block discarded – undo
1
-<?php defined('WPINC') || die; ?>
1
+<?php defined( 'WPINC' ) || die; ?>
2 2
 
3 3
 <div class="glsr-strings-form">
4 4
     <div class="glsr-search-box" id="glsr-search-translations">
5
-        <span class="screen-reader-text"><?= __('Search for translatable text', 'site-reviews'); ?></span>
5
+        <span class="screen-reader-text"><?= __( 'Search for translatable text', 'site-reviews' ); ?></span>
6 6
         <div class="glsr-spinner">
7 7
             <span class="spinner"></span>
8 8
         </div>
9
-        <input type="search" class="glsr-search-input" autocomplete="off" placeholder="<?= __('Search here for text to translate...', 'site-reviews'); ?>">
10
-        <?php wp_nonce_field('search-translations', '_search_nonce', false); ?>
9
+        <input type="search" class="glsr-search-input" autocomplete="off" placeholder="<?= __( 'Search here for text to translate...', 'site-reviews' ); ?>">
10
+        <?php wp_nonce_field( 'search-translations', '_search_nonce', false ); ?>
11 11
         <div class="glsr-search-results" data-prefix="{{ database_key }}"></div>
12 12
     </div>
13 13
     <table class="glsr-strings-table wp-list-table widefat {{ class }}">
14 14
         <thead>
15 15
             <tr>
16
-                <th scope="col" class="manage-column column-primary"><?= __('Original Text', 'site-reviews'); ?></th>
17
-                <th scope="col" class="manage-column"><?= __('Custom Translation', 'site-reviews'); ?></th>
16
+                <th scope="col" class="manage-column column-primary"><?= __( 'Original Text', 'site-reviews' ); ?></th>
17
+                <th scope="col" class="manage-column"><?= __( 'Custom Translation', 'site-reviews' ); ?></th>
18 18
             </tr>
19 19
         </thead>
20 20
         <tbody>{{ translations }}</tbody>
@@ -23,8 +23,8 @@  discard block
 block discarded – undo
23 23
 </div>
24 24
 
25 25
 <script type="text/html" id="tmpl-glsr-string-plural">
26
-<?php include glsr()->path('views/partials/translations/plural.php'); ?>
26
+<?php include glsr()->path( 'views/partials/translations/plural.php' ); ?>
27 27
 </script>
28 28
 <script type="text/html" id="tmpl-glsr-string-single">
29
-<?php include glsr()->path('views/partials/translations/single.php'); ?>
29
+<?php include glsr()->path( 'views/partials/translations/single.php' ); ?>
30 30
 </script>
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.