Completed
Branch master (7ff82b)
by
unknown
01:54
created
development/utility/class_tester/AdminPageFramework_ClassTester.php 2 patches
Doc Comments   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * Creates an object instance with dynamic parameters.
46 46
      * 
47 47
      * @since       3.7.10
48
-     * @param       string      $sCalssName     The class name for testing.
48
+     * @param       string      $sClassName     The class name for testing.
49 49
      * @param       array       $aParameters    The parameters to pass to the constructor of the class set in the first parameter.
50 50
      * @return      object      An object instance of the class specified in the first parameter.
51 51
      */
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * 
62 62
      * @since       3.7.10
63 63
      * @param       object      $oClass         The subject class object.
64
-     * @param       string      $sMathodName    The subject method name.
64
+     * @param       string      $sMethodName    The subject method name.
65 65
      * @param       array       $aParameters    The parameters to pass to the method set in the second parameter.    
66 66
      * @remark      This supports private methods to be executed.
67 67
      */
@@ -87,6 +87,7 @@  discard block
 block discarded – undo
87 87
     }
88 88
         /**
89 89
          * @since       3.7.10
90
+         * @param string $sClassName
90 91
          * @return      object
91 92
          * @internal
92 93
          */
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @param       array       $aParameters    The parameters to pass to the constructor of the class set in the first parameter.
49 49
      * @return      object      An object instance of the class specified in the first parameter.
50 50
      */
