Skip to content

Commit 9a8a06c

Browse files
committed
add vendor Prefix "Pluginkollektiv\" to namespace
1 parent 7d6a6d1 commit 9a8a06c

23 files changed

+68
-86
lines changed

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
},
9191
"autoload": {
9292
"psr-4": {
93-
"Statify\\": "inc/"
93+
"Pluginkollektiv\\Statify\\": "inc/"
9494
}
9595
},
9696
"config": {

inc/Api.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 1.9
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
use WP_REST_Response;
1414
use WP_REST_Server;

inc/Backend.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 1.4.0
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
// Quit if accessed outside WP context.
1414
defined( 'ABSPATH' ) || exit;
@@ -17,7 +17,7 @@
1717
* Statify Backend
1818
*
1919
* @since 1.4.0
20-
* @since 2.0.0 renamed to Statify\Backend
20+
* @since 2.0.0 renamed to Pluginkollektiv\Statify\Backend
2121
*/
2222
class Backend {
2323

inc/Cron.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 1.4.0
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
// Quit if accessed outside WP context.
1414
defined( 'ABSPATH' ) || exit;
@@ -17,7 +17,7 @@
1717
* Statify Cron
1818
*
1919
* @since 1.4.0
20-
* @since 2.0.0 renamed to Statify\Cron
20+
* @since 2.0.0 renamed to Pluginkollektiv\Statify\Cron
2121
*/
2222
class Cron extends Statify {
2323

inc/Dashboard.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 1.1
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
// Quit if accessed outside WP context.
1414
defined( 'ABSPATH' ) || exit;
@@ -17,7 +17,7 @@
1717
* Statify Dashboard
1818
*
1919
* @since 1.1
20-
* @since 2.0.0 renamed to Statify\Dashboard
20+
* @since 2.0.0 renamed to Pluginkollektiv\Statify\Dashboard
2121
*/
2222
class Dashboard extends Statify {
2323

inc/Deactivate.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 1.4.0
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
// Quit if accessed outside WP context.
1414
defined( 'ABSPATH' ) || exit;
@@ -17,7 +17,7 @@
1717
* Statify Deactivate
1818
*
1919
* @since 1.4.0
20-
* @since 2.0.0 renamed to Statify\Deactivate
20+
* @since 2.0.0 renamed to Pluginkollektiv\Statify\Deactivate
2121
*/
2222
class Deactivate {
2323

inc/Frontend.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 1.4.0
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
// Quit if accessed outside WP context.
1414
defined( 'ABSPATH' ) || exit;
@@ -17,7 +17,7 @@
1717
* Statify Frontend
1818
*
1919
* @since 1.4.0
20-
* @since 2.0.0 renamed to Statify\Frontend
20+
* @since 2.0.0 renamed to Pluginkollektiv\Statify\Frontend
2121
*/
2222
class Frontend extends Statify {
2323

inc/Install.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 0.1
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
// Quit if accessed outside WP context.
1414
defined( 'ABSPATH' ) || exit;
@@ -17,7 +17,7 @@
1717
* Statify Install
1818
*
1919
* @since 0.1
20-
* @since 2.0.0 renamed to Statify\Install
20+
* @since 2.0.0 renamed to Pluginkollektiv\Statify\Install
2121
*/
2222
class Install {
2323

inc/Settings.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 1.7
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
// Quit if accessed directly..
1414
defined( 'ABSPATH' ) || exit;
@@ -17,7 +17,7 @@
1717
* Statify Settings
1818
*
1919
* @since 1.7
20-
* @since 2.0.0 renamed to Statify\Settings
20+
* @since 2.0.0 renamed to Pluginkollektiv\Statify\Settings
2121
*/
2222
class Settings {
2323

inc/Statify.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* @since 0.1.0
99
*/
1010

11-
namespace Statify;
11+
namespace Pluginkollektiv\Statify;
1212

1313
// Quit if accessed outside WP context.
1414
defined( 'ABSPATH' ) || exit;
@@ -17,7 +17,7 @@
1717
* Statify.
1818
*
1919
* @since 0.1.0
20-
* @since 2.0.0 moved to Statify namespace
20+
* @since 2.0.0 moved to Pluginkollektiv\Statify namespace
2121
*/
2222
class Statify {
2323
const TRACKING_METHOD_DEFAULT = 0;
@@ -65,31 +65,31 @@ public static function init() {
6565
);
6666

6767
// Cron.
68-
add_action( 'statify_cleanup', array( 'Statify\Cron', 'cleanup_data' ) );
68+
add_action( 'statify_cleanup', array( 'Pluginkollektiv\\Statify\Cron', 'cleanup_data' ) );
6969

7070
if ( defined( 'XMLRPC_REQUEST' ) && XMLRPC_REQUEST ) { // XMLRPC.
71-
add_filter( 'xmlrpc_methods', array( 'Statify\XMLRPC', 'xmlrpc_methods' ) );
71+
add_filter( 'xmlrpc_methods', array( 'Pluginkollektiv\\Statify\Xmlrpc', 'xmlrpc_methods' ) );
7272
} elseif ( is_admin() ) { // Backend.
73-
add_action( 'wp_initialize_site', array( 'Statify\Install', 'init_site' ) );
74-
add_action( 'wp_uninitialize_site', array( 'Statify\Uninstall', 'init_site' ) );
75-
add_action( 'wp_dashboard_setup', array( 'Statify\Dashboard', 'init' ) );
76-
add_filter( 'plugin_row_meta', array( 'Statify\Backend', 'add_meta_link' ), 10, 2 );
77-
add_filter( 'plugin_action_links_' . STATIFY_BASE, array( 'Statify\Backend', 'add_action_link' ) );
78-
add_action( 'admin_init', array( 'Statify\Settings', 'register_settings' ) );
79-
add_action( 'admin_menu', array( 'Statify\Settings', 'add_admin_menu' ) );
80-
add_action( 'update_option_statify', array( 'Statify\Settings', 'action_update_options' ), 10, 2 );
73+
add_action( 'wp_initialize_site', array( 'Pluginkollektiv\\Statify\Install', 'init_site' ) );
74+
add_action( 'wp_uninitialize_site', array( 'Pluginkollektiv\\Statify\Uninstall', 'init_site' ) );
75+
add_action( 'wp_dashboard_setup', array( 'Pluginkollektiv\\Statify\Dashboard', 'init' ) );
76+
add_filter( 'plugin_row_meta', array( 'Pluginkollektiv\\Statify\Backend', 'add_meta_link' ), 10, 2 );
77+
add_filter( 'plugin_action_links_' . STATIFY_BASE, array( 'Pluginkollektiv\\Statify\Backend', 'add_action_link' ) );
78+
add_action( 'admin_init', array( 'Pluginkollektiv\\Statify\Settings', 'register_settings' ) );
79+
add_action( 'admin_menu', array( 'Pluginkollektiv\\Statify\Settings', 'add_admin_menu' ) );
80+
add_action( 'update_option_statify', array( 'Pluginkollektiv\\Statify\Settings', 'action_update_options' ), 10, 2 );
8181
} else { // Frontend.
82-
add_action( 'template_redirect', array( 'Statify\Frontend', 'track_visit' ) );
83-
add_filter( 'query_vars', array( 'Statify\Frontend', 'query_vars' ) );
84-
add_action( 'wp_footer', array( 'Statify\Frontend', 'wp_footer' ) );
82+
add_action( 'template_redirect', array( 'Pluginkollektiv\\Statify\Frontend', 'track_visit' ) );
83+
add_filter( 'query_vars', array( 'Pluginkollektiv\\Statify\Frontend', 'query_vars' ) );
84+
add_action( 'wp_footer', array( 'Pluginkollektiv\\Statify\Frontend', 'wp_footer' ) );
8585
if ( function_exists( 'amp_is_request' ) || function_exists( 'is_amp_endpoint' ) ) {
8686
// Automattic AMP plugin present.
87-
add_filter( 'amp_analytics_entries', array( 'Statify\Frontend', 'amp_analytics_entries' ) );
88-
add_filter( 'amp_post_template_analytics', array( 'Statify\Frontend', 'amp_post_template_analytics' ) );
87+
add_filter( 'amp_analytics_entries', array( 'Pluginkollektiv\\Statify\Frontend', 'amp_analytics_entries' ) );
88+
add_filter( 'amp_post_template_analytics', array( 'Pluginkollektiv\\Statify\Frontend', 'amp_post_template_analytics' ) );
8989
}
9090
// Initialize REST API.
9191
if ( self::is_javascript_tracking_enabled() ) {
92-
add_filter( 'rest_api_init', array( 'Statify\Api', 'init' ) );
92+
add_filter( 'rest_api_init', array( 'Pluginkollektiv\\Statify\Api', 'init' ) );
9393
}
9494
}
9595
}

0 commit comments

Comments
 (0)