Completed
Branch dev (0ae946)
by
unknown
04:08 queued 23s
created
factory/_common/_abstract/_model/AdminPageFramework_Format_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
         $_aParameters = func_get_args() + array( 
36 36
             $this->aSubject, 
37 37
         );
38
-        $this->aSubject  = $_aParameters[ 0 ];        
38
+        $this->aSubject = $_aParameters[ 0 ];        
39 39
         
40 40
     }
41 41
     
Please login to merge, or discard this patch.
factory/_common/_abstract/_view/AdminPageFramework_TabNavigationBar.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Stores the tab items.
28 28
      */
29
-    public $aTabs   = array();
29
+    public $aTabs = array();
30 30
 
31 31
     /**
32 32
      * Stores container attributes.
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
     );
37 37
     
38 38
     public $aTab = array(
39
-        'slug'       => null,  // (string) tab slug (id)
40
-        'title'      => null,  // (string) tab title
41
-        'href'       => null,  // (string) link url
42
-        'disabled'   => null,  // (boolean)
43
-        'class'      => null,  // (string) class selector to append to the class attribute
39
+        'slug'       => null, // (string) tab slug (id)
40
+        'title'      => null, // (string) tab title
41
+        'href'       => null, // (string) link url
42
+        'disabled'   => null, // (boolean)
43
+        'class'      => null, // (string) class selector to append to the class attribute
44 44
         'attributes' => array(),
45 45
     );
46 46
     
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
      * @param       array             $aTabs              An array holding each tab definitions
60 60
      * @param       array|string      $asActiveTabSlugs   The default tab slug.
61 61
      */