51
-    static public function getInstance( $sClassName, array $aParameters=array() ) {
51
+    static public function getInstance( $sClassName, array $aParameters = array() ) {
52 52
         
53 53
         $_oReflection = new ReflectionClass( $sClassName );
54 54
         return $_oReflection->newInstanceArgs( $aParameters );               
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
         // For PHP 5.2.x or below
70 70
         if ( version_compare( phpversion(), '<', '5.3.0' ) ) {
71 71
             trigger_error(
72
-                'Program Name' . ': ' 
72
+                'Program Name'.': ' 
73 73
                     . sprintf( 
74 74
                         'The method cannot run with your PHP version: %1$s',
75 75
                         phpversion()
Please login to merge, or discard this patch.
factory/user_meta/_model/AdminPageFramework_UserMeta_Model___UserMeta.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,6 +21,6 @@
 block discarded – undo
21 21
     /**
22 22
      * The callback function name or the callable object to retrieve meta data.
23 23
      */
24
-    protected $osCallable   = 'get_user_meta'; 
24
+    protected $osCallable = 'get_user_meta'; 
25 25
         
26 26
 }
Please login to merge, or discard this patch.
_common/_abstract/_model/AdminPageFramework_Factory_Model___Meta_Base.php 2 patches
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -23,17 +23,17 @@  discard block
 block discarded – undo
23 23
     /**
24 24
      * The callback function name or the callable object to retrieve meta data.
25 25
      */
26
-    protected $osCallable   = 'get_post_meta';
26
+    protected $osCallable = 'get_post_meta';
27 27
 
28 28
     /**
29 29
      * The object ID such as post ID, user ID, and term ID.
30 30
      */
31
-    public $iObjectID       = 0;
31
+    public $iObjectID = 0;
32 32
     
33 33
     /**
34 34
      * A form fieldsets array.
35 35
      */
36
-    public $aFieldsets      = array();
36
+    public $aFieldsets = array();
37 37
     
38 38
     /**
39 39
      * Sets up properties.
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
      */
58 58
     public function get() {
59 59
 
60
-        if ( ! $this->iObjectID ) {
60
+        if ( !$this->iObjectID ) {
61 61
             return array();
62 62
         }
63 63
         return $this->_getSavedDataFromFieldsets(
@@ -76,11 +76,11 @@  discard block
 block discarded – undo
76 76
             
77 77
             $_aMetaKeys = $this->_getMetaKeys( $iObjectID );
78 78
             $_aMetaData = array();
79
-            foreach( $aFieldsets as $_sSectionID => $_aFieldsets ) {
79
+            foreach ( $aFieldsets as $_sSectionID => $_aFieldsets ) {
80 80
                 
81
-                if ( '_default' == $_sSectionID  ) {
82
-                    foreach( $_aFieldsets as $_aFieldset ) {
83
-                        if ( ! in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) {
81
+                if ( '_default' == $_sSectionID ) {
82
+                    foreach ( $_aFieldsets as $_aFieldset ) {
83
+                        if ( !in_array( $_aFieldset[ 'field_id' ], $_aMetaKeys ) ) {
84 84
                             continue;
85 85
                         }
86 86
                         $_aMetaData[ $_aFieldset[ 'field_id' ] ] = call_user_func_array(
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                         );
94 94
                     }
95 95
                 }
96
-                if ( ! in_array( $_sSectionID, $_aMetaKeys ) ) {
96
+                if ( !in_array( $_sSectionID, $_aMetaKeys ) ) {
97 97
                     continue;
98 98
                 }                
99 99
                 $_aMetaData[ $_sSectionID ] = call_user_func_array(
Please login to merge, or discard this patch.
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -69,6 +69,7 @@
 block discarded – undo
69 69
          * 
70 70
          * @since       3.7.0
71 71
          * @uses        get_post_meta()
72
+         * @param integer $iObjectID
72 73
          * @return      array
73 74
          */
74 75
         private function _getSavedDataFromFieldsets( $iObjectID, $aFieldsets ) {
Please login to merge, or discard this patch.
form/_view/fieldset/AdminPageFramework_Form_View___Fieldset_Base.php 4 patches
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
                 self::$_bIsLoadedJSScripts_Widget = true;
158 158
             }
159 159
             
160
-            if ( self::$_bIsLoadedJSScripts ) { 
160
+            if ( self::$_bIsLoadedJSScripts ) {
161 161
                 return; 
162 162
             }
163 163
             self::$_bIsLoadedJSScripts = true;
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      * 
256 256
      * @since 3.0.0
257 257
      */    
258
-    protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) {        
258
+    protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) {
259 259
     
260 260
         $_sScript = <<<JAVASCRIPTS
261 261
     jQuery( document ).ready( function() {
Please login to merge, or discard this patch.
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -173,6 +173,7 @@  discard block
 block discarded – undo
173 173
      * Returns the repeatable fields script.
174 174
      * 
175 175
      * @since 2.1.3
176
+     * @param string $sFieldsContainerID
176 177
      */
177 178
     protected function _getRepeaterFieldEnablerScript( $sFieldsContainerID, $iFieldCount, $aSettings ) {
178 179
         
@@ -261,6 +262,7 @@  discard block
 block discarded – undo
261 262
             /**
262 263
              * @since       3.8.13
263 264
              * @param       array       $aArguments
265
+             * @param string $sSmallButtonSelector
264 266
              * @return      string
265 267
              */
266 268
             private function ___getAddButtonAttribtes( $aArguments, $sFieldsContainerID, $sSmallButtonSelector ) {
@@ -279,7 +281,7 @@  discard block
 block discarded – undo
279 281
             }
280 282
             /**
281 283
              * @since       3.8.13
282
-             * @param       array       $aArguments
284
+             * @param string $sSmallButtonSelector
283 285
              * @return      string
284 286
              */
285 287
             private function ___getRemoveButtonAttributes( $sFieldsContainerID, $sSmallButtonSelector, $iFieldCount ) {
@@ -323,6 +325,7 @@  discard block
 block discarded – undo
323 325
      * Returns the sortable fields script.
324 326
      * 
325 327
      * @since 3.0.0
328
+     * @param string $sFieldsContainerID
326 329
      */    
327 330
     protected function _getSortableFieldEnablerScript( $sFieldsContainerID ) {        
328 331
     
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -272,8 +272,8 @@  discard block
 block discarded – undo
272 272
                     'href'      => empty( $aArguments[ 'disabled' ] )
273 273
                         ? null
274 274
                         : '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
275
-                          . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
276
-                          . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
275
+                            . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
276
+                            . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
277 277
                 );
278 278
                 return $this->getAttributes( $_sPlusButtonAttributes );
279 279
             }
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             private function ___getRemoveButtonAttributes( $sFieldsContainerID, $sSmallButtonSelector, $iFieldCount ) {
286 286
                 $_aMinusButtonAttributes = array(
287 287
                     'class'     => 'repeatable-field-remove-button button-secondary repeatable-field-button button'
288
-                         . $sSmallButtonSelector,
288
+                            . $sSmallButtonSelector,
289 289
                     'title'     => $this->oMsg->get( 'remove' ),
290 290
                     'style'     => $iFieldCount <= 1
291 291
                         ? 'visibility: hidden'
Please login to merge, or discard this patch.
Spacing   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param       object      $oMsg                   An object storing the system messages.
68 68
      * @param       array       $aCallbacks             An array storing the form-field specific callbacks.     
69 69
      */
70
-    public function __construct( $aFieldset, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks=array() ) {
70
+    public function __construct( $aFieldset, $aOptions, $aErrors, &$aFieldTypeDefinitions, &$oMsg, array $aCallbacks = array() ) {
71 71
 
72 72
         // Set up the properties that will be accessed later in the methods.
73 73
         $this->aFieldset                = $this->_getFormatted( $aFieldset, $aFieldTypeDefinitions );
@@ -76,13 +76,13 @@  discard block
 block discarded – undo
76 76
         $this->aErrors                  = $this->getAsArray( $aErrors );
77 77
         $this->oMsg                     = $oMsg;
78 78
         $this->aCallbacks               = $aCallbacks + array(
79
-            'hfID'              => null,    // the input id attribute
80
-            'hfTagID'           => null,    // the fieldset/field row container id attribute
81
-            'hfName'            => null,    // the input name attribute
82
-            'hfNameFlat'        => null,    // the flat input name attribute                
79
+            'hfID'              => null, // the input id attribute
80
+            'hfTagID'           => null, // the fieldset/field row container id attribute
81
+            'hfName'            => null, // the input name attribute
82
+            'hfNameFlat'        => null, // the flat input name attribute                
83 83
             'hfInputName'       => null,
84 84
             'hfInputNameFlat'   => null,
85
-            'hfClass'           => null,    // the class attribute
85
+            'hfClass'           => null, // the class attribute
86 86
         );        
87 87
         
88 88
         // 2. Load necessary JavaScript scripts.
@@ -149,9 +149,9 @@  discard block
 block discarded – undo
149 149
          * @since   3.2.0   Added the `$sFieldsType` parameter.
150 150
          * @internal
151 151
          */
152
-        private function _loadScripts( $sStructureType='' ) {
152
+        private function _loadScripts( $sStructureType = '' ) {
153 153
 
154
-            if ( 'widget' === $sStructureType && ! self::$_bIsLoadedJSScripts_Widget ) {
154
+            if ( 'widget' === $sStructureType && !self::$_bIsLoadedJSScripts_Widget ) {
155 155
                 new AdminPageFramework_Form_View___Script_Widget;
156 156
                 self::$_bIsLoadedJSScripts_Widget = true;
157 157
             }
@@ -176,8 +176,8 @@  discard block
 block discarded – undo
176 176
      */
177 177
     protected function _getRepeaterFieldEnablerScript( $sFieldsContainerID, $iFieldCount, $aSettings ) {
178 178
         
179
-        $_sSmallButtons         = '"' . $this->___getRepeatableButtonHTML( $sFieldsContainerID, ( array ) $aSettings, $iFieldCount, true ) . '"';
180
-        $_sNestedFieldsButtons  = '"' . $this->___getRepeatableButtonHTML( $sFieldsContainerID, ( array ) $aSettings, $iFieldCount, false ) . '"';
179
+        $_sSmallButtons         = '"'.$this->___getRepeatableButtonHTML( $sFieldsContainerID, ( array ) $aSettings, $iFieldCount, true ).'"';
180
+        $_sNestedFieldsButtons  = '"'.$this->___getRepeatableButtonHTML( $sFieldsContainerID, ( array ) $aSettings, $iFieldCount, false ).'"';
181 181
         $_aJSArray              = json_encode( $aSettings );
182 182
         $_sScript               = <<<JAVASCRIPTS
183 183
 jQuery( document ).ready( function() {
@@ -223,36 +223,36 @@  discard block
 block discarded – undo
223 223
          * @since       3.8.0
224 224
          * @return      string
225 225
          */
226
-        private function ___getRepeatableButtonHTML( $sFieldsContainerID, array $aArguments, $iFieldCount, $bSmall=true ) {
226
+        private function ___getRepeatableButtonHTML( $sFieldsContainerID, array $aArguments, $iFieldCount, $bSmall = true ) {
227 227
 
228 228
             // @todo Move this formatting routine to the field-set formatter class.
229 229
             $_oFormatter             = new AdminPageFramework_Form_Model___Format_RepeatableField( $aArguments, $this->oMsg );
230 230
             $_aArguments             = $_oFormatter->get();
231 231
             $_sSmallButtonSelector   = $bSmall ? ' button-small' : '';
232 232
             if ( version_compare( $GLOBALS[ 'wp_version' ], '5.3', '>=' ) ) {
233
-                return "<div " . $this->___getContainerAttributes( $_aArguments ) . " >"
234
-                        . "<a " . $this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ) . ">"
233
+                return "<div ".$this->___getContainerAttributes( $_aArguments )." >"
234
+                        . "<a ".$this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ).">"
235 235
                             . "<span class='dashicons dashicons-minus'></span>"
236 236
                         . "</a>"
237
-                        . "<a " . $this->___getAddButtonAttribtes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ) . ">"
237
+                        . "<a ".$this->___getAddButtonAttribtes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ).">"
238 238
                             . "<span class='dashicons dashicons-plus-alt2'></span>"
239 239
                         ."</a>"
240 240
                     . "</div>"
241 241
                     . $this->getModalForDisabledRepeatableElement(
242
-                        'repeatable_field_disabled_' . $sFieldsContainerID,
242
+                        'repeatable_field_disabled_'.$sFieldsContainerID,
243 243
                         $_aArguments[ 'disabled' ]
244 244
                     );
245 245
             }
246
-            return "<div " . $this->___getContainerAttributes( $_aArguments ) . " >"
247
-                    . "<a " . $this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ) . ">"
246
+            return "<div ".$this->___getContainerAttributes( $_aArguments )." >"
247
+                    . "<a ".$this->___getRemoveButtonAttributes( $sFieldsContainerID, $_sSmallButtonSelector, $iFieldCount ).">"
248 248
                         . "-"
249 249
                     . "</a>"
250
-                    . "<a " . $this->___getAddButtonAttribtes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ) . ">"
250
+                    . "<a ".$this->___getAddButtonAttribtes( $_aArguments, $sFieldsContainerID, $_sSmallButtonSelector ).">"
251 251
                         . "+"
252 252
                     ."</a>"
253 253
                 . "</div>"
254 254
                 . $this->getModalForDisabledRepeatableElement(
255
-                    'repeatable_field_disabled_' . $sFieldsContainerID,
255
+                    'repeatable_field_disabled_'.$sFieldsContainerID,
256 256
                     $_aArguments[ 'disabled' ]
257 257
                 );
258 258
 
@@ -271,9 +271,9 @@  discard block
 block discarded – undo
271 271
                     'data-id'   => $sFieldsContainerID,
272 272
                     'href'      => empty( $aArguments[ 'disabled' ] )
273 273
                         ? null
274
-                        : '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
275
-                          . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
276
-                          . '&inlineId=' . 'repeatable_field_disabled_' . $sFieldsContainerID,
274
+                        : '#TB_inline?width='.$aArguments[ 'disabled' ][ 'box_width' ]
275
+                          . '&height='.$aArguments[ 'disabled' ][ 'box_height' ]
276
+                          . '&inlineId='.'repeatable_field_disabled_'.$sFieldsContainerID,
277 277
                 );
278 278
                 return $this->getAttributes( $_sPlusButtonAttributes );
279 279
             }
@@ -300,10 +300,10 @@  discard block
 block discarded – undo
300 300
              * @return      string
301 301
              */
302 302
             private function ___getContainerAttributes( $aArguments ) {
303
-                $_aContainerAttributes   = array(
303
+                $_aContainerAttributes = array(
304 304
                     'class' => $this->getClassAttribute(
305 305
                         'admin-page-framework-repeatable-field-buttons',
306
-                        ! empty( $aArguments[ 'disabled' ] )
306
+                        !empty( $aArguments[ 'disabled' ] )
307 307
                             ? 'disabled'
308 308
                             : ''
309 309
                     ),
@@ -316,7 +316,7 @@  discard block
 block discarded – undo
316 316
                     unset( $aArguments[ 'disabled' ] );
317 317
                 }
318 318
                 return $this->getAttributes( $_aContainerAttributes )
319
-                    . ' ' . $this->getDataAttributes( $aArguments );
319
+                    . ' '.$this->getDataAttributes( $aArguments );
320 320
             }
321 321
 
322 322
     /**
Please login to merge, or discard this patch.
generator/section/AdminPageFramework_Form_View___Generate_Section_Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,8 +93,8 @@
 block discarded – undo
93 93
         
94 94
         // Extract the first part as it does not have braces
95 95
         $_sName = array_shift( $aParts );
96
-        foreach( $aParts as $_sPart ) {
97
-            $_sName .= '[' . $_sPart . ']';
96
+        foreach ( $aParts as $_sPart ) {
97
+            $_sName .= '['.$_sPart.']';
98 98
         }
99 99
         return $_sName;
100 100
         
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___Format_EachField.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,8 +24,8 @@  discard block
 block discarded – undo
24 24
      * Represents the structure of the sub-field definition array.
25 25
      */
26 26
     static public $aStructure = array(
27
-        '_is_sub_field'                 => false,   // @todo change this key name as all the parsed field is technically a sub-field.
28
-        '_index'                        => 0,       // indicates the field index
27
+        '_is_sub_field'                 => false, // @todo change this key name as all the parsed field is technically a sub-field.
28
+        '_index'                        => 0, // indicates the field index
29 29
         '_is_multiple_fields'           => false,
30 30
         '_saved_value'                  => null,
31 31
         '_is_value_set_by_user'         => false,
@@ -39,8 +39,8 @@  discard block
 block discarded – undo
39 39
         '_fields_container_id'          => '',
40 40
         '_fieldset_container_id'        => '',
41 41
         
42
-        '_field_object'                 => null,        // 3.6.0+
43
-        '_parent_field_object'          => null,        // 3.6.0+ Stores the parent field object to be accessed from the nested fields to generate id and name attribute models.
42
+        '_field_object'                 => null, // 3.6.0+
43
+        '_parent_field_object'          => null, // 3.6.0+ Stores the parent field object to be accessed from the nested fields to generate id and name attribute models.
44 44
     );
45 45
     
46 46
     /**
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 
88 88
         $_aField = $this->aField + self::$aStructure;
89 89
         
90
-        $_aField[ '_is_sub_field' ]            = is_numeric( $this->isIndex ) && 0 < $this->isIndex;      // 3.5.3+
90
+        $_aField[ '_is_sub_field' ]            = is_numeric( $this->isIndex ) && 0 < $this->isIndex; // 3.5.3+
91 91
         $_aField[ '_index' ]                   = $this->isIndex;
92 92
 
93 93
         // 'input_id' - something like ({section id}_){field_id}__{index} e.g. my_section_id_my_field_id__0
@@ -134,8 +134,8 @@  discard block
 block discarded – undo
134 134
                     'value'             => $_aField[ 'value' ],
135 135
                     'type'              => $_aField[ 'type' ], // text, password, etc.
136 136
                     'disabled'          => null,
137
-                    'data-id_model'     => $_aField[ '_input_id_model' ],    // 3.3.1+
138
-                    'data-name_model'   => $_aField[ '_input_name_model' ],  // 3.3.1+
137
+                    'data-id_model'     => $_aField[ '_input_id_model' ], // 3.3.1+
138
+                    'data-name_model'   => $_aField[ '_input_name_model' ], // 3.3.1+
139 139
                 )
140 140
             ),
141 141
             // this allows sub-fields with different field types to set the default key-values for the sub-field.
Please login to merge, or discard this patch.
_model/formatter/AdminPageFramework_Form_Model___Format_FieldsetOutput.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -33,23 +33,23 @@  discard block
 block discarded – undo
33 33
      * @internal
34 34
      */ 
35 35
     static public $aStructure = array(       
36
-        '_section_index'            => null,    // 3.0.0+ - internally set to indicate the section index for repeatable sections.        
36
+        '_section_index'            => null, // 3.0.0+ - internally set to indicate the section index for repeatable sections.        
37 37
         
38 38
         'tag_id'                    => null,
39
-        '_tag_id_model'             => '',      // 3.6.0+   
39
+        '_tag_id_model'             => '', // 3.6.0+   
40 40
         
41
-        '_field_name'               => '',      // 3.6.0+   
42
-        '_field_name_model'         => '',      // 3.6.0+           
41
+        '_field_name'               => '', // 3.6.0+   
42
+        '_field_name_model'         => '', // 3.6.0+           
43 43
         
44
-        '_field_name_flat'          => '',      // 3.6.0+
45
-        '_field_name_flat_model'    => '',      // 3.6.0+   
44
+        '_field_name_flat'          => '', // 3.6.0+
45
+        '_field_name_flat_model'    => '', // 3.6.0+   
46 46
                 
47
-        '_field_address'            => '',      // 3.6.0+
48
-        '_field_address_model'      => '',      // 3.6.0+
47
+        '_field_address'            => '', // 3.6.0+
48
+        '_field_address_model'      => '', // 3.6.0+
49 49
                
50
-        '_parent_field_object'      => null,    // 3.6.0+   Assigned when a field creates a nested field.
50
+        '_parent_field_object'      => null, // 3.6.0+   Assigned when a field creates a nested field.
51 51
         
52
-        '_parent_tag_id'            => null,    // 3.8.0+   Set outside the class.
52
+        '_parent_tag_id'            => null, // 3.8.0+   Set outside the class.
53 53
         
54 54
     );        
55 55
     
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
         $_aFieldset = $this->aFieldset + self::$aStructure;
93 93
 
94 94
         // The section index must be set before generating a field tag id as it uses a section index.
95
-        $_aFieldset[ '_section_index' ]   = $this->iSectionIndex;
95
+        $_aFieldset[ '_section_index' ] = $this->iSectionIndex;
96 96
         $_oFieldTagIDGenerator = new AdminPageFramework_Form_View___Generate_FieldTagID( 
97 97
             $_aFieldset,
98 98
             $_aFieldset[ '_caller_object' ]->aCallbacks[ 'hfTagID' ]
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
         
127 127
         // 3.8.0+ Format nested fieldsets.
128 128
         if ( $this->hasFieldDefinitionsInContent( $_aFieldset ) ) {
129
-            foreach( $_aFieldset[ 'content' ] as &$_aNestedFieldset ) {
129
+            foreach ( $_aFieldset[ 'content' ] as &$_aNestedFieldset ) {
130 130
                 // The inline-mixed type has a string element.
131 131
                 if ( is_scalar( $_aNestedFieldset ) ) {
132 132
                     continue;
Please login to merge, or discard this patch.
development/factory/_common/_abstract/AdminPageFramework_Factory_Model.php 3 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -203,6 +203,7 @@  discard block
 block discarded – undo
203 203
          * Constructs a WordPress filter hook name.
204 204
          * @internal
205 205
          * @since       3.8.4
206
+         * @param string $sPrefix
206 207
          * @return      string
207 208
          */
208 209
         private function _getHookNameByFieldsetAndPrefix( $sPrefix, $aFieldset ) {
@@ -339,8 +340,6 @@  discard block
 block discarded – undo
339 340
      * @since       3.7.0      Changed back the visibility scope to protected as there is the `getFieldErrors()` public method.
340 341
      * @access      protected
341 342
      * @internal
342
-     * @param       string      $sID        deprecated
343
-     * @param       boolean     $bDelete    whether or not the transient should be deleted after retrieving it. 
344 343
      * @return      array
345 344
      * @deprecated  3.7.0      Use `getFieldErrors()` instead. Kept for backward compatibility.
346 345
      */
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
      * @since       3.7.0
94 94
      * @return      array       The modified section-sets definition array.
95 95
      */    
96
-    public function _replyToModifySectionsets( $aSectionsets ) {    
96
+    public function _replyToModifySectionsets( $aSectionsets ) {
97 97
         
98 98
         return $this->oUtil->addAndApplyFilter( 
99 99
             $this,  // caller factory object
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
          * An alias of `_setLastInputs()`.
365 365
          * @deprecated      3.7.0
366 366
          */
367
-        public function _setLastInput( $aLastInputs )  {
367
+        public function _setLastInput( $aLastInputs ) {
368 368
             return $this->setLastInputs( $aLastInputs );
369 369
         }    
370 370
 
Please login to merge, or discard this patch.
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
         
32 32
         add_filter(
33 33
             // 'field_types_admin_page_framework',
34
-            'field_types_' . $oProp->sClassName,
34
+            'field_types_'.$oProp->sClassName,
35 35
             array( $this, '_replyToFilterFieldTypeDefinitions' )
36 36
         );
37 37
         
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             'title'      => null,
54 54
             'help_aside' => null,
55 55
         );
56
-        if ( ! $aFieldset[ 'help' ] ) {
56
+        if ( !$aFieldset[ 'help' ] ) {
57 57
             return;
58 58
         }
59 59
         $this->oHelpPane->_addHelpTextForFormFields( 
@@ -73,9 +73,9 @@  discard block
 block discarded – undo
73 73
     public function _replyToFilterFieldTypeDefinitions( $aFieldTypeDefinitions ) {
74 74
         
75 75
         // Not triggering `__call()` as the filter is fired manually in the form class.
76
-        if ( method_exists( $this, 'field_types_' . $this->oProp->sClassName ) ) {
76
+        if ( method_exists( $this, 'field_types_'.$this->oProp->sClassName ) ) {
77 77
             return call_user_func_array(
78
-                array( $this, 'field_types_' . $this->oProp->sClassName ),
78
+                array( $this, 'field_types_'.$this->oProp->sClassName ),
79 79
                 array( $aFieldTypeDefinitions )
80 80
             );
81 81
         }
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
     public function _replyToModifySectionsets( $aSectionsets ) {    
97 97
         
98 98
         return $this->oUtil->addAndApplyFilter( 
99
-            $this,  // caller factory object
99
+            $this, // caller factory object
100 100
             "sections_{$this->oProp->sClassName}", 
101 101
             $aSectionsets
102 102
         );
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
     public function _replyToModifyFieldsets( $aFieldsets, $aSectionsets ) {
117 117
 
118 118
         // Apply filters to added field-sets
119
-        foreach( $aFieldsets as $_sSectionPath => $_aFields ) {
119
+        foreach ( $aFieldsets as $_sSectionPath => $_aFields ) {
120 120
             $_aSectionPath  = explode( '|', $_sSectionPath );
121 121
             $_sFilterSuffix = implode( '_', $_aSectionPath );
122 122
             $aFieldsets[ $_sSectionPath ] = $this->oUtil->addAndApplyFilter(
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                 $_aFields
126 126
             ); 
127 127
         }
128
-        $aFieldsets =  $this->oUtil->addAndApplyFilter( 
128
+        $aFieldsets = $this->oUtil->addAndApplyFilter( 
129 129
             $this,
130 130
             "fields_{$this->oProp->sClassName}",
131 131
             $aFieldsets
@@ -195,14 +195,14 @@  discard block
 block discarded – undo
195 195
          */
196 196
         private function _getHookNameByFieldsetAndPrefix( $sPrefix, $aFieldset ) {
197 197
             
198
-            $_sFieldPart    = '_' . implode( '_', $aFieldset[ '_field_path_array' ] );
198
+            $_sFieldPart    = '_'.implode( '_', $aFieldset[ '_field_path_array' ] );
199 199
             $_sSectionPart  = implode( '_', $aFieldset[ '_section_path_array' ] );
200 200
             $_sSectionPart  = $this->oUtil->getAOrB(
201 201
                 '_default' === $_sSectionPart,
202 202
                 '',
203
-                '_' . $_sSectionPart
203
+                '_'.$_sSectionPart
204 204
             );
205
-            return $sPrefix . $this->oProp->sClassName . $_sSectionPart . $_sFieldPart;
205
+            return $sPrefix.$this->oProp->sClassName.$_sSectionPart.$_sFieldPart;
206 206
             
207 207
         }
208 208
                
@@ -272,9 +272,9 @@  discard block
 block discarded – undo
272 272
     public function _replyToGetSavedFormData() {
273 273
         
274 274
         // Must update the property with the filtered value.
275
-        $this->oProp->aOptions =  $this->oUtil->addAndApplyFilter(
275
+        $this->oProp->aOptions = $this->oUtil->addAndApplyFilter(
276 276
             $this, // the caller factory object
277
-            'options_' . $this->oProp->sClassName,
277
+            'options_'.$this->oProp->sClassName,
278 278
             $this->oProp->aOptions      // subject value to be filtered
279 279
         );
280 280
         return $this->oProp->aOptions;
@@ -364,7 +364,7 @@  discard block
 block discarded – undo
364 364
          * An alias of `_setLastInputs()`.
365 365
          * @deprecated      3.7.0
366 366
          */
367
-        public function _setLastInput( $aLastInputs )  {
367
+        public function _setLastInput( $aLastInputs ) {
368 368
             return $this->setLastInputs( $aLastInputs );
369 369
         }    
370 370
 
Please login to merge, or discard this patch.
factory/_common/form/_view/AdminPageFramework_Form_View___ToolTip.php 2 patches
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,6 @@  discard block
 block discarded – undo
42 42
      * Sets up properties.
43 43
      * @since       3.6.0
44 44
      * @since       3.7.0           Changed the parameter structure.
45
-     * @param       array|string    $asArguments        The content output or the tooltip argument array.
46
-     * @param       string          $sTitleElementID    Not used at the moment.
47 45
      */
48 46
     public function __construct( /* $aArguments, $sTitleElementID */ ) {
49 47
 
@@ -170,6 +168,7 @@  discard block
 block discarded – undo
170 168
 
171 169
     /**
172 170
      * Generates HTML attributes of the specified element.
171
+     * @param string $sElementKey
173 172
      * @return      string
174 173
      * @since       3.8.5
175 174
      */
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     /**
21 21
      * Stores the default argument values.
22 22
      */
23
-    public $aArguments      = array(
23
+    public $aArguments = array(
24 24
         'attributes'    => array(
25 25
             'container'   => array(),
26 26
             'title'       => array(),
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
             'description' => array(),
29 29
             'icon'        => array(),
30 30
         ),
31
-        'icon'          => null,    // the icon output to override
32
-        'dash-icon'     => 'dashicons-editor-help',   // the dash-icon class selector for the icon
33
-        'icon_alt_text' => '[?]',   // [3.8.5+] alternative text when icon is not available. For WP v3.7.x or below.
31
+        'icon'          => null, // the icon output to override
32
+        'dash-icon'     => 'dashicons-editor-help', // the dash-icon class selector for the icon
33
+        'icon_alt_text' => '[?]', // [3.8.5+] alternative text when icon is not available. For WP v3.7.x or below.
34 34
         'title'         => null,
35
-        'content'       => null,    // will be assigned in the constructor
35
+        'content'       => null, // will be assigned in the constructor
36 36
     );
37 37
 
38 38
     public $sTitleElementID;
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
                 if ( is_string( $asContent ) ) {
90 90
                     return true;
91 91
                 }
92
-                if ( is_array( $asContent ) && ! $this->isAssociative( $asContent ) ) {
92
+                if ( is_array( $asContent ) && !$this->isAssociative( $asContent ) ) {
93 93
                     return true;
94 94
                 }
95 95
                 return false;
@@ -103,12 +103,12 @@  discard block
 block discarded – undo
103 103
      * @return      string      The output.
104 104
      */
105 105
     public function get() {
106
-        if ( ! $this->aArguments[ 'content' ] ) {
106
+        if ( !$this->aArguments[ 'content' ] ) {
107 107
             return '';
108 108
         }
109
-        return "<a " . $this->_getElementAttributes( 'container', 'admin-page-framework-form-tooltip' ) . ">"
109
+        return "<a ".$this->_getElementAttributes( 'container', 'admin-page-framework-form-tooltip' ).">"
110 110
                 . $this->_getTipLinkIcon()
111
-                . "<span " . $this->_getElementAttributes( 'content', 'admin-page-framework-form-tooltip-content' ) . ">"
111
+                . "<span ".$this->_getElementAttributes( 'content', 'admin-page-framework-form-tooltip-content' ).">"
112 112
                     . $this->_getTipTitle()
113 113
                     . $this->_getDescriptions()
114 114
                 . "</span>"
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                 return $this->aArguments[ 'icon' ];
127 127
             }
128 128
             if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '>=' ) ) {
129
-                return "<span " . $this->_getElementAttributes(
129
+                return "<span ".$this->_getElementAttributes(
130 130
                         'icon',
131 131
                         array(
132 132
                             'dashicons',
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
          */
145 145
         private function _getTipTitle() {
146 146
             if ( isset( $this->aArguments[ 'title' ] ) ) {
147
-                return "<span " . $this->_getElementAttributes( 'title', 'admin-page-framework-form-tooltip-title' ) . ">"
147
+                return "<span ".$this->_getElementAttributes( 'title', 'admin-page-framework-form-tooltip-title' ).">"
148 148
                     . $this->aArguments[ 'title' ]
149 149
                     . "</span>";
150 150
             }
@@ -156,9 +156,9 @@  discard block
 block discarded – undo
156 156
          */
157 157
         private function _getDescriptions() {
158 158
             if ( isset( $this->aArguments[ 'content' ] ) ) {
159
-                return "<span " . $this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ) . ">"
159
+                return "<span ".$this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ).">"
160 160
                         . implode(
161
-                            "</span><span " . $this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ) . ">",
161
+                            "</span><span ".$this->_getElementAttributes( 'description', 'admin-page-framework-form-tooltip-description' ).">",
162 162
                             $this->getAsArray( $this->aArguments[ 'content' ] )
163 163
                         )
164 164
                     . "</span>"
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
         $_aContainerAttributes = $this->getElementAsArray(
178 178
             $this->aArguments,
179 179
             array( 'attributes', $sElementKey )
180
-        ) + array( 'class' => '' ) ;
180
+        ) + array( 'class' => '' );
181 181
         $_aContainerAttributes[ 'class' ] = $this->getClassAttribute(
182 182
             $_aContainerAttributes[ 'class' ],
183 183
             $asClassSelectors
Please login to merge, or discard this patch.