Passed
Push — master ( 6b8ca8...3384db )
by Paul
04:57
created
site-reviews.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,16 +18,16 @@
 block discarded – undo
18 18
 
19 19
 defined( 'WPINC' ) || die;
20 20
 
21
-if( !class_exists( 'GL_Plugin_Check_v1' )) {
21
+if( !class_exists( 'GL_Plugin_Check_v1' ) ) {
22 22
 	require_once __DIR__.'/activate.php';
23 23
 }
24
-if( GL_Plugin_Check_v1::shouldDeactivate( __FILE__, array( 'wordpress' => '4.7.0' )))return;
24
+if( GL_Plugin_Check_v1::shouldDeactivate( __FILE__, array( 'wordpress' => '4.7.0' ) ) )return;
25 25
 
26 26
 require_once __DIR__.'/autoload.php';
27 27
 require_once __DIR__.'/helpers.php';
28 28
 
29 29
 $app = new GeminiLabs\SiteReviews\Application;
30 30
 $app->make( 'Provider' )->register( $app );
31
-register_activation_hook( __FILE__, array( $app, 'activate' ));
32
-register_deactivation_hook( __FILE__, array( $app, 'deactivate' ));
31
+register_activation_hook( __FILE__, array( $app, 'activate' ) );
32
+register_deactivation_hook( __FILE__, array( $app, 'deactivate' ) );
33 33
 $app->init();
Please login to merge, or discard this patch.
helpers.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -6,7 +6,7 @@  discard block
 block discarded – undo
6 6
  */
7 7
 function glsr( $alias = null ) {
8 8
 	$app = \GeminiLabs\SiteReviews\Application::load();
9
-	return empty( $alias )
9
+	return empty($alias)
10 10
 		? $app
11 11
 		: $app->make( $alias );
12 12
 }
@@ -16,10 +16,10 @@  discard block
 block discarded – undo
16 16
  * @return \WP_Screen|object
17 17
  */
18 18
 function glsr_current_screen() {
19
-	if( function_exists( 'get_current_screen' )) {
19
+	if( function_exists( 'get_current_screen' ) ) {
20 20
 		$screen = get_current_screen();
21 21
 	}
22
-	return empty( $screen )
22
+	return empty($screen)
23 23
 		? (object)array_fill_keys( ['base', 'id', 'post_type'], null )
24 24
 		: $screen;
25 25
 }
@@ -54,11 +54,11 @@  discard block
 block discarded – undo
54 54
  */
55 55
 function glsr_log() {
56 56
 	$args = func_get_args();
57
-	$context = isset( $args[1] )
57
+	$context = isset($args[1])
58 58
 		? $args[1]
59 59
 		: [];
60 60
 	$logger = glsr( 'Modules\Logger' );
61
-	return empty( $args )
61
+	return empty($args)
62 62
 		? $logger
63 63
 		: $logger->log( 'debug', $args[0], $context );
64 64
 }
Please login to merge, or discard this patch.
views/email/index.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php defined( 'WPINC' ) || die;
2 2
 
3
-include trailingslashit(__DIR__).'header.php';
4
-include trailingslashit(__DIR__).'body.php';
5
-include trailingslashit(__DIR__).'footer.php';
3
+include trailingslashit( __DIR__ ).'header.php';
4
+include trailingslashit( __DIR__ ).'body.php';
5
+include trailingslashit( __DIR__ ).'footer.php';
Please login to merge, or discard this patch.
views/email/header.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -4,6 +4,6 @@
 block discarded – undo
4 4
 <html>
5 5
 <head>
6 6
     <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
7
-    <title><?= wp_specialchars_decode( (string) get_option( 'blogname', '' ), ENT_QUOTES ); ?></title>
7
+    <title><?= wp_specialchars_decode( (string)get_option( 'blogname', '' ), ENT_QUOTES ); ?></title>
8 8
 </head>
9 9
 <body>
Please login to merge, or discard this patch.
views/pages/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -7,17 +7,17 @@
 block discarded – undo
7 7
 <?php
8 8
 
9 9
 	$html->renderNotices();
10
-	$html->renderPartial( 'tabs' , [
10
+	$html->renderPartial( 'tabs', [
11 11
 		'page' => $page,
12 12
 		'tab' => $currentTab,
13 13
 		'tabs' => $tabs,
14
-	]);
15
-	$html->renderPartial( 'sections' , [
14
+	] );
15
+	$html->renderPartial( 'sections', [
16 16
 		'page' => $page,
17 17
 		'section' => $currentSection,
18 18
 		'tab' => $currentTab,
19 19
 		'tabs' => $tabs,
20
-	]);
20
+	] );
21 21
 	$file = $currentSection ? $currentTab.'/'.$currentSection : $currentTab;
22 22
 	$file = trailingslashit( __DIR__ ).$page.'/'.$file.'.php';
23 23
 	$file = apply_filters( 'site-reviews/addon/views/file', $file, $view, $data );
Please login to merge, or discard this patch.
views/pages/addons/addons.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -8,12 +8,12 @@
 block discarded – undo
8 8
 	'link' => 'https://niftyplugins.com/addons/site-reviews-tripadvisor/',
9 9
 	'name' => 'tripadvisor',
10 10
 	'title' => 'Tripadvisor Reviews',
11
-]);
11
+] );
12 12
 glsr( 'Modules\Html' )->renderTemplate( 'addons/addon', [
13 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',
17
-]);
17
+] );
18 18
 ?>