62
-    public function __construct( array $aTabs, $asActiveTabSlugs, $sTabTag='h2', $aAttributes=array( 'class' => 'nav-tab-wrapper', ), $aCallbacks=array() ) {
62
+    public function __construct( array $aTabs, $asActiveTabSlugs, $sTabTag = 'h2', $aAttributes = array( 'class' => 'nav-tab-wrapper',), $aCallbacks = array() ) {
63 63
         
64
-        $this->aCallbacks           = $aCallbacks + array(
64
+        $this->aCallbacks = $aCallbacks + array(
65 65
             'format'    => null,
66
-            'arguments' => null,  // custom arguments to pass to the callback functions.
66
+            'arguments' => null, // custom arguments to pass to the callback functions.
67 67
         );
68 68
         $this->aTabs                = $this->_getFormattedTabs( $aTabs );
69 69
         $this->aActiveSlugs         = $this->getAsArray( $asActiveTabSlugs );        
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
          * @return      array
78 78
          */
79 79
         private function _getFormattedTabs( array $aTabs ) {
80
-            foreach( $aTabs as $_isKey => &$_aTab ) {
80
+            foreach ( $aTabs as $_isKey => &$_aTab ) {
81 81
                 $_aFormattedTab = $this->_getFormattedTab( $_aTab, $aTabs );
82 82
                 if ( isset( $_aFormattedTab[ 'slug' ] ) ) {
83 83
                     $_aTab = $_aFormattedTab;
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
         private function _getTabs() {
129 129
             
130 130
             $_aOutput = array();
131
-            foreach( $this->aTabs as $_aTab ) {
131
+            foreach ( $this->aTabs as $_aTab ) {
132 132
                 $_sTab = $this->_getTab( $_aTab );
133
-                if ( ! $_sTab ) {
133
+                if ( !$_sTab ) {
134 134
                     continue;
135 135
                 }
136
-                $_aOutput[] = $_sTab;
136
+                $_aOutput[ ] = $_sTab;
137 137
             }
138 138
 
139 139
             $_aContainerAttributes = $this->aAttributes + array( 'class' => null );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
             return empty( $_aOutput )
146 146
                 ? ''
147
-                : "<{$this->sTabTag} " . $this->getAttributes( $_aContainerAttributes ) . ">"
147
+                : "<{$this->sTabTag} ".$this->getAttributes( $_aContainerAttributes ).">"
148 148
                     . implode( '', $_aOutput )                    
149 149
                 . "</{$this->sTabTag}>";
150 150
             
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @package         AdminPageFramework/Common/Factory/Tab
16 16
  * @internal
17 17
  */
18
-class AdminPageFramework_TabNavigationBar extends AdminPageFramework_FrameworkUtility {                
18
+class AdminPageFramework_TabNavigationBar extends AdminPageFramework_FrameworkUtility {
19 19
     
20 20
     /**
21 21
      * The HTML tag used for the tag.
Please login to merge, or discard this patch.
development/factory/_common/_abstract/_view/AdminPageFramework_CSS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@
 block discarded – undo
107 107
 }
108 108
 CSSRULES;
109 109
 
110
-        return $_sCSS . PHP_EOL
111
-            . self::_getPageLoadStatsRules() . PHP_EOL
110
+        return $_sCSS.PHP_EOL
111
+            . self::_getPageLoadStatsRules().PHP_EOL
112 112
             . self::_getVersionSpecificRules();
113 113
             
114 114
     }
Please login to merge, or discard this patch.
development/factory/_common/form/AdminPageFramework_Form_Meta.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
                 
85 85
                 // The first element is the option key; the section or field dimensional keys follow.
86 86
                 if ( '__dummy_option_key' === $_aDimensionalKeys[ 0 ] ) {
87
-                     array_shift( $_aDimensionalKeys );
87
+                        array_shift( $_aDimensionalKeys );
88 88
                 }
89 89
                 
90 90
                 $this->unsetDimensionalArrayElement( 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
          */
108 108
         private function _updateMetaDatumByFuncitonName( $iObjectID, $_vValue, array $aSavedMeta, $_sSectionOrFieldID, $_sFunctionName ) {
109 109
             
110
-            if ( is_null( $_vValue ) ) { 
110
+            if ( is_null( $_vValue ) ) {
111 111
                 return;
112 112
             }
113 113
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 
120 120
             // PHP can compare even array contents with the == operator. See http://www.php.net/manual/en/language.operators.array.php
121 121
             // if the input value and the saved meta value are the same, no need to update it.
122
-            if ( $_vValue == $_vSavedValue ) { 
122
+            if ( $_vValue == $_vSavedValue ) {
123 123
                 return; 
124 124
             }
125 125
             
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -30,9 +30,9 @@  discard block
 block discarded – undo
30 30
      * @param       string      $sStructureType    The type of object. Currently 'post_meta_box' or 'user_meta' is accepted.
31 31
      * @return      void
32 32
      */
33
-    public function updateMetaDataByType( $iObjectID, array $aInput, array $aSavedMeta, $sStructureType='post_meta_box' ) {
33
+    public function updateMetaDataByType( $iObjectID, array $aInput, array $aSavedMeta, $sStructureType = 'post_meta_box' ) {
34 34
         
35
-        if ( ! $iObjectID ) {
35
+        if ( !$iObjectID ) {
36 36
             return;
37 37
         }
38 38
            
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             'user_meta'         => 'update_user_meta',               
42 42
             'term_meta'         => 'update_term_meta',               
43 43
         );
44
-        if ( ! in_array( $sStructureType, array_keys( $_aFunctionNameMapByFieldsType ) ) ) {
44
+        if ( !in_array( $sStructureType, array_keys( $_aFunctionNameMapByFieldsType ) ) ) {
45 45
             return;
46 46
         }
47 47
         $_sFunctionName = $this->getElement( $_aFunctionNameMapByFieldsType, $sStructureType );
@@ -69,16 +69,16 @@  discard block
 block discarded – undo
69 69
          */
70 70
         private function _getInputByUnset( array $aInput ) {
71 71
             
72
-            $_sUnsetKey = '__unset_' . $this->sStructureType;
73
-            if ( ! isset( $_POST[ $_sUnsetKey ] ) ) {
72
+            $_sUnsetKey = '__unset_'.$this->sStructureType;
73
+            if ( !isset( $_POST[ $_sUnsetKey ] ) ) {
74 74
                 return $aInput;
75 75
             }
76 76
             
77 77
             $_aUnsetElements = array_unique( $_POST[ $_sUnsetKey ] );
78
-            foreach( $_aUnsetElements as $_sFlatInputName ) {
78
+            foreach ( $_aUnsetElements as $_sFlatInputName ) {
79 79
                 
80 80
                 $_aDimensionalKeys = explode( '|', $_sFlatInputName );
81
-                if ( ! isset( $_aDimensionalKeys[ 0 ] ) ) {
81
+                if ( !isset( $_aDimensionalKeys[ 0 ] ) ) {
82 82
                     continue;
83 83
                 }
84 84
                 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
             $_vSavedValue = $this->getElement(
115 115
                 $aSavedMeta, // subject
116
-                $_sSectionOrFieldID,    // dimensional keys
116
+                $_sSectionOrFieldID, // dimensional keys
117 117
                 null   // default value
118 118
             );
119 119
                 
Please login to merge, or discard this patch.
development/factory/_common/form/AdminPageFramework_Form_Base.php 2 patches
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,25 +57,25 @@
 block discarded – undo
57 57
         }
58 58
         
59 59
         // If the section ID is not registered, return false.
60
-        if ( ! array_key_exists( $sID, $this->aSectionsets ) ) { 
60
+        if ( ! array_key_exists( $sID, $this->aSectionsets ) ) {
61 61
             return false; 
62 62
         }
63 63
         
64 64
         // the fields array's first dimension is also filled with the keys of section ids.
65
-        if ( ! array_key_exists( $sID, $this->aFieldsets ) ) { 
65
+        if ( ! array_key_exists( $sID, $this->aFieldsets ) ) {
66 66
             return false; 
67 67
         }
68 68
         
69 69
         // Since numeric IDs are denied at the beginning of the method, the elements will not be sub-sections.
70 70
         $_bIsSeciton = false;
71
-        foreach( $this->aFieldsets as $_sSectionID => $_aFields ) {    
71
+        foreach( $this->aFieldsets as $_sSectionID => $_aFields ) {
72 72
         
73
-            if ( $_sSectionID == $sID ) { 
73
+            if ( $_sSectionID == $sID ) {
74 74
                 $_bIsSeciton = true; 
75 75
             }
76 76
             
77 77
             // a field using the ID is found, and it precedes a section match.     
78
-            if ( array_key_exists( $sID, $_aFields ) ) { 
78
+            if ( array_key_exists( $sID, $_aFields ) ) {
79 79
                 return false; 
80 80
             }
81 81
             
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -60,18 +60,18 @@  discard block
 block discarded – undo
60 60
         }
61 61
         
62 62
         // If the section ID is not registered, return false.
63
-        if ( ! array_key_exists( $sID, $this->aSectionsets ) ) { 
63
+        if ( !array_key_exists( $sID, $this->aSectionsets ) ) { 
64 64
             return false; 
65 65
         }
66 66
         
67 67
         // the fields array's first dimension is also filled with the keys of section ids.
68
-        if ( ! array_key_exists( $sID, $this->aFieldsets ) ) { 
68
+        if ( !array_key_exists( $sID, $this->aFieldsets ) ) { 
69 69
             return false; 
70 70
         }
71 71
         
72 72
         // Since numeric IDs are denied at the beginning of the method, the elements will not be sub-sections.
73 73
         $_bIsSeciton = false;
74
-        foreach( $this->aFieldsets as $_sSectionID => $_aFields ) {    
74
+        foreach ( $this->aFieldsets as $_sSectionID => $_aFields ) {    
75 75
         
76 76
             if ( $_sSectionID == $sID ) { 
77 77
                 $_bIsSeciton = true; 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function canUserView( $sCapability ) {
100 100
         
101
-        if ( ! $sCapability  ) {
101
+        if ( !$sCapability ) {
102 102
             return true;
103 103
         }
104 104
         
Please login to merge, or discard this patch.
development/factory/_common/form/AdminPageFramework_Form_Model.php 3 patches
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
                 array( $this, '_replyToRegisterFormItems' ),
30 30
                 100 // priority - low value is set as meta boxes use the `current_screen` action hook for `setUp()`.
31 31
             );
32
-        } else {                
32
+        } else {
33 33
             add_action(
34 34
                 $this->aArguments[ 'action_hook_form_registration' ],
35 35
                 array( $this, '_replyToRegisterFormItems' )
@@ -147,12 +147,12 @@  discard block
 block discarded – undo
147 147
      * Changed the name from `getFieldsModel()`.
148 148
      * @return      array
149 149
      */
150
-    public function getDataStructureFromAddedFieldsets()  {
150
+    public function getDataStructureFromAddedFieldsets() {
151 151
                     
152 152
         $_aFormDataStructure  = array();
153 153
         foreach ( $this->getAsArray( $this->aFieldsets ) as $_sSectionID => $_aFieldsets ) {
154 154
 
155
-            if ( $_sSectionID != '_default' ) {                
155
+            if ( $_sSectionID != '_default' ) {
156 156
                 $_aFormDataStructure[ $_sSectionID ] = $_aFieldsets;
157 157
                 continue;
158 158
             }
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
      * @param       array       $aSubject       The subject array to modify. Usually the saved option data.
186 186
      * @return      array       The modified options array.
187 187
      */
188
-    public function dropRepeatableElements( array $aSubject ) {        
188
+    public function dropRepeatableElements( array $aSubject ) {
189 189
         $_oFilterRepeatableElements = new AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements( 
190 190
             $aSubject,
191 191
             $this->getElementAsArray(
Please login to merge, or discard this patch.
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -402,7 +402,6 @@  discard block
 block discarded – undo
402 402
      * 
403 403
      * @since       3.7.0
404 404
      * @param       array       $aSavedData
405
-     * @param       boolean     $bOnlyFieldsets     Whether to format only the fieldsets. The taxonomy field factory uses this parameter.
406 405
      */
407 406
     protected function _formatElementDefinitions( array $aSavedData ) {
408 407
                 
@@ -438,7 +437,6 @@  discard block
 block discarded – undo
438 437
      * Changed the name from `_getFieldErrors()`. 
439 438
      * @access      public      The field type class accesses this method to render nested fields.
440 439
      * @internal
441
-     * @param       boolean     $bDelete    whether or not the transient should be deleted after retrieving it. 
442 440
      * @return      array
443 441
      */
444 442
     public function getFieldErrors() {
Please login to merge, or discard this patch.
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -43,10 +43,10 @@  discard block
 block discarded – undo
43 43
      * @since       3.7.0
44 44
      * @return      array
45 45
      */
46
-    public function getSubmittedData( array $aDataToParse, $bExtractFromFieldStructure=true, $bStripSlashes=true ) {
46
+    public function getSubmittedData( array $aDataToParse, $bExtractFromFieldStructure = true, $bStripSlashes = true ) {
47 47
                 
48 48
         // Extracts the form data from the subject data for parsing
49
-        $_aSubmittedFormData    = $bExtractFromFieldStructure
49
+        $_aSubmittedFormData = $bExtractFromFieldStructure
50 50
             ? $this->castArrayContents( 
51 51
                 $this->getDataStructureFromAddedFieldsets(), // form data (options) structure
52 52
                 $aDataToParse   // the subject data array, usually $_POST.
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             : $aDataToParse;
55 55
 
56 56
         // 3.6.0 - sorts dynamic elements.        
57
-        $_aSubmittedFormData    = $this->getSortedInputs( $_aSubmittedFormData ); 
57
+        $_aSubmittedFormData = $this->getSortedInputs( $_aSubmittedFormData ); 
58 58
         
59 59
         return $bStripSlashes
60 60
             ? stripslashes_deep( $_aSubmittedFormData ) // fixes magic quotes
@@ -79,12 +79,12 @@  discard block
 block discarded – undo
79 79
             array_merge(
80 80
                 $this->getElementAsArray( 
81 81
                     $_POST,
82
-                    '__repeatable_elements_' . $this->aArguments[ 'structure_type' ],
82
+                    '__repeatable_elements_'.$this->aArguments[ 'structure_type' ],
83 83
                     array()
84 84
                 ),
85 85
                 $this->getElementAsArray( 
86 86
                     $_POST,
87
-                    '__sortable_elements_' . $this->aArguments[ 'structure_type' ],
87
+                    '__sortable_elements_'.$this->aArguments[ 'structure_type' ],
88 88
                     array()
89 89
                 )
90 90
             )
@@ -147,9 +147,9 @@  discard block
 block discarded – undo
147 147
      * Changed the name from `getFieldsModel()`.
148 148
      * @return      array
149 149
      */
150
-    public function getDataStructureFromAddedFieldsets()  {
150
+    public function getDataStructureFromAddedFieldsets() {
151 151
                     
152
-        $_aFormDataStructure  = array();
152
+        $_aFormDataStructure = array();
153 153
         foreach ( $this->getAsArray( $this->aFieldsets ) as $_sSectionID => $_aFieldsets ) {
154 154
 
155 155
             if ( $_sSectionID != '_default' ) {                
@@ -158,7 +158,7 @@  discard block
 block discarded – undo
158 158
             }
159 159
             
160 160
             // For default field items.
161
-            foreach( $_aFieldsets as $_sFieldID => $_aFieldset ) {
161
+            foreach ( $_aFieldsets as $_sFieldID => $_aFieldset ) {
162 162
                 $_aFormDataStructure[ $_aFieldset[ 'field_id' ] ] = $_aFieldset;
163 163
             }
164 164
 
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             $aSubject,
191 191
             $this->getElementAsArray(
192 192
                 $_POST,
193
-                '__repeatable_elements_' . $this->aArguments[ 'structure_type' ]
193
+                '__repeatable_elements_'.$this->aArguments[ 'structure_type' ]
194 194
             )
195 195
         );
196 196
         return $_oFilterRepeatableElements->get();
@@ -203,13 +203,13 @@  discard block
 block discarded – undo
203 203
     public function _replyToRegisterFormItems() {
204 204
 
205 205
         // Check if the form should be created or not.
206
-        if ( ! $this->isInThePage() ) {
206
+        if ( !$this->isInThePage() ) {
207 207
             return;
208 208
         }
209 209
 
210 210
         // Load field type definitions.
211
-        $this->_setFieldTypeDefinitions( 'admin_page_framework' );      // site-wide
212
-        $this->_setFieldTypeDefinitions( $this->aArguments[ 'caller_id' ] );  // per class 
211
+        $this->_setFieldTypeDefinitions( 'admin_page_framework' ); // site-wide
212
+        $this->_setFieldTypeDefinitions( $this->aArguments[ 'caller_id' ] ); // per class 
213 213
         
214 214
         // Set the options array
215 215
         $this->aSavedData = $this->_getSavedData(
@@ -237,7 +237,7 @@  discard block
 block discarded – undo
237 237
             $this->aArguments,
238 238
             $this->aFieldsets,
239 239
             self::$_aResources,
240
-            $this->aFieldTypeDefinitions,   // must be called after performing `_setFieldTypeDefinitions()`.
240
+            $this->aFieldTypeDefinitions, // must be called after performing `_setFieldTypeDefinitions()`.
241 241
             $this->aCallbacks
242 242
         );
243 243
         self::$_aResources = $_oFieldResources->get(); // updates the property
@@ -254,10 +254,10 @@  discard block
 block discarded – undo
254 254
         $this->callBack(
255 255
             $this->aCallbacks[ 'handle_form_data' ],
256 256
             array(
257
-                $this->aSavedData,      // 1st parameter
258
-                $this->aArguments,      // 2nd parameter
259
-                $this->aSectionsets,    // 3rd parameter
260
-                $this->aFieldsets,      // 4th parameter
257
+                $this->aSavedData, // 1st parameter
258
+                $this->aArguments, // 2nd parameter
259
+                $this->aSectionsets, // 3rd parameter
260
+                $this->aFieldsets, // 4th parameter
261 261
             )
262 262
         );        
263 263
 
@@ -271,15 +271,15 @@  discard block
 block discarded – undo
271 271
             $this->aSectionsets = $this->callBack(
272 272
                 $this->aCallbacks[ 'secitonsets_before_registration' ],
273 273
                 array(
274
-                    $this->aSectionsets,    // 1st parameter
274
+                    $this->aSectionsets, // 1st parameter
275 275
                 )
276 276
             );
277 277
             // Let the main routine modify the fieldsets definition array.
278 278
             $this->aFieldsets = $this->callBack(
279 279
                 $this->aCallbacks[ 'fieldsets_before_registration' ],
280 280
                 array(
281
-                    $this->aFieldsets,    // 1st parameter
282
-                    $this->aSectionsets,  // 2nd parameter
281
+                    $this->aFieldsets, // 1st parameter
282
+                    $this->aSectionsets, // 2nd parameter
283 283
                 )
284 284
             );
285 285
 
Please login to merge, or discard this patch.
_model/formatter/AdminPageFramework_Form_Model___FormatDynamicElements.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
                 $aOptions // data source
69 69
             );
70 70
 
71
-            foreach( $aOptions as $_sSectionID => $_aSubSectionOrFields ) {
71
+            foreach ( $aOptions as $_sSectionID => $_aSubSectionOrFields ) {
72 72
                 
73 73
                 $_aSubSection = $this->_getSubSectionFromOptions(   
74 74
                     $_sSectionID,
@@ -105,10 +105,10 @@  discard block
 block discarded – undo
105 105
                 
106 106
                 $_aSubSection = array();
107 107
                 $_iPrevIndex  = null;
108
-                foreach( $_aSubSectionOrFields as $_isIndexOrFieldID => $_aSubSectionOrFieldOptions ) {
108
+                foreach ( $_aSubSectionOrFields as $_isIndexOrFieldID => $_aSubSectionOrFieldOptions ) {
109 109
                 
110 110
                     // If it is not a sub-section array, skip.
111
-                    if ( ! $this->isNumericInteger( $_isIndexOrFieldID ) ) { 
111
+                    if ( !$this->isNumericInteger( $_isIndexOrFieldID ) ) { 
112 112
                         continue; 
113 113
                     }
114 114
                     
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
                     );
123 123
        
124 124
                     // Update the internal section index key
125
-                    foreach( $_aSubSection[ $_iIndex ] as &$_aField ) {
125
+                    foreach ( $_aSubSection[ $_iIndex ] as &$_aField ) {
126 126
                         $_aField[ '_section_index' ] = $_iIndex;
127 127
                     }
128 128
                     unset( $_aField ); // to be safe in PHP
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
                  */
148 148
                 private function _getSubSectionItemsFromOptions( array $_aSubSection, $_sSectionID, $_iIndex, $_iPrevIndex ) {
149 149
                     
150
-                    if ( ! isset( $this->aFieldsets[ $_sSectionID ] ) ) {
150
+                    if ( !isset( $this->aFieldsets[ $_sSectionID ] ) ) {
151 151
                         return array();
152 152
                     }
153 153
                     
@@ -156,7 +156,7 @@  discard block
 block discarded – undo
156 156
                         : $this->getNonIntegerKeyElements( $this->aFieldsets[ $_sSectionID ] );
157 157
                         
158 158
                     // if empty, merge with the previous element.
159
-                    return ! empty( $_aFields )
159
+                    return !empty( $_aFields )
160 160
                         ? $_aFields
161 161
                         : $this->getElementAsArray(
162 162
                             $_aSubSection,
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -108,7 +108,7 @@
 block discarded – undo
108 108
                 foreach( $_aSubSectionOrFields as $_isIndexOrFieldID => $_aSubSectionOrFieldOptions ) {
109 109
                 
110 110
                     // If it is not a sub-section array, skip.
111
-                    if ( ! $this->isNumericInteger( $_isIndexOrFieldID ) ) { 
111
+                    if ( ! $this->isNumericInteger( $_isIndexOrFieldID ) ) {
112 112
                         continue; 
113 113
                     }
114 114
                     
Please login to merge, or discard this patch.
_model/formatter/AdminPageFramework_Form_Model___Format_EachSection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Stores the section definition.
45 45
      */
46
-    public $aSection            = array();
46
+    public $aSection = array();
47 47
     
48 48
     /**
49 49
      * Indicates the sub section index.
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
         
92 92
         $_aSection[ '_is_collapsible' ]    = $_aSection[ 'collapsible' ] && 'section' === $_aSection[ 'collapsible' ][ 'container' ];
93 93
         
94
-        $_aSection[ '_tag_id' ]            = 'section-' . $_aSection[ 'section_id' ] . '__' . $this->iIndex;
95
-        $_aSection[ '_tag_id_model' ]      = 'section-' . $_aSection[ 'section_id' ] . '__' . '___i___';
94
+        $_aSection[ '_tag_id' ]            = 'section-'.$_aSection[ 'section_id' ].'__'.$this->iIndex;
95
+        $_aSection[ '_tag_id_model' ]      = 'section-'.$_aSection[ 'section_id' ].'__'.'___i___';
96 96
         
97 97
         return $_aSection;
98 98
         
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___FormatSectionsets.php 2 patches
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             foreach( $aSectionsetsToParse as $_sSectionPath => $_aSectionset ) {
85 85
 
86 86
                 // The '_default' section can be empty so do not check `if ( empty( $_aSectionset ) )` here.
87
-                if ( ! is_array( $_aSectionset ) ) { 
87
+                if ( ! is_array( $_aSectionset ) ) {
88 88
                     continue; 
89 89
                 }
90 90
                 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     $this->aCallbacks[ 'sectionset_before_output' ], 
104 104
                     array( $_aSectionsetFormatter->get() )
105 105
                 );
106
-                if ( empty( $_aSectionset ) ) { 
106
+                if ( empty( $_aSectionset ) ) {
107 107
                     continue; 
108 108
                 }
109 109
                 
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         $_aSectionsets = $this->_getSectionsetsFormatted(
67
-            array(),                // section-sets array to modify - new formatted items will be stored here
68
-            $this->aSectionsets,    // parsing section-sets
69
-            array(),                // section path - empty for root 
67
+            array(), // section-sets array to modify - new formatted items will be stored here
68
+            $this->aSectionsets, // parsing section-sets
69
+            array(), // section path - empty for root 
70 70
             $this->sCapability      // capability
71 71
         );
72 72
 
@@ -83,10 +83,10 @@  discard block
 block discarded – undo
83 83
          */
84 84
         private function _getSectionsetsFormatted( $_aNewSectionsets, $aSectionsetsToParse, $aSectionPath, $sCapability ) {
85 85
 
86
-            foreach( $aSectionsetsToParse as $_sSectionPath => $_aSectionset ) {
86
+            foreach ( $aSectionsetsToParse as $_sSectionPath => $_aSectionset ) {
87 87
 
88 88
                 // The '_default' section can be empty so do not check `if ( empty( $_aSectionset ) )` here.
89
-                if ( ! is_array( $_aSectionset ) ) { 
89
+                if ( !is_array( $_aSectionset ) ) { 
90 90
                     continue; 
91 91
                 }
92 92
                 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 
118 118
                 // 3.7.0+ For nested sections         
119 119
                 $_aNewSectionsets = $this->_getNestedSections( 
120
-                    $_aNewSectionsets,  // sectionset array to modify
120
+                    $_aNewSectionsets, // sectionset array to modify
121 121
                     $_aSectionset, 
122 122
                     $_aSectionPath, // section path
123 123
                     $_aSectionset[ 'capability' ]
@@ -134,15 +134,15 @@  discard block
 block discarded – undo
134 134
              */
135 135
             private function _getNestedSections( $aSectionsetsToEdit, $aSectionset, $aSectionPath, $sCapability ) {
136 136
 
137
-                if ( ! $this->_hasNestedSections( $aSectionset ) ) {
137
+                if ( !$this->_hasNestedSections( $aSectionset ) ) {
138 138
                     return $aSectionsetsToEdit;
139 139
                 }
140 140
 
141 141
                 // Recursive call
142 142
                 return $this->_getSectionsetsFormatted(
143
-                        $aSectionsetsToEdit,          // section-sets array to modify - new formatted items will be stored here
144
-                        $aSectionset[ 'content' ],    // parsing section-sets
145
-                        $aSectionPath,                // section path - empty for root 
143
+                        $aSectionsetsToEdit, // section-sets array to modify - new formatted items will be stored here
144
+                        $aSectionset[ 'content' ], // parsing section-sets
145
+                        $aSectionPath, // section path - empty for root 
146 146
                         $sCapability                  // capability
147 147
                     );                          
148 148
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 private function _hasNestedSections( $aSectionset ) {
156 156
                     
157 157
                     $aSectionset = $aSectionset + array( 'content' => null );
158
-                    if ( ! is_array( $aSectionset[ 'content' ] ) ) {
158
+                    if ( !is_array( $aSectionset[ 'content' ] ) ) {
159 159
                         return false;
160 160
                     }
161 161
                     $_aContents  = $aSectionset[ 'content' ];
Please login to merge, or discard this patch.