Skip to content
This repository has been archived by the owner on Dec 27, 2018. It is now read-only.

Commit

Permalink
Optimizing syntax via PHPCS
Browse files Browse the repository at this point in the history
  • Loading branch information
Rachel Carden authored and Rachel Carden committed Feb 15, 2017
1 parent c42ca3d commit ed79065
Show file tree
Hide file tree
Showing 7 changed files with 1,626 additions and 1,665 deletions.
274 changes: 137 additions & 137 deletions admin-settings.php

Large diffs are not rendered by default.

80 changes: 40 additions & 40 deletions admin.php

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions cpt-onomies.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,18 +24,18 @@
define( 'CPT_ONOMIES_OPTIONS_PAGE', 'custom-post-type-onomies' ); // @TODO remove when we create admin class
define( 'CPT_ONOMIES_POSTMETA_KEY', '_custom_post_type_onomies_relationship' ); // @TODO remove when we create admin class

// If we build them, they will load
// If we build them, they will load.
require_once plugin_dir_path( __FILE__ ) . 'cpt-onomy.php';
require_once plugin_dir_path( __FILE__ ) . 'manager.php';
require_once plugin_dir_path( __FILE__ ) . 'widgets.php';

// We only need these in the admin
// We only need these in the admin.
if ( is_admin() ) {
require_once plugin_dir_path( __FILE__ ) . 'admin.php';
require_once plugin_dir_path( __FILE__ ) . 'admin-settings.php';
}

// Extend all the things
// Extend all the things.
require_once plugin_dir_path( __FILE__ ) . 'extend/gravity-forms-custom-post-types.php';

/**
Expand Down Expand Up @@ -127,7 +127,7 @@ private function __wakeup() {}
*/
public function install() {

/**
/*
* Rewrite rules can be a pain in the ass
* so let's flush them out and start fresh.
*/
Expand All @@ -149,7 +149,7 @@ public function install() {
*/
public function upgrader_process_complete( $upgrader, $upgrade_info ) {

/**
/*
* For some reason I find myself having to flush my
* rewrite rules whenever I upgrade WordPress so just
* helping everyone out by taking care of this automatically
Expand All @@ -158,7 +158,7 @@ public function upgrader_process_complete( $upgrader, $upgrade_info ) {

}

/**
/*
* Internationalization FTW.
* Load our textdomain.
*
Expand All @@ -171,7 +171,7 @@ public function textdomain() {

}

/**
/*
* Returns the instance of our main CPT_onomies class.
*
* Will come in handy when we need to access the
Expand All @@ -186,4 +186,4 @@ function cpt_onomies() {
}

// Let's get this show on the road.
cpt_onomies();
cpt_onomies();
Loading

0 comments on commit ed79065

Please sign in to comment.