Skip to content

Commit

Permalink
Coding style fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
dshanske committed Dec 8, 2024
1 parent 182ed3e commit 86c02fd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 11 deletions.
12 changes: 6 additions & 6 deletions includes/micropub/class-synprovider-micropub.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,11 +117,11 @@ public function fetch_micropub( $url, $query, $headers = null ) {
* @return string Content string
*/
public function get_content( $post ) {
$content = syn_get_post_content( $post );
$length = strlen( $content );
$backlink = get_option( 'syndication_backlink' );
$shortlink = wp_get_shortlink( $post );
$link = '<a href="' . $shortlink . '">' . $shortlink . '</a>';
$content = syn_get_post_content( $post );
$length = strlen( $content );
$backlink = get_option( 'syndication_backlink' );
$shortlink = wp_get_shortlink( $post );
$link = '<a href="' . $shortlink . '">' . $shortlink . '</a>';
if ( true !== $backlink ) {
$content = syn_excerpt( $content, ( $this->content_length - 3 ) - strlen( $shortlink ) );
}
Expand Down Expand Up @@ -191,7 +191,7 @@ public function post_to_mf2( $post ) {
$mf2['properties']['content'] = array(
array(
'html' => $content,
)
),
);
}

Expand Down
5 changes: 0 additions & 5 deletions includes/simple-icons.php
Original file line number Diff line number Diff line change
Expand Up @@ -1211,7 +1211,6 @@ function simpleicons_syn_get_names() {
'hackster' => 'Hackster',
'handlebarsdotjs' => 'Handlebars.js',
'handshake' => 'Handshake',
'handshake' => 'Handshake',
'happycow' => 'HappyCow',
'harbor' => 'Harbor',
'harmonyos' => 'HarmonyOS',
Expand Down Expand Up @@ -1246,7 +1245,6 @@ function simpleicons_syn_get_names() {
'hiltonhotelsandresorts' => 'Hilton Hotels & Resorts',
'hitachi' => 'Hitachi',
'hive' => 'Hive',
'hive' => 'Hive',
'hivemq' => 'HiveMQ',
'homarr' => 'Homarr',
'homeassistant' => 'Home Assistant',
Expand Down Expand Up @@ -1751,7 +1749,6 @@ function simpleicons_syn_get_names() {
'moneygram' => 'MoneyGram',
'mongodb' => 'MongoDB',
'mongoose' => 'Mongoose',
'mongoose' => 'Mongoose',
'monica' => 'Monica',
'monkeytype' => 'Monkeytype',
'monogame' => 'MonoGame',
Expand Down Expand Up @@ -2563,7 +2560,6 @@ function simpleicons_syn_get_names() {
'spreadshirt' => 'Spreadshirt',
'spreaker' => 'Spreaker',
'spring' => 'Spring',
'spring' => 'Spring',
'springboot' => 'Spring Boot',
'springsecurity' => 'Spring Security',
'spyderide' => 'Spyder IDE',
Expand Down Expand Up @@ -2857,7 +2853,6 @@ function simpleicons_syn_get_names() {
'unicode' => 'Unicode',
'unilever' => 'Unilever',
'uniqlo' => 'Uniqlo',
'uniqlo' => 'Uniqlo',
'unitedairlines' => 'United Airlines',
'unitednations' => 'United Nations',
'unity' => 'Unity',
Expand Down

0 comments on commit 86c02fd

Please sign in to comment.