Completed
Branch master (6d8b39)
by
unknown
08:49
created
factory/admin_page/_model/format/AdminPageFramework_Format_SubMenuPage.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
         'page_slug'                 => null, // (required)
33 33
         'type'                      => 'page', // this is used to compare with the link type.
34 34
         'title'                     => null, 
35
-        'page_title'                => null,    // (optional) 3.3.0+ When the page title is different from the above 'title' argument, set this.
36
-        'menu_title'                => null,    // (optional) 3.3.0+ When the menu title is different from the above 'title' argument, set this.
35
+        'page_title'                => null, // (optional) 3.3.0+ When the page title is different from the above 'title' argument, set this.
36
+        'menu_title'                => null, // (optional) 3.3.0+ When the menu title is different from the above 'title' argument, set this.
37 37
         'screen_icon'               => null, // this will become either href_icon_32x32 or screen_icon_id
38 38
         'capability'                => null, 
39 39
         'order'                     => null,
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
             
114 114
             $aSubMenuPage = $aSubMenuPage 
115 115
                 + array(
116
-                    'show_page_title'           => $this->oFactory->oProp->bShowPageTitle,       // boolean
116
+                    'show_page_title'           => $this->oFactory->oProp->bShowPageTitle, // boolean
117 117
                     'show_page_heading_tabs'    => $this->oFactory->oProp->bShowPageHeadingTabs, // boolean
118
-                    'show_in_page_tabs'         => $this->oFactory->oProp->bShowInPageTabs,      // boolean
119
-                    'in_page_tab_tag'           => $this->oFactory->oProp->sInPageTabTag,        // string
120
-                    'page_heading_tab_tag'      => $this->oFactory->oProp->sPageHeadingTabTag,   // string
121
-                    'capability'                => $this->oFactory->oProp->sCapability,  // 3.6.0+
118
+                    'show_in_page_tabs'         => $this->oFactory->oProp->bShowInPageTabs, // boolean
119
+                    'in_page_tab_tag'           => $this->oFactory->oProp->sInPageTabTag, // string
120
+                    'page_heading_tab_tag'      => $this->oFactory->oProp->sPageHeadingTabTag, // string
121
+                    'capability'                => $this->oFactory->oProp->sCapability, // 3.6.0+
122 122
                 )       
123 123
                 + self::$aStructure;
124 124
 
Please login to merge, or discard this patch.
factory/admin_page/_view/AdminPageFramework_View__PageMataBoxRenderer.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,6 @@
 block discarded – undo
20 20
            
21 21
     /**
22 22
      * Renders a registered meta box.
23
- 
24 23
      * @return      void
25 24
      * @param       string $sContext `side`, `normal`, or `advanced`.
26 25
      * @since       3.0.0
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
     public function render( $sContext ) {
30 30
                
31 31
         // If nothing is registered do not render even the container.
32
-        if ( ! $this->doesMetaBoxExist() ) {
32
+        if ( !$this->doesMetaBoxExist() ) {
33 33
             return;
34 34
         }
35 35
         
Please login to merge, or discard this patch.
admin_page/_view/AdminPageFramework_View__PageRenderer__InPageTabs.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
             $_sTag              = $this->_getInPageTabTag( $sTag, $_aPage );
74 74
              
75 75
             // If the in-page tabs' visibility is set to false, returns the title.
76
-            if ( ! $_aPage[ 'show_in_page_tabs' ] ) {
76
+            if ( !$_aPage[ 'show_in_page_tabs' ] ) {
77 77
                 return isset( $aInPageTabs[ $_sCurrentTabSlug ][ 'title' ] ) 
78 78
                     ? "<{$_sTag}>" 
79 79
                             . $aInPageTabs[ $_sCurrentTabSlug ][ 'title' ]
@@ -100,9 +100,9 @@  discard block
 block discarded – undo
100 100
             private function _getInPageTabNavigationBar( array $aTabs, $sActiveTab, $sCurrentPageSlug, $sTag ) {
101 101
 
102 102
                 $_oTabBar = new AdminPageFramework_TabNavigationBar(
103
-                    $aTabs,      // tabs
103
+                    $aTabs, // tabs
104 104
                     $sActiveTab, // active tab slug
105
-                    $sTag,       // container tag
105
+                    $sTag, // container tag
106 106
                     array(       // container attributes
107 107
                         'class' => 'in-page-tab',
108 108
                     ),
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                  * @since           3.5.10
131 131
                  * @since           3.6.3       Moved from `AdminPageFramework_Page_View`.
132 132
                  */
