Skip to content

Commit 8caf7b1

Browse files
authored
Merge pull request #249 from indieweb/version-bump
version bump
2 parents 1057cf0 + feef0c5 commit 8caf7b1

33 files changed

+44
-89
lines changed

.github/workflows/phpunit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name: Unit Testing
2-
on:
2+
on:
33
push:
44
pull_request:
55
jobs:
@@ -15,7 +15,7 @@ jobs:
1515
options: --health-cmd="mysqladmin ping" --health-interval=10s --health-timeout=10s --health-retries=10
1616
strategy:
1717
matrix:
18-
php-versions: ['5.6', '7.2', '7.3', '7.4', '8.0']
18+
php-versions: ['7.0', '7.2', '7.3', '7.4', '8.0']
1919
steps:
2020
- name: Checkout
2121
uses: actions/checkout@v3

docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,12 @@ services:
1818
links:
1919
- db
2020
ports:
21-
- "8099:80"
21+
- "8077:80"
2222
volumes:
2323
- .:/var/www/html/wp-content/plugins/indieauth
2424
restart: always
2525
environment:
2626
WORDPRESS_DB_HOST: db:3306
27+
WORDPRESS_DB_USER: wordpress
2728
WORDPRESS_DB_PASSWORD: wordpress
2829
WORDPRESS_DEBUG: 1

includes/class-external-token-page.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,6 @@ public function options_form() {
6060
</div>
6161
<?php
6262
}
63-
64-
6563
} // End Class
6664

6765
new External_Token_Page();

includes/class-external-token-table.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,6 @@ public function prepare_items() {
4848
foreach ( $tokens as $value ) {
4949
$this->items[] = $value;
5050
}
51-
5251
}
5352

5453
public function column_default( $item, $column_name ) {

includes/class-indieauth-admin.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,4 +269,3 @@ public function add_help_tab() {
269269
);
270270
}
271271
}
272-

includes/class-indieauth-authorization-endpoint.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -226,7 +226,6 @@ public function get( $request ) {
226226
}
227227

228228
return new WP_OAuth_Response( 'unsupported_response_type', __( 'Unsupported Response Type', 'indieauth' ), 400 );
229-
230229
}
231230

232231
/*
@@ -474,4 +473,3 @@ public function confirmed() {
474473
wp_redirect( $url ); // phpcs:ignore
475474
}
476475
}
477-

includes/class-indieauth-authorize.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ public function load() {
2727
add_filter( 'indieauth_response', array( $this, 'get_indieauth_response' ), 9 );
2828
add_filter( 'wp_rest_server_class', array( $this, 'wp_rest_server_class' ) );
2929
add_filter( 'rest_request_after_callbacks', array( $this, 'return_oauth_error' ), 10, 3 );
30-
3130
}
3231

3332

@@ -189,7 +188,6 @@ public function determine_current_user( $user_id ) {
189188
)
190189
);
191190
return $user_id;
192-
193191
}
194192

195193
/**

includes/class-indieauth-client-discovery.php

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,10 @@ private function determine_icon() {
105105
}
106106
if ( is_array( $icons ) && ! wp_is_numeric_array( $icons ) && isset( $icons['url'] ) ) {
107107
return $icons['url'];
108+
} elseif ( isset( $icons[0]['url'] ) ) {
109+
return $icons[0]['url'];
108110
} else {
109-
// Return the first icon
110-
if ( isset( $icons[0]['url'] ) ) {
111-
return $icons[0]['url'];
112-
} else {
113-
return '';
114-
}
111+
return '';
115112
}
116113
}
117114

@@ -177,5 +174,4 @@ public static function extract_client_data_from_html( $contents, $url ) {
177174

178175
return $return;
179176
}
180-
181177
}

includes/class-indieauth-client-taxonomy.php

Lines changed: 6 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@ public static function init() {
1717
self::register();
1818

1919
add_filter( 'terms_clauses', array( __CLASS__, 'terms_clauses' ), 11, 3 );
20-
2120
}
2221

2322
public static function terms_clauses( $clauses, $taxonomies, $args ) {
@@ -105,7 +104,6 @@ public static function update_client_icon_from_discovery( $url ) {
105104
}
106105

107106
return self::sideload_icon( $client->get_icon(), $url );
108-
109107
}
110108

111109

@@ -155,9 +153,9 @@ public static function add_client( $url, $name = null, $icon = null ) {
155153
);
156154
}
157155

158-
/**
159-
* Get Client
160-
*/
156+
/**
157+
* Get Client
158+
*/
161159
public static function get_client( $url = null ) {
162160
// If url is null retrieve all clients.
163161
if ( is_null( $url ) ) {
@@ -209,9 +207,9 @@ public static function get_client( $url = null ) {
209207
);
210208
}
211209

212-
/**
213-
* Delete a client
214-
*/
210+
/**
211+
* Delete a client
212+
*/
215213
public static function delete_client( $url ) {
216214
$client = self::get_client( $url );
217215
if ( ! $client ) {
@@ -318,9 +316,4 @@ public static function sideload_icon( $url, $client_id ) {
318316

319317
return self::upload_directory( $filehandle, true );
320318
}
321-
322-
323-
324319
} // End Class
325-
326-

includes/class-indieauth-debug.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,4 +119,3 @@ public function test( $request ) {
119119
return indieauth_get_response();
120120
}
121121
}
122-

0 commit comments

Comments
 (0)