Skip to content
This repository was archived by the owner on Mar 14, 2021. It is now read-only.

Commit f3c7c20

Browse files
committed
fixed phpcs errors
1 parent 70743e5 commit f3c7c20

File tree

6 files changed

+28
-28
lines changed

6 files changed

+28
-28
lines changed

adblock-notify-files.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,9 @@ function an_save_setting_random_selectors( $force = false ) {
102102
}
103103
$an_option = unserialize( an_get_option( 'adblocker_notify_options' ) );
104104
$anScripts = unserialize( an_get_option( 'adblocker_notify_selectors' ) );
105-
$selectors_option = isset ( $an_option['an_option_selectors'] ) ? $an_option['an_option_selectors'] : true;
105+
$selectors_option = isset( $an_option['an_option_selectors'] ) ? $an_option['an_option_selectors'] : true;
106106
if ( true == $selectors_option || $force ) {
107-
if( ! isset( $an_option['an_option_flush'] ) ) {
107+
if ( ! isset( $an_option['an_option_flush'] ) ) {
108108
$an_option['an_option_flush'] = false;
109109
}
110110
// Define new temp path
@@ -183,7 +183,7 @@ function an_save_setting_random_selectors( $force = false ) {
183183
);
184184
an_update_option( 'adblocker_notify_selectors', serialize( $newFiles ) );
185185
// remove option flush
186-
if( ! isset( $an_option['an_option_flush'] ) ) {
186+
if ( ! isset( $an_option['an_option_flush'] ) ) {
187187
$an_option['an_option_flush'] = false;
188188
}
189189
$an_option['an_option_flush'] = false;

adblock-notify-functions.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -779,17 +779,17 @@ function an_check_views() {
779779
}
780780
$limit = an_get_limit();
781781
$current = an_get_current_views();
782-
if ( $current === 0 ){
783-
an_update_option('adblock_notify_month_reset',time() );
782+
if ( $current === 0 ) {
783+
an_update_option( 'adblock_notify_month_reset',time() );
784784

785-
}else{
786-
$reset_time = an_get_option('adblock_notify_month_reset');
787-
if( ( time() - $reset_time ) > ( 31 * 24 * 3600 ) ){
785+
} else {
786+
$reset_time = an_get_option( 'adblock_notify_month_reset' );
787+
if ( ( time() - $reset_time ) > ( 31 * 24 * 3600 ) ) {
788788
$current = 0;
789-
an_update_option('adblock_notify_global_counter', '0');
790-
an_update_option('adblock_notify_month_reset',time() );
791-
}
792-
}
789+
an_update_option( 'adblock_notify_global_counter', '0' );
790+
an_update_option( 'adblock_notify_month_reset',time() );
791+
}
792+
}
793793
if ( $limit <= $current ) {
794794
return true;
795795
}

adblock-notify-widget.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -229,10 +229,10 @@ function an_get_counters() {
229229
onclick="javascript:if(!confirm(\'' . __( 'Are you sure you want to delete permanently your datas?', 'an-translate' ) . '\' )) return false;"
230230
>' . __( 'Reset Stats', 'an-translate' ) . '</a>
231231
</li>';
232-
if( an_is_new() ){
233-
$output .= ' <li style="color:#23282d;" class="an-global-stats" ><strong>'.( an_get_limit() - an_get_current_views()).' AdBlock views left this month. </strong></li>';
232+
if ( an_is_new() ) {
233+
$output .= ' <li style="color:#23282d;" class="an-global-stats" ><strong>' . ( an_get_limit() - an_get_current_views()) . ' AdBlock views left this month. </strong></li>';
234234
}
235-
$output .='
235+
$output .= '
236236
</ul>';
237237
$output .= '<script type="text/javascript">';
238238
$output .= '/* <![CDATA[ */';

adblock-notify.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ function an_add_favicon() {
336336
* Create random selectors and files on plugin activation
337337
***************************************************************/
338338
function adblocker_notify_activate() {
339-
an_flag_user();
339+
an_flag_user();
340340
add_action( 'tf_create_options', 'an_create_options' );
341341
an_save_setting_random_selectors();
342342
}

css/an-admin-style.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ div.error.warning {
675675
#an-testimonial {
676676
width: 74%;
677677
margin: auto;
678-
margin-top:5px;
678+
margin-top: 5px;
679679
padding: 3%;
680680
border-top: 5px solid #252b37;
681681
border-bottom: 1px solid #d4d4d4;

languages/an-translate.pot

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22
# This file is distributed under the same license as the Adblock Notify Lite package.
33
msgid ""
44
msgstr ""
5-
"Project-Id-Version: Adblock Notify Lite 2.0.12\n"
5+
"Project-Id-Version: Adblock Notify Lite 2.1.0\n"
66
"Report-Msgid-Bugs-To: "
77
"https://github.com/Codeinwp/adblock-notify-by-bweb/issues\n"
8-
"POT-Creation-Date: 2017-01-12 16:12:47+00:00\n"
8+
"POT-Creation-Date: 2017-01-12 17:24:19+00:00\n"
99
"MIME-Version: 1.0\n"
1010
"Content-Type: text/plain; charset=utf-8\n"
1111
"Content-Transfer-Encoding: 8bit\n"
@@ -25,45 +25,45 @@ msgstr ""
2525
"X-Poedit-Bookmarks: \n"
2626
"X-Textdomain-Support: yes\n"
2727

28-
#: adblock-notify-files.php:208
28+
#: adblock-notify-files.php:215
2929
msgid ""
3030
"WARNING: There was an error creating Adblock Notify CSS and JS files. "
3131
"Upload directory is not writable. Please CHMOD \"wp-content/uploads\" to "
3232
"0664 and verify your server settings"
3333
msgstr ""
3434

35-
#: adblock-notify-files.php:212
35+
#: adblock-notify-files.php:219
3636
msgid ""
3737
"Don't worry, we thought about it. Adblock Notify will print the scripts "
3838
"directly in your DOM, but for performance purpose it is recommended to "
3939
"change your uploads directory CHMOD."
4040
msgstr ""
4141

42-
#: adblock-notify-functions.php:435
42+
#: adblock-notify-functions.php:436
4343
msgid "Show your love"
4444
msgstr ""
4545

46-
#: adblock-notify-functions.php:438
46+
#: adblock-notify-functions.php:439
4747
msgid "Leave A Review"
4848
msgstr ""
4949

50-
#: adblock-notify-functions.php:444
50+
#: adblock-notify-functions.php:445
5151
msgid "Buy now"
5252
msgstr ""
5353

54-
#: adblock-notify-functions.php:447
54+
#: adblock-notify-functions.php:448
5555
msgid "Multi-Site Support"
5656
msgstr ""
5757

58-
#: adblock-notify-functions.php:646
58+
#: adblock-notify-functions.php:647
5959
msgid " Subscribe for 20% coupon"
6060
msgstr ""
6161

62-
#: adblock-notify-functions.php:657
62+
#: adblock-notify-functions.php:658
6363
msgid "You can now check your email for the discount code."
6464
msgstr ""
6565

66-
#: adblock-notify-functions.php:667
66+
#: adblock-notify-functions.php:668
6767
msgid ""
6868
"Get a sweet 20% discount coupon right on your email for upgrading to the "
6969
"FULL version. "

0 commit comments

Comments
 (0)