133
-                public function _replyToFormatNavigationTabItem_InPageTab( array $aTab, array $aStructure, array $aTabs, array $aArguments=array() ) {
133
+                public function _replyToFormatNavigationTabItem_InPageTab( array $aTab, array $aStructure, array $aTabs, array $aArguments = array() ) {
134 134
                     $_oFormatter = new AdminPageFramework_Format_NavigationTab_InPageTab(
135 135
                         $aTab,
136 136
                         $aStructure,
Please login to merge, or discard this patch.
development/factory/admin_page/_view/AdminPageFramework_View__Resource.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -67,9 +67,9 @@  discard block
 block discarded – undo
67 67
                  */
68 68
                 public function _appendInlineAssets( $sInline, &$aContainer ) {
69 69
                     $_aInlines = array_unique( $aContainer );
70
-                    $sInline   = PHP_EOL . $sInline;
71
-                    foreach( $_aInlines as $_iIndex => $_sInline ) {
72
-                        $sInline .= $_sInline . PHP_EOL;
70
+                    $sInline   = PHP_EOL.$sInline;
71
+                    foreach ( $_aInlines as $_iIndex => $_sInline ) {
72
+                        $sInline .= $_sInline.PHP_EOL;
73 73
                         unset( $_aInlines[ $_iIndex ] );
74 74
                     }
75 75
                     $aContainer = $_aInlines; // update the container array.
@@ -83,23 +83,23 @@  discard block
 block discarded – undo
83 83
         private function _parseAssets( $oFactory ) {
84 84
             
85 85
             // page
86
-            $_aPageStyles      = $this->getElementAsArray(
86
+            $_aPageStyles = $this->getElementAsArray(
87 87
                 $oFactory->oProp->aPages,
88 88
                 array( $this->sCurrentPageSlug, 'style' )
89 89
             );               
90 90
             $this->_enqueuePageAssets( $_aPageStyles, 'style' );
91 91
             
92
-            $_aPageScripts     = $this->getElementAsArray(
92
+            $_aPageScripts = $this->getElementAsArray(
93 93
                 $oFactory->oProp->aPages,
94 94
                 array( $this->sCurrentPageSlug, 'script' )
95 95
             );
96 96
             $this->_enqueuePageAssets( $_aPageScripts, 'script' );
97 97
             
98 98
             // In-page tabs 
99
-            if ( ! $this->sCurrentTabSlug ) {
99
+            if ( !$this->sCurrentTabSlug ) {
100 100
                 return;
101 101
             }        
102
-            $_aInPageTabStyles  = $this->getElementAsArray(
102
+            $_aInPageTabStyles = $this->getElementAsArray(
103 103
                 $oFactory->oProp->aInPageTabs,
104 104
                 array( $this->sCurrentPageSlug, $this->sCurrentTabSlug, 'style' )
105 105
             );              
@@ -116,10 +116,10 @@  discard block
 block discarded – undo
116 116
              * @since       3.6.3
117 117
              * @return      void
118 118
              */    
119
-            private function _enqueuePageAssets( array $aPageAssets, $sType='style' ) {
120
-                $_sMathodName = "_enqueueAsset_" . $sType;
121
-                foreach( $aPageAssets as $_asPageAsset ) {
122
-                    $this->{$_sMathodName}( $_asPageAsset);
119
+            private function _enqueuePageAssets( array $aPageAssets, $sType = 'style' ) {
120
+                $_sMathodName = "_enqueueAsset_".$sType;
121
+                foreach ( $aPageAssets as $_asPageAsset ) {
122
+                    $this->{$_sMathodName}( $_asPageAsset );
123 123
                 }
124 124
             }
125 125
 
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                     }
145 145
                     
146 146
                     // Insert the CSS rule in the head tag.
147
-                    $this->aCSSRules[] = $_sSRC;
147
+                    $this->aCSSRules[ ] = $_sSRC;
148 148
                     
149 149
                 }                    
150 150
      
@@ -169,7 +169,7 @@  discard block
 block discarded – undo
169 169
                     }                
170 170
                     
171 171
                     // Insert the scripts in the head tag.                
172
-                    $this->aScripts[] = $_sSRC;
172
+                    $this->aScripts[ ] = $_sSRC;
173 173
                     
174 174
                 }        
175 175
                 
Please login to merge, or discard this patch.
development/factory/meta_box/AdminPageFramework_MetaBox_Controller.php 3 patches
Indentation   +26 added lines, -26 removed lines patch added patch discarded remove patch
@@ -18,32 +18,32 @@
 block discarded – undo
18 18
 abstract class AdminPageFramework_MetaBox_Controller extends AdminPageFramework_MetaBox_View {
19 19
        
20 20
     /**
21
-    * The method for all necessary set-ups.
22
-    * 
23
-    * <h4>Example</h4>
24
-    * <code> public function setUp() {     
25
-    *     $this->addSettingFields(
26
-    *         array(
27
-    *             'field_id'    => 'sample_metabox_text_field',
28
-    *             'title'       => 'Text Input',
29
-    *             'description' => 'The description for the field.',
30
-    *             'type'        => 'text',
31
-    *         ),
32
-    *         array(
33
-    *             'field_id'    => 'sample_metabox_textarea_field',
34
-    *             'title'       => 'Textarea',
35
-    *             'description' => 'The description for the field.',
36
-    *             'type'        => 'textarea',
37
-    *             'default'     => 'This is a default text value.',
38
-    *         )
39
-    *     );     
40
-    * }</code>
41
-    * 
42
-    * @abstract
43
-    * @since        2.0.0
44
-    * @remark       The user should override this method.
45
-    * @return       void
46
-    */  
21
+     * The method for all necessary set-ups.
22
+     * 
23
+     * <h4>Example</h4>
24
+     * <code> public function setUp() {     
25
+     *     $this->addSettingFields(
26
+     *         array(
27
+     *             'field_id'    => 'sample_metabox_text_field',
28
+     *             'title'       => 'Text Input',
29
+     *             'description' => 'The description for the field.',
30
+     *             'type'        => 'text',
31
+     *         ),
32
+     *         array(
33
+     *             'field_id'    => 'sample_metabox_textarea_field',
34
+     *             'title'       => 'Textarea',
35
+     *             'description' => 'The description for the field.',
36
+     *             'type'        => 'textarea',
37
+     *             'default'     => 'This is a default text value.',
38
+     *         )
39
+     *     );     
40
+     * }</code>
41
+     * 
42
+     * @abstract
43
+     * @since        2.0.0
44
+     * @remark       The user should override this method.
45
+     * @return       void
46
+     */  
47 47
     public function setUp() {}    
48 48
 
49 49
     /**
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
      * 
67 67
      * @since 3.5.0
68 68
      */
69
-    public function enqueueStyles( $aSRCs, $aPostTypes=array(), $aCustomArgs=array() ) {
69
+    public function enqueueStyles( $aSRCs, $aPostTypes = array(), $aCustomArgs = array() ) {
70 70
         return $this->oResource->_enqueueStyles( $aSRCs, $aPostTypes, $aCustomArgs );
71 71
     }
72 72
     /**
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @param       array       (optional) The argument array for more advanced parameters.
90 90
      * @return      string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
91 91
      */    
92
-    public function enqueueStyle( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {
92
+    public function enqueueStyle( $sSRC, $aPostTypes = array(), $aCustomArgs = array() ) {
93 93
         return $this->oResource->_enqueueStyle( $sSRC, $aPostTypes, $aCustomArgs );     
94 94
     }
95 95
     /**
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
      * 
98 98
      * @since 3.5.0
99 99
      */
100
-    public function enqueueScripts( $aSRCs, $aPostTypes=array(), $aCustomArgs=array() ) {
100
+    public function enqueueScripts( $aSRCs, $aPostTypes = array(), $aCustomArgs = array() ) {
101 101
         return $this->oResource->_enqueueScripts( $aSRCs, $aPostTypes, $aCustomArgs );
102 102
     }    
103 103
     /**
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
      * @param       array       (optional) The argument array for more advanced parameters.
133 133
      * @return      string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
134 134
      */
135
-    public function enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {    
135
+    public function enqueueScript( $sSRC, $aPostTypes = array(), $aCustomArgs = array() ) {    
136 136
         return $this->oResource->_enqueueScript( $sSRC, $aPostTypes, $aCustomArgs );
137 137
     }    
138 138
         
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -132,7 +132,7 @@
 block discarded – undo
132 132
      * @param       array       (optional) The argument array for more advanced parameters.
133 133
      * @return      string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
134 134
      */
135
-    public function enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {    
135
+    public function enqueueScript( $sSRC, $aPostTypes=array(), $aCustomArgs=array() ) {
136 136
         return $this->oResource->_enqueueScript( $sSRC, $aPostTypes, $aCustomArgs );
137 137
     }    
138 138
         
Please login to merge, or discard this patch.
development/factory/meta_box/AdminPageFramework_MetaBox_Model.php 4 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -136,11 +136,11 @@
 block discarded – undo
136 136
      * 
137 137
      * Triggered when a post has not been created so no post id is assigned.
138 138
      * 
139
-	 * @internal
139
+     * @internal
140 140
      * @since       3.3.0
141 141
      * @callback    filter      wp_insert_attachment_data
142 142
      * @callback    filter      wp_insert_post_data
143
-	 * @param       array       $aPostData      An array of slashed post data.
143
+     * @param       array       $aPostData      An array of slashed post data.
144 144
      * @param       array       $aUnmodified    An array of sanitized, but otherwise unmodified post data.
145 145
      */
146 146
     public function _replyToFilterSavingData( $aPostData, $aUnmodified ) {
Please login to merge, or discard this patch.
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
          * @internal
115 115
          * @return      integer     The found post ID. `0` if not found.
116 116
          */
117
-        private function _getPostID()  {
117
+        private function _getPostID() {
118 118
             
119 119
             // for an editing post page.
120 120
             if ( isset( $GLOBALS[ 'post' ]->ID ) ) {
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
     public function _replyToFilterSavingData( $aPostData, $aUnmodified ) {
147 147
 
148 148
         // Perform initial checks.
149
-        if ( ! $this->_shouldProceedValidation( $aUnmodified ) ) { 
149
+        if ( ! $this->_shouldProceedValidation( $aUnmodified ) ) {
150 150
             return $aPostData; 
151 151
         }
152 152
                 
@@ -236,12 +236,12 @@  discard block
 block discarded – undo
236 236
          */
237 237
         private function _shouldProceedValidation( array $aUnmodified ) {
238 238
             
239
-            if ( 'auto-draft' === $aUnmodified[ 'post_status' ] ) { 
239
+            if ( 'auto-draft' === $aUnmodified[ 'post_status' ] ) {
240 240
                 return false; 
241 241
             }            
242 242
             
243 243
             // Bail if we're doing an auto save
244
-            if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) { 
244
+            if ( defined( 'DOING_AUTOSAVE' ) && DOING_AUTOSAVE ) {
245 245
                 return false;
246 246
             }
247 247
      
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
      * Sets up hooks.
23 23
      * @since       3.7.9
24 24
      */
25
-    public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID=array( 'post' ), $sContext='normal', $sPriority='default', $sCapability='edit_posts', $sTextDomain='admin-page-framework' ) {
25
+    public function __construct( $sMetaBoxID, $sTitle, $asPostTypeOrScreenID = array( 'post' ), $sContext = 'normal', $sPriority = 'default', $sCapability = 'edit_posts', $sTextDomain = 'admin-page-framework' ) {
26 26
          
27 27
         // This is important to set the hooks before the parent constructor 
28 28
         // as the setUp wil be called in there if the default action hook (current_screen) is already triggered.
29
-        add_action( 'set_up_' . $this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) );
30
-        add_action( 'set_up_' . $this->oProp->sClassName, array( $this, '_replyToSetUpValidationHooks' ) );                
29
+        add_action( 'set_up_'.$this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) );
30
+        add_action( 'set_up_'.$this->oProp->sClassName, array( $this, '_replyToSetUpValidationHooks' ) );                
31 31
                 
32 32
         parent::__construct( 
33 33
             $sMetaBoxID, 
@@ -107,14 +107,14 @@  discard block
 block discarded – undo
107 107
      * @callback    action      add_meta_boxes
108 108
      */ 
109 109
     public function _replyToRegisterMetaBoxes() {
110
-        foreach( $this->oProp->aPostTypes as $sPostType ) {
110
+        foreach ( $this->oProp->aPostTypes as $sPostType ) {
111 111
             add_meta_box( 
112
-                $this->oProp->sMetaBoxID,                       // id
113
-                $this->oProp->sTitle,                           // title
112
+                $this->oProp->sMetaBoxID, // id
113
+                $this->oProp->sTitle, // title
114 114
                 array( $this, '_replyToPrintMetaBoxContents' ), // callback
115
-                $sPostType,                                     // post type
116
-                $this->oProp->sContext,                         // context
117
-                $this->oProp->sPriority,                        // priority
115
+                $sPostType, // post type
116
+                $this->oProp->sContext, // context
117
+                $this->oProp->sPriority, // priority
118 118
                 null                                            // argument - deprecated $this->oForm->aFields
119 119
             );
120 120
         }      
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
          * @internal
147 147
          * @return      integer     The found post ID. `0` if not found.
148 148
          */
149
-        private function _getPostID()  {
149
+        private function _getPostID() {
150 150
             
151 151
             // for an editing post page.
152 152
             if ( isset( $GLOBALS[ 'post' ]->ID ) ) {
@@ -178,14 +178,14 @@  discard block
 block discarded – undo
178 178
     public function _replyToFilterSavingData( $aPostData, $aUnmodified ) {
179 179
 
180 180
         // Perform initial checks.
181
-        if ( ! $this->_shouldProceedValidation( $aUnmodified ) ) { 
181
+        if ( !$this->_shouldProceedValidation( $aUnmodified ) ) { 
182 182
             return $aPostData; 
183 183
         }
184 184
                 
185 185
         // Retrieve the submitted data. 
186
-        $_aInputs       = $this->oForm->getSubmittedData(
187
-            $_POST,     // subject data to be parsed
188
-            true,       // extract data with the fieldset structure
186
+        $_aInputs = $this->oForm->getSubmittedData(
187
+            $_POST, // subject data to be parsed
188
+            true, // extract data with the fieldset structure
189 189
             false       // strip slashes
190 190
         );
191 191
         $_aInputsRaw    = $_aInputs; // store one for the last input array.
@@ -220,8 +220,8 @@  discard block
 block discarded – undo
220 220
         }
221 221
                     
222 222
         $this->oForm->updateMetaDataByType( 
223
-            $_iPostID,   // object id
224
-            $_aInputs,   // user submit form data
223
+            $_iPostID, // object id
224
+            $_aInputs, // user submit form data
225 225
             $this->oForm->dropRepeatableElements( $_aSavedMeta ), // Drop repeatable section elements from the saved meta array.
226 226
             $this->oForm->sStructureType   // fields type
227 227
         );        
@@ -278,14 +278,14 @@  discard block
 block discarded – undo
278 278
             }
279 279
      
280 280
             // If our nonce isn't there, or we can't verify it, bail
281
-            if ( ! isset( $_POST[ $this->oProp->sMetaBoxID ] ) ) {
281
+            if ( !isset( $_POST[ $this->oProp->sMetaBoxID ] ) ) {
282 282
                 return false;
283 283
             }
284
-            if ( ! wp_verify_nonce( $_POST[ $this->oProp->sMetaBoxID ], $this->oProp->sMetaBoxID ) ) {
284
+            if ( !wp_verify_nonce( $_POST[ $this->oProp->sMetaBoxID ], $this->oProp->sMetaBoxID ) ) {
285 285
                 return false;
286 286
             }
287 287
             
288
-            if ( ! in_array( $aUnmodified[ 'post_type' ], $this->oProp->aPostTypes ) ) {
288
+            if ( !in_array( $aUnmodified[ 'post_type' ], $this->oProp->aPostTypes ) ) {
289 289
                 return false;
290 290
             }              
291 291
             
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -32,6 +32,8 @@
 block discarded – undo
32 32
      * Sets up properties and hooks.
33 33
      * 
34 34
      * @since       3.0.4
35
+     * @param string $sMetaBoxID
36
+     * @param string $sTitle
35 37
      */
36 38
     public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {     
37 39
                 
Please login to merge, or discard this patch.
development/factory/meta_box/AdminPageFramework_MetaBox_View.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
      * @return      void
28 28
      * @internal    
29 29
      */ 
30
-    public function _replyToPrintMetaBoxContents( $oPost, $vArgs ) {    
30
+    public function _replyToPrintMetaBoxContents( $oPost, $vArgs ) {
31 31
 
32 32
         // Use nonce for verification
33 33
         $_aOutput   = array();
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         // Use nonce for verification
33 33
         $_aOutput   = array();
34
-        $_aOutput[] = wp_nonce_field(
34
+        $_aOutput[ ] = wp_nonce_field(
35 35
             $this->oProp->sMetaBoxID, 
36 36
             $this->oProp->sMetaBoxID, 
37 37
             true, 
@@ -40,11 +40,11 @@  discard block
 block discarded – undo
40 40
                                  
41 41
         // Get the fields output. If no field is added, the form object is not instantiated.
42 42
         if ( isset( $this->oForm ) ) {
43
-            $_aOutput[] = $this->oForm->get();
43
+            $_aOutput[ ] = $this->oForm->get();
44 44
         }
45 45
 
46 46
         // Do actions
47
-        $this->oUtil->addAndDoActions( $this, 'do_' . $this->oProp->sClassName, $this );
47
+        $this->oUtil->addAndDoActions( $this, 'do_'.$this->oProp->sClassName, $this );
48 48
         
49 49
         // Render the filtered output.
50 50
         echo $this->oUtil->addAndApplyFilters(
Please login to merge, or discard this patch.
factory/meta_box/_model/AdminPageFramework_MetaBox_Model___PostMeta.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      */
45 45
     public function get() {
46 46
 
47
-        if ( ! $this->iPostID ) {
47
+        if ( !$this->iPostID ) {
48 48
             return array();
49 49
         }
50 50
         return $this->_getSavedDataFromFieldsets(
@@ -66,11 +66,11 @@  discard block
 block discarded – undo
66 66
             );     
67 67
 
68 68
             $_aMetaData = array();
69
-            foreach( $aFieldsets as $_sSectionID => $_aFieldsets ) {
69
+            foreach ( $aFieldsets as $_sSectionID => $_aFieldsets ) {
70 70
                 
71
-                if ( '_default' == $_sSectionID  ) {
72
-                    foreach( $_aFieldsets as $_aFieldset ) {
73
-                        if ( ! in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) {
71
+                if ( '_default' == $_sSectionID ) {
72
+                    foreach ( $_aFieldsets as $_aFieldset ) {
73
+                        if ( !in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) {
74 74
                             continue;
75 75
                         }
76 76
                         $_aMetaData[ $_aFieldset[ 'field_id' ] ] = get_post_meta( 
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
                         );    
81 81
                     }
82 82
                 }
83
-                if ( ! in_array( $_sSectionID, $_aMetaKeys ) ) {
83
+                if ( !in_array( $_sSectionID, $_aMetaKeys ) ) {
84 84
                     continue;
85 85
                 }                
86 86
                 $_aMetaData[ $_sSectionID ] = get_post_meta( 
Please login to merge, or discard this patch.
factory/meta_box/form/_view/AdminPageFramework_Form_View___CSS_meta_box.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
      * @since       DEVVER
22 22
      * @return      string
23 23
      */
24
-    protected function _get() {        
24
+    protected function _get() {
25 25
         return $this->_getRules();
26 26
     }
27 27
         /**
Please login to merge, or discard this patch.