19 19
 </div>
Please login to merge, or discard this patch.
views/translations/plural.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@
 block discarded – undo
3 3
 		<p>{{ data.s1 }}</p>
4 4
 		<p>{{ data.p1 }}</p>
5 5
 		<p class="row-actions">
6
-			<span class="delete"><a href="#{{ data.index }}" class="delete" aria-label="<?= __( 'Delete translation string', 'site-reviews' );?>"><?= __( 'Delete', 'site-reviews' ); ?></a></span>
6
+			<span class="delete"><a href="#{{ data.index }}" class="delete" aria-label="<?= __( 'Delete translation string', 'site-reviews' ); ?>"><?= __( 'Delete', 'site-reviews' ); ?></a></span>
7 7
 		</p>
8 8
 		<button type="button" class="toggle-row">
9 9
 			<span class="screen-reader-text"><?= __( 'Show custom translation', 'site-reviews' ); ?></span>
Please login to merge, or discard this patch.
views/translations/single.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -2,7 +2,7 @@
 block discarded – undo
2 2
 	<td class="glsr-string-td1 column-primary">
3 3
 		<p>{{ data.s1 }}</p>
4 4
 		<p class="row-actions">
5
-			<span class="delete"><a href="#{{ data.index }}" class="delete" aria-label="<?= __( 'Delete translation string', 'site-reviews' );?>"><?= __( 'Delete', 'site-reviews' ); ?></a></span>
5
+			<span class="delete"><a href="#{{ data.index }}" class="delete" aria-label="<?= __( 'Delete translation string', 'site-reviews' ); ?>"><?= __( 'Delete', 'site-reviews' ); ?></a></span>
6 6
 		</p>
7 7
 		<button type="button" class="toggle-row">
8 8
 			<span class="screen-reader-text"><?= __( 'Show custom translation', 'site-reviews' ); ?></span>
Please login to merge, or discard this patch.
views/editor/metabox-categories.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
 		</ul>
21 21
 	</div>
22 22
 
23
-	<?php if( current_user_can( $taxonomy->cap->edit_terms )) : ?>
23
+	<?php if( current_user_can( $taxonomy->cap->edit_terms ) ) : ?>
24 24
 	<div id="<?= $tax_name; ?>-adder" class="wp-hidden-children">
25 25
 		<a id="<?= $tax_name; ?>-add-toggle" href="#<?= $tax_name; ?>-add" class="hide-if-no-js taxonomy-add-new">
26 26
 			<?= sprintf( '+ %s', $taxonomy->labels->add_new_item ); ?>
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 			<label class="screen-reader-text" for="new<?= $tax_name; ?>"><?= $taxonomy->labels->add_new_item; ?></label>
30 30
 			<input type="text" name="new<?= $tax_name; ?>" id="new<?= $tax_name; ?>" class="form-required form-input-tip" value="<?= esc_attr( $taxonomy->labels->new_item_name ); ?>" aria-required="true"/>
31 31
 			<input type="button" id="<?= $tax_name; ?>-add-submit" data-wp-lists="add:<?= $tax_name; ?>checklist:<?= $tax_name; ?>-add" class="button category-add-submit" value="<?= esc_attr( $taxonomy->labels->add_new_item ); ?>" />
32
-			<?php wp_nonce_field( 'add-' . $tax_name, '_ajax_nonce-add-' . $tax_name, false ); ?>
32
+			<?php wp_nonce_field( 'add-'.$tax_name, '_ajax_nonce-add-'.$tax_name, false ); ?>
33 33
 			<span id="<?= $tax_name; ?>-ajax-response"></span>
34 34
 		</div>
35 35
 	</div>
Please login to merge, or discard this patch.