Completed
Branch dev (69a0d4)
by
unknown
18:27
created
development/factory/_abstract/AdminPageFramework_Factory_Model.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * but it requires to call the setUp() method in the overridden method so it's not that useful.
46 46
      * @internal
47 47
      */
48
-    protected function _setUp() { 
48
+    protected function _setUp() {
49 49
         $this->setUp();
50 50
     }    
51 51
     
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @since       DEVVER
99 99
      * @return      array       The modified sectionsets definition array.
100 100
      */    
101
-    public function _replyToModifySectionsets( $aSectionsets ) {    
101
+    public function _replyToModifySectionsets( $aSectionsets ) {
102 102
         
103 103
         return $this->oUtil->addAndApplyFilter( 
104 104
             $this,  // caller factory object
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
      */
202 202
     public function _replyToFormatFieldsetDefinition( $aFieldset, $aSectionsets ) {
203 203
 
204
-        if ( empty( $aFieldset ) ) { 
204
+        if ( empty( $aFieldset ) ) {
205 205
             return $aFieldset; 
206 206
         }
207 207
         return $aFieldset;
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
          * An alias of `_setLastInputs()`.
335 335
          * @deprecated      DEVVER
336 336
          */
337
-        public function _setLastInput( $aLastInputs )  {
337
+        public function _setLastInput( $aLastInputs ) {
338 338
             return $this->setLastInputs( $aLastInputs );
339 339
         }    
340 340
 
Please login to merge, or discard this patch.
development/factory/_abstract/form/AdminPageFramework_Form_Model.php 1 patch
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.
_abstract/form/_view/resource/AdminPageFramework_Form_View__Resource.php 1 patch
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
                 add_action( 'admin_print_footer_scripts', array( $this, '_replyToAddScript' ), 999 );  
98 98
                                
99 99
                 // Required scripts in the head tag.
100
-                if ( ! in_array( $this->oForm->aArguments[ 'structure_type' ], array( 'widget' ) ) ) {       
100
+                if ( ! in_array( $this->oForm->aArguments[ 'structure_type' ], array( 'widget' ) ) ) {
101 101
                     new AdminPageFramework_Form_View__Resource__Head( $this->oForm, 'admin_head' );
102 102
                 }
103 103
                 
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
         );
237 237
         
238 238
         $_sID = $this->sanitizeSlug( strtolower( $this->oForm->aArguments[ 'caller_id' ] ) );
239
-        if ( $_sCSSRules ) {            
239
+        if ( $_sCSSRules ) {
240 240
             echo "<style type='text/css' id='inline-style-{$_sID}' class='admin-page-framework-form-style'>"
241 241
                     . $_sCSSRules
242 242
                 . "</style>";
Please login to merge, or discard this patch.
form/_view/resource/AdminPageFramework_Form_View__Resource__Head.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -89,7 +89,7 @@
 block discarded – undo
89 89
                  * @return      string
90 90
                  * @since       DEVVER
91 91
                  */
92
-                private function _getScriptElementConcealerCSSRules() {                    
92
+                private function _getScriptElementConcealerCSSRules() {
93 93
                     
94 94
                     // Avoid hiding framework forms in widgets. In some cases, the user sets a form in any page,
95 95
                     // which causes a different structure form type including `admin_page` gets loaded even in widgets.php (or any page builder pages dealing with widgets)
Please login to merge, or discard this patch.
factory/_abstract/utility/base_utility/AdminPageFramework_Utility_Array.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
     static public function getReadableListOfArray( array $aArray ) {
59 59
         
60 60
         $_aOutput   = array();
61
-        foreach( $aArray as $_sKey => $_vValue ) {        
61
+        foreach( $aArray as $_sKey => $_vValue ) {
62 62
             $_aOutput[] = self::getReadableArrayContents( $_sKey, $_vValue, 32 ) . PHP_EOL;
63 63
         }
64 64
         return implode( PHP_EOL, $_aOutput );
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     static public function getReadableListOfArrayAsHTML( array $aArray ) {
115 115
 
116 116
         $_aOutput   = array();
117
-        foreach( $aArray as $_sKey => $_vValue ) {        
117
+        foreach( $aArray as $_sKey => $_vValue ) {
118 118
             $_aOutput[] = "<ul class='array-contents'>" 
119 119
                     .  self::getReadableArrayContentsHTML( $_sKey, $_vValue )
120 120
                 . "</ul>" . PHP_EOL;
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
             }
148 148
             
149 149
             // Now it is a nested item.
150
-            foreach ( $vValue as $_sKey => $_vValue ) {   
150
+            foreach ( $vValue as $_sKey => $_vValue ) {
151 151
                 $_aOutput[] =  "<ul class='array-contents'>" 
152 152
                         . self::getReadableArrayContentsHTML( $_sKey, $_vValue ) 
153 153
                     . "</ul>";
Please login to merge, or discard this patch.
_abstract/utility/base_utility/AdminPageFramework_Utility_ArrayGetter.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,8 @@
 block discarded – undo
158 158
         // array_key_exists( $_sKey, $aArray ) caused warnings in some occasions
159 159
         if ( isset( $aArray[ $_sKey ] ) ) {
160 160
             
161
-            if ( empty( $aKeys ) ) { // no more keys 
161
+            if ( empty( $aKeys ) ) {
162
+// no more keys 
162 163
                 return $aArray[ $_sKey ];
163 164
             }
164 165
             
Please login to merge, or discard this patch.
_abstract/utility/base_utility/AdminPageFramework_Utility_ArraySetter.php 1 patch
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@  discard block
 block discarded – undo
204 204
         
205 205
         $_aInvert = array();
206 206
         foreach( $aModel as $_isKey => $_v ) {
207
-            if ( array_key_exists( $_isKey, $aSubject ) ) { 
207
+            if ( array_key_exists( $_isKey, $aSubject ) ) {
208 208
                 continue; 
209 209
             }
210 210
             $_aInvert[ $_isKey ] = $_v;
@@ -256,11 +256,11 @@  discard block
 block discarded – undo
256 256
      */ 
257 257
     public static function uniteArraysRecursive( $aPrecedence, $aDefault ) {
258 258
                 
259
-        if ( is_null( $aPrecedence ) ) { 
259
+        if ( is_null( $aPrecedence ) ) {
260 260
             $aPrecedence = array(); 
261 261
         }
262 262
         
263
-        if ( ! is_array( $aDefault ) || ! is_array( $aPrecedence ) ) { 
263
+        if ( ! is_array( $aDefault ) || ! is_array( $aPrecedence ) ) {
264 264
             return $aPrecedence; 
265 265
         }
266 266
             
Please login to merge, or discard this patch.