Completed
Branch dev (2df6d2)
by
unknown
37s
created
development/factory/term_meta/AdminPageFramework_TermMeta_Model.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@  discard block
 block discarded – undo
55 55
      * @since       3.8.0
56 56
      * @internal
57 57
      */
58
-    protected function _setOptionArray( $iTermID=null, $_deprecated=null ) {
58
+    protected function _setOptionArray( $iTermID = null, $_deprecated = null ) {
59 59
         $this->oForm->aSavedData = $this->oUtil->addAndApplyFilter(
60 60
             $this, // the caller factory object
61
-            'options_' . $this->oProp->sClassName,
61
+            'options_'.$this->oProp->sClassName,
62 62
             $this->_getSavedTermMetas( $iTermID, $this->oForm->aFieldsets )
63 63
             // @todo maybe pass the term id because the user will not know whihch form data is
64 64
         );
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      */
91 91
     public function _replyToValidateOptions( $iTermID ) {
92 92
 
93
-        if ( ! $this->_shouldProceedValidation() ) {
93
+        if ( !$this->_shouldProceedValidation() ) {
94 94
             return;
95 95
         }
96 96
 
@@ -98,19 +98,19 @@  discard block
 block discarded – undo
98 98
         $_aSubmittedFormData    = $this->oForm->getSubmittedData( $_POST );
99 99
         $_aSubmittedFormData    = $this->oUtil->addAndApplyFilters(
100 100
             $this,
101
-            'validation_' . $this->oProp->sClassName,
101
+            'validation_'.$this->oProp->sClassName,
102 102
             call_user_func_array(       // 1st param
103 103
                 array( $this, 'validate' ), // triggers __call()
104 104
                 array( $_aSubmittedFormData, $_aSavedFormData, $this )
105 105
             ), // 3.5.10+
106
-            $_aSavedFormData,   // 2nd param
106
+            $_aSavedFormData, // 2nd param
107 107
             $this   // 3rd param
108 108
         );
109 109
 
110 110
         // @todo Update term metas
111 111
         $this->oForm->updateMetaDataByType(
112
-            $iTermID,  // object id
113
-            $_aSubmittedFormData,  // user submit form data
112
+            $iTermID, // object id
113
+            $_aSubmittedFormData, // user submit form data
114 114
             $this->oForm->dropRepeatableElements( $_aSavedFormData ), // Drop repeatable section elements from the saved meta array.
115 115
             $this->oForm->sStructureType   // fields type
116 116
         );
Please login to merge, or discard this patch.
development/factory/term_meta/AdminPageFramework_TermMeta_View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
      * @return      string      the flat input name attribute
37 37
      */
38 38
     public function _replyToGetFlatInputName( /* $sFlatNameAttribute, $aField, $sKey, $sSectionIndex */ ) {
39
-        $_aParams   = func_get_args() + array( null, null, null );
39
+        $_aParams = func_get_args() + array( null, null, null );
40 40
         return $_aParams[ 0 ];
41 41
     }
42 42
 
Please login to merge, or discard this patch.
factory/term_meta/_model/AdminPageFramework_TermMeta_Model___TermMeta.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,6 +20,6 @@
 block discarded – undo
20 20
     /**
21 21
      * The callback function name or the callable object to retrieve meta data.
22 22
      */
23
-    protected $osCallable   = 'get_term_meta';
23
+    protected $osCallable = 'get_term_meta';
24 24
 
25 25
 }
Please login to merge, or discard this patch.
development/factory/term_meta/form/AdminPageFramework_Form_term_meta.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             '' // default value
54 54
         );
55 55
 
56
-        if ( ! $this->canUserView( $this->sCapability ) ) {
56
+        if ( !$this->canUserView( $this->sCapability ) ) {
57 57
             return '';
58 58
         }
59 59
 
@@ -81,10 +81,10 @@  discard block
 block discarded – undo
81 81
         );
82 82
 
83 83
         $_sAddNewTerm     = $bEditTerm ? '' : ' add-new-term';
84
-        $_sClassSelectors = 'admin-page-framework-form-table-term_meta' . $_sAddNewTerm;
84
+        $_sClassSelectors = 'admin-page-framework-form-table-term_meta'.$_sAddNewTerm;
85 85
         return '<tr class="admin-page-framework-form-table-outer-row-term_meta">'
86 86
             . '<td colspan=2>'
87
-                . '<table class="' . $_sClassSelectors . '">'
87
+                . '<table class="'.$_sClassSelectors.'">'
88 88
                     . '<tbody>'
89 89
                         . '<tr>'
90 90
                             . '<td>'
Please login to merge, or discard this patch.
_controller/AdminPageFramework_Link_network_admin_page.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * Sets up hooks and properties.
24 24
      */
25
-    public function __construct( $oProp, $oMsg=null ) {
25
+    public function __construct( $oProp, $oMsg = null ) {
26 26
 
27 27
         parent::__construct( $oProp, $oMsg );
28 28
 
@@ -30,13 +30,13 @@  discard block
 block discarded – undo
30 30
 
31 31
             // This filter for non-network-admin action links is added in the parent constructor.
32 32
             remove_filter(
33
-                'plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo['sPath'] ),
33
+                'plugin_action_links_'.plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
34 34
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' ),
35 35
                 20
36 36
             );
37 37
             // Add the action link filter for the multi-site network admin.
38 38
             add_filter(
39
-                'network_admin_plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo['sPath'] ),
39
+                'network_admin_plugin_action_links_'.plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
40 40
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' )
41 41
             );
42 42
 
Please login to merge, or discard this patch.
_model/AdminPageFramework_Property_network_admin_page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
51 51
                 $GLOBALS,
52 52
                 array( 'aAdminPageFramework', 'aPageClasses', $this->sClassName )
53 53
             ),
54
-            'options_' . $this->sClassName, // options_{instantiated class name}
54
+            'options_'.$this->sClassName, // options_{instantiated class name}
55 55
             $this->sOptionKey
56 56
                 ? get_site_option( $this->sOptionKey, array() )
57 57
                 : array()
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
      * @since       3.1.1       Made it return a boolean value.
70 70
      * @return      boolean     True if saved; otherwise, false.
71 71
      */
72
-    public function updateOption( $aOptions=null ) {
72
+    public function updateOption( $aOptions = null ) {
73 73
 
74 74
         if ( $this->_bDisableSavingOptions ) {
75 75
             return;
Please login to merge, or discard this patch.
_view/AdminPageFramework_PageLoadInfo_network_admin_page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public static function instantiate( $oProp, $oMsg ) {
43 43
 
44
-        if ( ! is_network_admin() ) {
44
+        if ( !is_network_admin() ) {
45 45
             return;
46 46
         }
47 47
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             return self::$_oInstance;
50 50
         }
51 51
 
52
-        self::$aClassNames[] = $oProp->sClassName;
52
+        self::$aClassNames[ ] = $oProp->sClassName;
53 53
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_network_admin_page( $oProp, $oMsg );
54 54
 
55 55
         return self::$_oInstance;
Please login to merge, or discard this patch.
factory/post_type/_controller/AdminPageFramework_Link_post_type.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
                 array( $this, '_replyToAddPostTypeQueryInEditPostLink' ),
33 33
                 10,
34 34
                 3
35
-           );
35
+            );
36 36
         }
37 37
     }
38 38
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -21,12 +21,12 @@  discard block
 block discarded – undo
21 21
      * Sets up hooks and properties.
22 22
      *
23 23
      */
24
-    public function __construct( $oProp, $oMsg=null ) {
24
+    public function __construct( $oProp, $oMsg = null ) {
25 25
 
26 26
         parent::__construct( $oProp, $oMsg );
27 27
 
28 28
         // For post type posts listing table page ( edit.php )
29
-        if ( isset( $_GET['post_type'] ) && $_GET['post_type'] == $this->oProp->sPostType ) {
29
+        if ( isset( $_GET[ 'post_type' ] ) && $_GET[ 'post_type' ] == $this->oProp->sPostType ) {
30 30
             add_action(
31 31
                 'get_edit_post_link',
32 32
                 array( $this, '_replyToAddPostTypeQueryInEditPostLink' ),
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
         );
60 60
 
61 61
         // If the user explicitly sets an empty string to the label key, do not insert a link.
62
-        if ( ! $_sLinkLabel ) {
62
+        if ( !$_sLinkLabel ) {
63 63
             return $aLinks;
64 64
         }
65 65
 
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
         array_unshift(
68 68
             $aLinks,
69 69
             // "<a href='" . esc_url( "edit.php?post_type={$this->oProp->sPostType}" ) . "'>"
70
-            '<a ' . $this->getAttributes(
70
+            '<a '.$this->getAttributes(
71 71
                 array(
72 72
                     'href'      => esc_url( "edit.php?post_type={$this->oProp->sPostType}" ),
73 73
                     // 3.5.7+ Added for acceptance testing
74 74
                     'class'     => 'apf-plugin-title-action-link apf-admin-page',
75 75
                 )
76
-            ) . '>'
76
+            ).'>'
77 77
                 . $_sLinkLabel
78 78
             . "</a>"
79 79
         );
@@ -89,9 +89,9 @@  discard block
 block discarded – undo
89 89
     public function _replyToSetFooterInfo() {
90 90
 
91 91
         if (
92
-            ! $this->isPostDefinitionPage( $this->oProp->sPostType )
93
-            && ! $this->isPostListingPage( $this->oProp->sPostType )
94
-            && ! $this->isCustomTaxonomyPage( $this->oProp->sPostType )
92
+            !$this->isPostDefinitionPage( $this->oProp->sPostType )
93
+            && !$this->isPostListingPage( $this->oProp->sPostType )
94
+            && !$this->isCustomTaxonomyPage( $this->oProp->sPostType )
95 95
         ) {
96 96
             return;
97 97
         }
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
      * @remark      e.g. `http://.../wp-admin/post.php?post=180&action=edit` -> `http://.../wp-admin/post.php?post=180&action=edit&post_type=[...]`
110 110
      * @callback    filter      get_edit_post_link
111 111
      */
112
-    public function _replyToAddPostTypeQueryInEditPostLink( $sURL, $iPostID=null, $sContext=null ) {
112
+    public function _replyToAddPostTypeQueryInEditPostLink( $sURL, $iPostID = null, $sContext = null ) {
113 113
         return add_query_arg(
114 114
             array(
115 115
                 'post'      => $iPostID,
Please login to merge, or discard this patch.
development/factory/post_type/AdminPageFramework_PostType_Router.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -43,14 +43,14 @@  discard block
 block discarded – undo
43 43
      */
44 44
     public function _replyToDetermineToLoadAdmin( /* $oScreen */ ) {
45 45
 
46
-        if ( ! $this->_isInThePage() ) {
46
+        if ( !$this->_isInThePage() ) {
47 47
             return;
48 48
         }
49 49
 
50 50
         $this->_load(
51 51
             array(
52 52
                 "load_{$this->oProp->sPostType}",
53
-                "load_{$this->oProp->sClassName}",  // 3.8.14+
53
+                "load_{$this->oProp->sClassName}", // 3.8.14+
54 54
             )
55 55
         );
56 56
 
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
     protected function _isInThePage() {
109 109
 
110 110
         // If it's not in one of the post type's pages
111
-        if ( ! $this->oProp->bIsAdmin ) {
111
+        if ( !$this->oProp->bIsAdmin ) {
112 112
             return false;
113 113
         }
114 114
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             return true;
118 118
         }
119 119
 
120
-        if ( ! in_array( $this->oProp->sPageNow, array( 'edit.php', 'edit-tags.php', 'term.php', 'post.php', 'post-new.php' ) ) ) {
120
+        if ( !in_array( $this->oProp->sPageNow, array( 'edit.php', 'edit-tags.php', 'term.php', 'post.php', 'post-new.php' ) ) ) {
121 121
             return false;
122 122
         }
123 123
 
@@ -138,10 +138,10 @@  discard block
 block discarded – undo
138 138
      */
139 139
     protected function _isValidAjaxReferrer() {
140 140
 
141
-        if ( ! $this->oProp->bIsAdminAjax ) {
141
+        if ( !$this->oProp->bIsAdminAjax ) {
142 142
             return false;
143 143
         }
144
-        if ( ! $this->oUtil->getElement( $this->oProp->aPostTypeArgs, 'public', true ) ) {
144
+        if ( !$this->oUtil->getElement( $this->oProp->aPostTypeArgs, 'public', true ) ) {
145 145
             return false;
146 146
         }
147 147
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
         parse_str( $_aReferrer[ 'query' ], $_aQuery );
150 150
 
151 151
         $_sBaseName = basename( $_aReferrer[ 'path' ] );
152
-        if ( ! in_array( $_sBaseName, array( 'edit.php', ) ) ) {
152
+        if ( !in_array( $_sBaseName, array( 'edit.php',) ) ) {
153 153
             return false;
154 154
         }
155 155
         return $this->oUtil->getElement( $_aQuery, array( 'post_type' ), '' ) === $this->oProp->sPostType;
Please login to merge, or discard this patch.