mirror of
https://github.com/10h30/wp-strava.git
synced 2026-06-05 15:10:01 +09:00
Renamed lib to includes
This commit is contained in:
@@ -66,7 +66,7 @@ class WPStrava_StaticMap {
|
||||
* }
|
||||
*/
|
||||
private static function decode_start_finish( $enc ) {
|
||||
require_once WPSTRAVA_PLUGIN_DIR . 'lib/Polyline.php';
|
||||
require_once WPSTRAVA_PLUGIN_DIR . 'includes/Polyline.php';
|
||||
$points = Polyline::decode( $enc );
|
||||
$points = Polyline::pair( $points );
|
||||
$start = $points[0];
|
||||
@@ -16,7 +16,7 @@ function wpstrava_autoload_classes( $class_name ) {
|
||||
}
|
||||
|
||||
// @TODO Add directory searching if they get created.
|
||||
$file = WPSTRAVA_PLUGIN_DIR . '/lib/' . implode( '/', $parts ) . '.php';
|
||||
$file = WPSTRAVA_PLUGIN_DIR . '/includes/' . implode( '/', $parts ) . '.php';
|
||||
if ( file_exists( $file ) ) {
|
||||
include_once $file;
|
||||
}
|
||||
@@ -8,7 +8,7 @@
|
||||
<exclude name="WordPress.Files.FileName.InvalidClassFileName" />
|
||||
</rule>
|
||||
|
||||
<file>./lib</file>
|
||||
<file>./includes</file>
|
||||
<file>./wp-strava.php</file>
|
||||
|
||||
<exclude-pattern>*/vendor/*</exclude-pattern>
|
||||
|
||||
+1
-1
@@ -16,7 +16,7 @@
|
||||
|
||||
<filter>
|
||||
<whitelist processUncoveredFilesFromWhitelist="true">
|
||||
<directory suffix=".php">lib</directory>
|
||||
<directory suffix=".php">includes</directory>
|
||||
</whitelist>
|
||||
</filter>
|
||||
</phpunit>
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@ if ( ! defined( 'WPSTRAVA_PLUGIN_DIR' ) ) {
|
||||
define( 'WPSTRAVA_PLUGIN_DIR', dirname( __FILE__ ) . '/../' );
|
||||
}
|
||||
|
||||
require_once dirname( __FILE__ ) . '/../lib/autoload.php';
|
||||
require_once dirname( __FILE__ ) . '/../includes/autoload.php';
|
||||
require_once dirname( __FILE__ ) . '/../vendor/autoload.php';
|
||||
|
||||
WP_Mock::bootstrap();
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ if ( ! defined( 'WPSTRAVA_DEBUG' ) ) {
|
||||
define( 'WPSTRAVA_DEBUG', false );
|
||||
}
|
||||
|
||||
require_once WPSTRAVA_PLUGIN_DIR . 'lib/autoload.php';
|
||||
require_once WPSTRAVA_PLUGIN_DIR . 'includes/autoload.php';
|
||||
|
||||
// Load the plugin and multilingual support.
|
||||
function wpstrava_load_plugin_textdomain() {
|
||||
|
||||
Reference in New Issue
Block a user