From 1556977c40538bb50ed91a51d3807b2146c4f380 Mon Sep 17 00:00:00 2001 From: Justin Foell Date: Fri, 23 Mar 2018 11:21:14 -0500 Subject: [PATCH] Fixed formatting and bumped version --- lib/WPStrava.php | 2 +- lib/WPStrava/LatestActivities.php | 4 ++-- phpcs.xml | 4 ++++ readme.txt | 2 +- wp-strava.php | 25 +++++++++++++------------ 5 files changed, 21 insertions(+), 16 deletions(-) diff --git a/lib/WPStrava.php b/lib/WPStrava.php index b5a94d7..754301a 100644 --- a/lib/WPStrava.php +++ b/lib/WPStrava.php @@ -14,7 +14,7 @@ private function __construct() { if ( is_admin() ) { $this->settings->hook(); } else { - add_action( 'init', array( $this, 'register_shortcodes') ); + add_action( 'init', array( $this, 'register_shortcodes' ) ); add_action( 'wp_enqueue_scripts', array( $this, 'register_scripts' ) ); } diff --git a/lib/WPStrava/LatestActivities.php b/lib/WPStrava/LatestActivities.php index ded9150..2d42ee3 100644 --- a/lib/WPStrava/LatestActivities.php +++ b/lib/WPStrava/LatestActivities.php @@ -29,13 +29,13 @@ public static function get_activities_html( $args ) { $response .= "
"; if ( ! empty( $activity->start_date_local ) ) { - $unixtime = strtotime( $activity->start_date_local ); + $unixtime = strtotime( $activity->start_date_local ); // Translators: Shows something like "On <[went 10 miles] [during 2 hours] [climbing 100 feet]>." $response .= sprintf( __( 'On %1$s %2$s', 'wp-strava' ), date_i18n( get_option( 'date_format' ), $unixtime ), date_i18n( get_option( 'time_format' ), $unixtime ) ); } if ( is_numeric( $args['strava_club_id'] ) ) { - $name = $activity->athlete->firstname . ' ' . $activity->athlete->lastname; + $name = $activity->athlete->firstname . ' ' . $activity->athlete->lastname; $response .= empty( $activity->athlete->id ) ? " {$name}" : " " . $name . ''; diff --git a/phpcs.xml b/phpcs.xml index 5fef36e..47a5817 100644 --- a/phpcs.xml +++ b/phpcs.xml @@ -7,4 +7,8 @@ + + */tests/* + */vendor/* + \ No newline at end of file diff --git a/readme.txt b/readme.txt index 5350b21..15a6c8f 100755 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Contributors: cmanon, jrfoell, lancewillett, dlintott Tags: strava, activity, bicycle, cycling, biking, running, run, swimming, swim, gps, shortcode, widget, plugin Requires at least: 4.6 Tested up to: 4.9 -Stable tag: 1.4.3 +Stable tag: 1.5.0 Requires PHP: 5.2 License: GPLv2 or later diff --git a/wp-strava.php b/wp-strava.php index 94d4cc4..f33ff0d 100755 --- a/wp-strava.php +++ b/wp-strava.php @@ -3,27 +3,28 @@ * Plugin Name: WP Strava * Plugin URI: https://wordpress.org/plugins/wp-strava/ * Description: Show your strava.com activity on your WordPress site. Some Icons are Copyright © Yusuke Kamiyamane. All rights reserved. Licensed under a Creative Commons Attribution 3.0 license. - * Version: 1.5.0-rc2 + * Version: 1.5.0 * Author: Carlos Santa Cruz, Justin Foell, Lance Willett, Daniel Lintott * License: GPL2 * Text Domain: wp-strava * Domain Path: /lang */ -/* Copyright 2017 Carlos Santa Cruz (email : cmanon at gmail dot com) +/* +Copyright 2018 Carlos Santa Cruz (email : cmanon at gmail dot com) - This program is free software; you can redistribute it and/or modify - it under the terms of the GNU General Public License, version 2, as - published by the Free Software Foundation. +This program is free software; you can redistribute it and/or modify +it under the terms of the GNU General Public License, version 2, as +published by the Free Software Foundation. - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU General Public License for more details. +This program is distributed in the hope that it will be useful, +but WITHOUT ANY WARRANTY; without even the implied warranty of +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +GNU General Public License for more details. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA +You should have received a copy of the GNU General Public License +along with this program; if not, write to the Free Software +Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */