Completed
Branch dev (69a0d4)
by
unknown
33:44
created
network_admin_page/_model/AdminPageFramework_Property_NetworkAdmin.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
                 $GLOBALS, 
47 47
                 array( 'aAdminPageFramework', 'aPageClasses', $this->sClassName ) 
48 48
             ),
49
-            'options_' . $this->sClassName, // options_{instantiated class name}
49
+            'options_'.$this->sClassName, // options_{instantiated class name}
50 50
             $this->sOptionKey 
51 51
                 ? get_site_option( $this->sOptionKey, array() ) 
52 52
                 : array()
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @since       3.1.1       Made it return a boolean value.
65 65
      * @return      boolean     True if saved; otherwise, false.
66 66
      */
67
-    public function updateOption( $aOptions=null ) {
67
+    public function updateOption( $aOptions = null ) {
68 68
         
69 69
         if ( $this->_bDisableSavingOptions ) {
70 70
             return;
Please login to merge, or discard this patch.
_view/AdminPageFramework_PageLoadInfo_NetworkAdminPage.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -40,14 +40,14 @@
 block discarded – undo
40 40
      */
41 41
     public static function instantiate( $oProp, $oMsg ) {
42 42
 
43
-        if ( ! is_network_admin() ) { 
43
+        if ( !is_network_admin() ) { 
44 44
             return;
45 45
         }     
46 46
         
47 47
         if ( in_array( $oProp->sClassName, self::$aClassNames ) )
48 48
             return self::$_oInstance;
49 49
         
50
-        self::$aClassNames[] = $oProp->sClassName;
50
+        self::$aClassNames[ ] = $oProp->sClassName;
51 51
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_NetworkAdminPage( $oProp, $oMsg );
52 52
         
53 53
         return self::$_oInstance;
Please login to merge, or discard this patch.
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,12 +40,13 @@
 block discarded – undo
40 40
      */
41 41
     public static function instantiate( $oProp, $oMsg ) {
42 42
 
43
-        if ( ! is_network_admin() ) { 
43
+        if ( ! is_network_admin() ) {
44 44
             return;
45 45
         }     
46 46
         
47
-        if ( in_array( $oProp->sClassName, self::$aClassNames ) )
48
-            return self::$_oInstance;
47
+        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {
48
+                    return self::$_oInstance;
49
+        }
49 50
         
50 51
         self::$aClassNames[] = $oProp->sClassName;
51 52
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_NetworkAdminPage( $oProp, $oMsg );
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_MetaBox_Page.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * @since       3.0.0
25 25
      * @deprecated  DEVVER      Use     `AdminPageFramework_PageMetaBox` instead.
26 26
      */
27
-    function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
27
+    function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
28 28
     
29 29
         trigger_error( 
30 30
             sprintf(
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Admin Page Framework
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+     * Admin Page Framework
4
+     * 
5
+     * http://en.michaeluno.jp/admin-page-framework/
6
+     * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
+     * 
8
+     */
9 9
 
10 10
 /**
11 11
  * Provides methods for creating fields in the taxonomy page (edit-tags.php).
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_PageMetaBox.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -65,13 +65,13 @@
 block discarded – undo
65 65
      * @param       string          $sPriority      The priority, either `high`, `core`, `default` or `low`.
66 66
      * @param       string          $sCapability    The capability. See <a href="https://codex.wordpress.org/Roles_and_Capabilities" target="_blank">Roles and Capabilities</a>.
67 67
      */
68
-    function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
68
+    function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
69 69
         
70 70
         if ( empty( $asPageSlugs ) ) { 
71 71
             return; 
72 72
         }
73 73
         
74
-        if ( ! $this->_isInstantiatable() ) { 
74
+        if ( !$this->_isInstantiatable() ) { 
75 75
             return; 
76 76
         }
77 77
                 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,11 +67,11 @@
 block discarded – undo
67 67
      */
68 68
     function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
69 69
         
70
-        if ( empty( $asPageSlugs ) ) { 
70
+        if ( empty( $asPageSlugs ) ) {
71 71
             return; 
72 72
         }
73 73
         
74
-        if ( ! $this->_isInstantiatable() ) { 
74
+        if ( ! $this->_isInstantiatable() ) {
75 75
             return; 
76 76
         }
77 77
                 
Please login to merge, or discard this patch.
factory/page_meta_box/AdminPageFramework_PageMetaBox_Controller.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * 
23 23
      * @since 3.0.0
24 24
      */
25
-    public function enqueueStyles( $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
25
+    public function enqueueStyles( $aSRCs, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
26 26
         if ( method_exists( $this->oResource, '_enqueueStyles' ) ) {
27 27
             return $this->oResource->_enqueueStyles( $aSRCs, $sPageSlug, $sTabSlug, $aCustomArgs );
28 28
         }
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      * @param array (optional) The argument array for more advanced parameters.
39 39
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
40 40
      */    
41
-    public function enqueueStyle( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
41
+    public function enqueueStyle( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
42 42
         if ( method_exists( $this->oResource, '_enqueueStyle' ) ) {
43 43
             return $this->oResource->_enqueueStyle( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );     
44 44
         }
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * 
49 49
      * @since 2.1.5
50 50
      */
51
-    public function enqueueScripts( $aSRCs, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
51
+    public function enqueueScripts( $aSRCs, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {
52 52
         if ( method_exists( $this->oResource, '_enqueueScripts' ) ) {
53 53
             return $this->oResource->_enqueueScripts( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
54 54
         }
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @param             array (optional) The argument array for more advanced parameters.
65 65
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
66 66
      */
67
-    public function enqueueScript( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {    
67
+    public function enqueueScript( $sSRC, $sPageSlug = '', $sTabSlug = '', $aCustomArgs = array() ) {    
68 68
         if ( method_exists( $this->oResource, '_enqueueScript' ) ) {
69 69
             return $this->oResource->_enqueueScript( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
70 70
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
      * @param             array (optional) The argument array for more advanced parameters.
65 65
      * @return string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
66 66
      */
67
-    public function enqueueScript( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {    
67
+    public function enqueueScript( $sSRC, $sPageSlug='', $sTabSlug='', $aCustomArgs=array() ) {
68 68
         if ( method_exists( $this->oResource, '_enqueueScript' ) ) {
69 69
             return $this->oResource->_enqueueScript( $sSRC, $sPageSlug, $sTabSlug, $aCustomArgs );
70 70
         }
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_PageMetaBox_Router.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @since       3.0.4
26 26
      * @internal
27 27
      */
28
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {     
28
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {     
29 29
                         
30 30
         parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain );
31 31
 
@@ -58,11 +58,11 @@  discard block
 block discarded – undo
58 58
      */
59 59
     public function _isInThePage() {
60 60
         
61
-        if ( ! $this->oProp->bIsAdmin ) {
61
+        if ( !$this->oProp->bIsAdmin ) {
62 62
             return false;     
63 63
         }
64 64
                     
65
-        if ( ! isset( $_GET[ 'page' ] ) ) {
65
+        if ( !isset( $_GET[ 'page' ] ) ) {
66 66
             return false;
67 67
         }
68 68
         
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @since       3.0.4
26 26
      * @internal
27 27
      */
28
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {     
28
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
29 29
                         
30 30
         parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain );
31 31
 
Please login to merge, or discard this patch.
page_meta_box/_controller/AdminPageFramework_HelpPane_MetaBox_Page.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -26,19 +26,19 @@
 block discarded – undo
26 26
      */
27 27
     protected function _isInThePage() {
28 28
 
29
-        if ( ! $this->oProp->bIsAdmin ) {
29
+        if ( !$this->oProp->bIsAdmin ) {
30 30
             return false;
31 31
         }
32 32
 
33
-        if ( ! isset( $_GET[ 'page' ] ) ) {
33
+        if ( !isset( $_GET[ 'page' ] ) ) {
34 34
             return false;
35 35
         }
36 36
         
37
-        if ( ! $this->oProp->isPageAdded( $_GET[ 'page' ] ) ) {
37
+        if ( !$this->oProp->isPageAdded( $_GET[ 'page' ] ) ) {
38 38
             return false;
39 39
         }
40 40
         
41
-        if ( ! isset( $_GET[ 'tab' ] ) ) {
41
+        if ( !isset( $_GET[ 'tab' ] ) ) {
42 42
             return true;
43 43
         }
44 44
         
Please login to merge, or discard this patch.
factory/page_meta_box/form/AdminPageFramework_Form_page_meta_box.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     public function construct() {
31 31
         
32 32
         add_filter(
33
-            'options_' . $this->aArguments[ 'caller_id' ],
33
+            'options_'.$this->aArguments[ 'caller_id' ],
34 34
             array( $this, '_replyToSanitizeSavedFormData' ),
35 35
             5   //  high priority as it must be done eariler
36 36
         );
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         
55 55
         // Extract the meta box field form data (options) from the page form data (options).
56 56
         return $this->castArrayContents( 
57
-            $this->getDataStructureFromAddedFieldsets(),    // form data structure generate from fieldsets
57
+            $this->getDataStructureFromAddedFieldsets(), // form data structure generate from fieldsets
58 58
             $aSavedFormData
59 59
         );
60 60
         
Please login to merge, or discard this patch.
development/factory/post_type/AdminPageFramework_PostType.php 3 patches
Indentation   +69 added lines, -71 removed lines patch added patch discarded remove patch
@@ -18,77 +18,75 @@
 block discarded – undo
18 18
 abstract class AdminPageFramework_PostType extends AdminPageFramework_PostType_Controller {    
19 19
         
20 20
     /**
21
-    * The constructor of the class object.
22
-    * 
23
-    * Registers necessary hooks and sets up internal properties.
24
-    * 
25
-    * <h4>Example</h4>
26
-    * <code>new APF_PostType( 
27
-    *     'apf_posts',     // post type slug
28
-    *       array( 
29
-    *           'labels' => array(
30
-    *               'name'               => 'Demo',
31
-    *               'all_items'          => __( 'Sample Posts', 'admin-page-framework-demo' ),
32
-    *               'singular_name'      => 'Demo',
33
-    *               'add_new'            => __( 'Add New', 'admin-page-framework-demo' ),
34
-    *               'add_new_item'       => __( 'Add New APF Post', 'admin-page-framework-demo' ),
35
-    *               'edit'               => __( 'Edit', 'admin-page-framework-demo' ),
36
-    *               'edit_item'          => __( 'Edit APF Post', 'admin-page-framework-demo' ),
37
-    *               'new_item'           => __( 'New APF Post', 'admin-page-framework-demo' ),
38
-    *               'view'               => __( 'View', 'admin-page-framework-demo' ),
39
-    *               'view_item'          => __( 'View APF Post', 'admin-page-framework-demo' ),
40
-    *               'search_items'       => __( 'Search APF Post', 'admin-page-framework-demo' ),
41
-    *               'not_found'          => __( 'No APF Post found', 'admin-page-framework-demo' ),
42
-    *               'not_found_in_trash' => __( 'No APF Post found in Trash', 'admin-page-framework-demo' ),
43
-    *               'parent'             => __( 'Parent APF Post', 'admin-page-framework-demo' ),
44
-    *               
45
-    *               // (framework specific)
46
-    *               'plugin_listing_table_title_cell_link' => __( 'APF Posts', 'admin-page-framework-demo' ), // framework specific key. [3.0.6+]
47
-    *           ),
48
-    *           'public'            => true,
49
-    *           'menu_position'     => 110,
50
-    *           'supports'          => array( 'title' ), // e.g. array( 'title', 'editor', 'comments', 'thumbnail', 'excerpt' ),    
51
-    *           'taxonomies'        => array( '' ),
52
-    *           'has_archive'       => true,
53
-    *           'show_admin_column' => true, // [3.5+ core] this is for custom taxonomies to automatically add the column in the listing table.
54
-    *           'menu_icon'         => $this->oProp->bIsAdmin 
55
-    *               ? ( 
56
-    *                   version_compare( $GLOBALS['wp_version'], '3.8', '>=' ) 
57
-    *                       ? 'dashicons-wordpress' 
58
-    *                       : plugins_url( 'asset/image/wp-logo_16x16.png', APFDEMO_FILE ) 
59
-    *               )
60
-    *               : null, // do not call the function in the front-end.
61
-    *               
62
-    *           // (framework specific) this sets the screen icon for the post type for WordPress v3.7.1 or below.
63
-    *           // a file path can be passed instead of a url, plugins_url( 'asset/image/wp-logo_32x32.png', APFDEMO_FILE )
64
-    *           'screen_icon' => dirname( APFDEMO_FILE  ) . '/asset/image/wp-logo_32x32.png', 
65
-    *           
66
-    *           // [3.5.10+] (framework specific) default: true
67
-    *           'show_submenu_add_new'  => true, 
68
-    *           
69
-    *       )     
70
-    * );</code>
71
-    * 
72
-    * <h4>Framework Specific Post Type Arguments</h4>
73
-    * In addition to the post type argument structure defined by the WordPress core, there are arguments defined by the framework.
74
-    * 
75
-    * - screen_icon - For WordPress 3.7.x or below, set an icon url or path for the 32x32 screen icon displayed in the post listing page.
76
-    * - show_submenu_add_new [3.5.10+]
77
-
78
-    * <h4>Framework Specific Post Type Label Arguments</h4>
79
-    * - plugin_listing_table_title_cell_link' - If the caller script is a plugin, this determines the label of the action link embedded in the plugin listing page (plugins.php).
80
-    * To disable the action link, set an empty string `''`. 
81
-
82
-    * 
83
-    * @since        2.0.0
84
-    * @since        2.1.6       Added the $sTextDomain parameter.
85
-    * @see          http://codex.wordpress.org/Function_Reference/register_post_type#Arguments
86
-    * @param        string      The post type slug.
87
-    * @param        array       The <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Arguments">argument array</a> passed to register_post_type().
88
-    * @param        string      The path of the caller script. This is used to retrieve the script information to insert it into the footer. If not set, the framework tries to detect it.
89
-    * @param        string      The text domain of the caller script.
90
-    * @return       void
91
-    */
21
+     * The constructor of the class object.
22
+     * 
23
+     * Registers necessary hooks and sets up internal properties.
24
+     * 
25
+     * <h4>Example</h4>
26
+     * <code>new APF_PostType( 
27
+     *     'apf_posts',     // post type slug
28
+     *       array( 
29
+     *           'labels' => array(
30
+     *               'name'               => 'Demo',
31
+     *               'all_items'          => __( 'Sample Posts', 'admin-page-framework-demo' ),
32
+     *               'singular_name'      => 'Demo',
33
+     *               'add_new'            => __( 'Add New', 'admin-page-framework-demo' ),
34
+     *               'add_new_item'       => __( 'Add New APF Post', 'admin-page-framework-demo' ),
35
+     *               'edit'               => __( 'Edit', 'admin-page-framework-demo' ),
36
+     *               'edit_item'          => __( 'Edit APF Post', 'admin-page-framework-demo' ),
37
+     *               'new_item'           => __( 'New APF Post', 'admin-page-framework-demo' ),
38
+     *               'view'               => __( 'View', 'admin-page-framework-demo' ),
39
+     *               'view_item'          => __( 'View APF Post', 'admin-page-framework-demo' ),
40
+     *               'search_items'       => __( 'Search APF Post', 'admin-page-framework-demo' ),
41
+     *               'not_found'          => __( 'No APF Post found', 'admin-page-framework-demo' ),
42
+     *               'not_found_in_trash' => __( 'No APF Post found in Trash', 'admin-page-framework-demo' ),
43
+     *               'parent'             => __( 'Parent APF Post', 'admin-page-framework-demo' ),
44
+     *               
45
+     *               // (framework specific)
46
+     *               'plugin_listing_table_title_cell_link' => __( 'APF Posts', 'admin-page-framework-demo' ), // framework specific key. [3.0.6+]
47
+     *           ),
48
+     *           'public'            => true,
49
+     *           'menu_position'     => 110,
50
+     *           'supports'          => array( 'title' ), // e.g. array( 'title', 'editor', 'comments', 'thumbnail', 'excerpt' ),    
51
+     *           'taxonomies'        => array( '' ),
52
+     *           'has_archive'       => true,
53
+     *           'show_admin_column' => true, // [3.5+ core] this is for custom taxonomies to automatically add the column in the listing table.
54
+     *           'menu_icon'         => $this->oProp->bIsAdmin 
55
+     *               ? ( 
56
+     *                   version_compare( $GLOBALS['wp_version'], '3.8', '>=' ) 
57
+     *                       ? 'dashicons-wordpress' 
58
+     *                       : plugins_url( 'asset/image/wp-logo_16x16.png', APFDEMO_FILE ) 
59
+     *               )
60
+     *               : null, // do not call the function in the front-end.
61
+     *               
62
+     *           // (framework specific) this sets the screen icon for the post type for WordPress v3.7.1 or below.
63
+     *           // a file path can be passed instead of a url, plugins_url( 'asset/image/wp-logo_32x32.png', APFDEMO_FILE )
64
+     *           'screen_icon' => dirname( APFDEMO_FILE  ) . '/asset/image/wp-logo_32x32.png', 
65
+     *           
66
+     *           // [3.5.10+] (framework specific) default: true
67
+     *           'show_submenu_add_new'  => true, 
68
+     *           
69
+     *       )     
70
+     * );</code>
71
+     * 
72
+     * <h4>Framework Specific Post Type Arguments</h4>
73
+     * In addition to the post type argument structure defined by the WordPress core, there are arguments defined by the framework.
74
+     * 
75
+     * - screen_icon - For WordPress 3.7.x or below, set an icon url or path for the 32x32 screen icon displayed in the post listing page.
76
+     * - show_submenu_add_new [3.5.10+]
77
+     * <h4>Framework Specific Post Type Label Arguments</h4>
78
+     * - plugin_listing_table_title_cell_link' - If the caller script is a plugin, this determines the label of the action link embedded in the plugin listing page (plugins.php).
79
+     * To disable the action link, set an empty string `''`. 
80
+     * 
81
+     * @since        2.0.0
82
+     * @since        2.1.6       Added the $sTextDomain parameter.
83
+     * @see          http://codex.wordpress.org/Function_Reference/register_post_type#Arguments
84
+     * @param        string      The post type slug.
85
+     * @param        array       The <a href="http://codex.wordpress.org/Function_Reference/register_post_type#Arguments">argument array</a> passed to register_post_type().
86
+     * @param        string      The path of the caller script. This is used to retrieve the script information to insert it into the footer. If not set, the framework tries to detect it.
87
+     * @param        string      The text domain of the caller script.
88
+     * @return       void
89
+     */
92 90
     public function __construct( $sPostType, $aArguments=array(), $sCallerPath=null, $sTextDomain='admin-page-framework' ) {
93 91
         
94 92
         if ( empty( $sPostType ) ) { 
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
     * @param        string      The text domain of the caller script.
90 90
     * @return       void
91 91
     */
92
-    public function __construct( $sPostType, $aArguments=array(), $sCallerPath=null, $sTextDomain='admin-page-framework' ) {
92
+    public function __construct( $sPostType, $aArguments = array(), $sCallerPath = null, $sTextDomain = 'admin-page-framework' ) {
93 93
         
94 94
         if ( empty( $sPostType ) ) { 
95 95
             return; 
@@ -99,11 +99,11 @@  discard block
 block discarded – undo
99 99
             $this, 
100 100
             $this->_getCallerScriptPath( $sCallerPath ),
101 101
             get_class( $this ), // class name
102
-            'publish_posts',    // capability
103
-            $sTextDomain,       // text domain
102
+            'publish_posts', // capability
103
+            $sTextDomain, // text domain
104 104
             'post_type'         // structure type
105 105
         );
106
-        $this->oProp->sPostType     = AdminPageFramework_WPUtility::sanitizeSlug( $sPostType );
106
+        $this->oProp->sPostType = AdminPageFramework_WPUtility::sanitizeSlug( $sPostType );
107 107
         
108 108
         // Post type argument array structure
109 109
         // @see http://codex.wordpress.org/Function_Reference/register_post_type#Arguments
@@ -132,14 +132,14 @@  discard block
 block discarded – undo
132 132
                 return $sCallerPath;
133 133
             }
134 134
             
135
-            if ( ! is_admin() ) {
135
+            if ( !is_admin() ) {
136 136
                 return null;
137 137
             }
138 138
             $_sPageNow = AdminPageFramework_Utility::getElement( $GLOBALS, 'pagenow' );
139 139
             if ( 
140 140
                 in_array( 
141 141
                     $_sPageNow, 
142
-                    array( 'edit.php', 'post.php', 'post-new.php', 'plugins.php', 'tags.php', 'edit-tags.php', )
142
+                    array( 'edit.php', 'post.php', 'post-new.php', 'plugins.php', 'tags.php', 'edit-tags.php',)
143 143
                 )
144 144
             ) {
145 145
                 return AdminPageFramework_Utility::getCallerScriptPath( __FILE__ );
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
  * @package         AdminPageFramework
16 16
  * @subpackage      PostType
17 17
  */
18
-abstract class AdminPageFramework_PostType extends AdminPageFramework_PostType_Controller {    
18
+abstract class AdminPageFramework_PostType extends AdminPageFramework_PostType_Controller {
19 19
         
20 20
     /**
21 21
     * The constructor of the class object.
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
     */
92 92
     public function __construct( $sPostType, $aArguments=array(), $sCallerPath=null, $sTextDomain='admin-page-framework' ) {
93 93
         
94
-        if ( empty( $sPostType ) ) { 
94
+        if ( empty( $sPostType ) ) {
95 95
             return; 
96 96
         }
97 97
 
Please login to merge, or discard this patch.