Completed
Branch dev (71673f)
by
unknown
05:17
created
form/_view/sectionset/AdminPageFramework_Form_View___Sectionsets.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,6 +165,7 @@  discard block
 block discarded – undo
165 165
     }
166 166
         /**
167 167
          * @since       3.7.0
168
+         * @param string $_sOutput
168 169
          * @return      string
169 170
          */
170 171
         private function _getSpinnerOutput( $_sOutput ) {
@@ -299,7 +300,7 @@  discard block
 block discarded – undo
299 300
              * @param       array       $_aOutputs      Holds output elements - contents, section tab list, count of subsections.
300 301
              * @param       string      $_sSectionsID   The container id of sections.
301 302
              * @param       array       $_aSection
302
-             * @param       array       $_aFieldsInSections     A field-sets array already divided by section tab.
303
+             * @param       array       $aFieldsInSections     A field-sets array already divided by section tab.
303 304
              * @return      array       The updated sections table output array.
304 305
              */
305 306
             private function _getSectionsetTable( $_aOutputs, $_sSectionsID, array $_aSection, array $aFieldsInSections ) {
@@ -354,6 +355,7 @@  discard block
 block discarded – undo
354 355
                  * Returns the output of sub-sections for repeatable and sortable sections.
355 356
                  * 
356 357
                  * @since       3.7.0
358
+                 * @param string $_sSectionsID
357 359
                  * @return      array
358 360
                  */
359 361
                 private function _getSubSections( $_aOutputs, $_sSectionsID, $_aSection, $_aSubSections ) {
@@ -500,6 +502,7 @@  discard block
 block discarded – undo
500 502
              * @since       3.5.3
501 503
              * @since       3.6.0       Removed the `$sSectionID` parameter. Added the `$aSectionset` parameter.
502 504
              * @since       3.7.0       Moved from `AdminPageFramework_FormPart_Table`.
505
+             * @param string $sSectionsID
503 506
              * @return      string      The formatted sections table HTML output.
504 507
              */
505 508
             private function _getFormattedSectionsTablesOutput( array $aOutputs, $aSectionset, $sSectionsID, array $aCollapsible, $sSectionTabSlug ) {
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Controller_Menu.php 4 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -74,6 +74,8 @@  discard block
 block discarded – undo
74 74
      *  <li>a base64-encoded SVG using a data URI, which will be colored to match the color scheme. This should begin with 'data:image/svg+xml;base64,'.</li>
75 75
      * </ul>
76 76
      * @param       string      (optional) the position number that is passed to the <var>$position</var> parameter of the <a href="http://codex.wordpress.org/Function_Reference/add_menu_page">add_menu_page()</a> function.
77
+     * @param string $sIcon16x16
78
+     * @param integer $iMenuPosition
77 79
      * @return      void
78 80
      */
79 81
     public function setRootMenuPage( $sRootMenuLabel, $sIcon16x16=null, $iMenuPosition=null ) {
@@ -96,6 +98,7 @@  discard block
 block discarded – undo
96 98
          * 
97 99
          * @since       2.0.0
98 100
          * @internal
101
+         * @param string $sMenuLabel
99 102
          * @return      void|string     Returns the associated slug string, if true.
100 103
          */ 
101 104
         private function _isBuiltInMenuItem( $sMenuLabel ) {
@@ -160,9 +163,6 @@  discard block
 block discarded – undo
160 163
      * @since        3.0.0       Changed the scope to public.
161 164
      * @remark       The sub menu page slug should be unique because add_submenu_page() can add one callback per page slug.
162 165
      * @remark       Accepts variadic parameters; the number of accepted parameters are not limited to three.
163
-     * @param        array       $aSubMenuItem1      a first sub-menu array. A sub-menu array can be a link or a page. For the specifications of the array structures and its arguments, refer to the parameter section of the `addSubMenuItem()` method.
164
-     * @param        array       $aSubMenuItem2      (optional) a second sub-menu array.
165
-     * @param        array       $_and_more          (optional) a third and add items as many as necessary with next parameters.
166 166
      * @access       public
167 167
      * @return       void
168 168
      */     
Please login to merge, or discard this patch.
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -250,20 +250,20 @@
 block discarded – undo
250 250
     }
251 251
 
252 252
     /**
253
-    * Adds the given link into the menu on the left sidebar of the administration panel.
254
-    * 
255
-    * @since        2.0.0
256
-    * @since        3.0.0       Changed the scope to public from protected.
257
-    * @since        3.5.0       Changed the scope to public as it was still protected.
258
-    * @param        string      the menu title.
259
-    * @param        string      the URL linked to the menu.
260
-    * @param        string      (optional) the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">access level</a>.
261
-    * @param        string      (optional) the order number. The larger it is, the lower the position it gets.
262
-    * @param        string      (optional) if set to false, the menu title will not be listed in the tab navigation menu at the top of the page.
263
-    * @access       public
264
-    * @return       void
265
-    * @internal
266
-    */    
253
+     * Adds the given link into the menu on the left sidebar of the administration panel.
254
+     * 
255
+     * @since        2.0.0
256
+     * @since        3.0.0       Changed the scope to public from protected.
257
+     * @since        3.5.0       Changed the scope to public as it was still protected.
258
+     * @param        string      the menu title.
259
+     * @param        string      the URL linked to the menu.
260
+     * @param        string      (optional) the <a href="http://codex.wordpress.org/Roles_and_Capabilities" target="_blank">access level</a>.
261
+     * @param        string      (optional) the order number. The larger it is, the lower the position it gets.
262
+     * @param        string      (optional) if set to false, the menu title will not be listed in the tab navigation menu at the top of the page.
263
+     * @access       public
264
+     * @return       void
265
+     * @internal
266
+     */    
267 267
     public function addSubMenuLink( array $aSubMenuLink ) {
268 268
         
269 269
         // If required keys are not set, return.
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
      * @param       string      (optional) the position number that is passed to the <var>$position</var> parameter of the <a href="http://codex.wordpress.org/Function_Reference/add_menu_page">add_menu_page()</a> function.
77 77
      * @return      void
78 78
      */
79
-    public function setRootMenuPage( $sRootMenuLabel, $sIcon16x16=null, $iMenuPosition=null ) {
79
+    public function setRootMenuPage( $sRootMenuLabel, $sIcon16x16 = null, $iMenuPosition = null ) {
80 80
 
81 81
         $sRootMenuLabel = trim( $sRootMenuLabel );
82 82
         $_sSlug         = $this->_isBuiltInMenuItem( $sRootMenuLabel ); // if true, this method returns the slug
@@ -267,16 +267,16 @@  discard block
 block discarded – undo
267 267
     public function addSubMenuLink( array $aSubMenuLink ) {
268 268
         
269 269
         // If required keys are not set, return.
270
-        if ( ! isset( $aSubMenuLink[ 'href' ], $aSubMenuLink[ 'title' ] ) ) { 
270
+        if ( !isset( $aSubMenuLink[ 'href' ], $aSubMenuLink[ 'title' ] ) ) { 
271 271
             return; 
272 272
         }
273 273
         
274 274
         // If the set URL is not valid, return.
275
-        if ( ! filter_var( $aSubMenuLink[ 'href' ], FILTER_VALIDATE_URL ) ) { 
275
+        if ( !filter_var( $aSubMenuLink[ 'href' ], FILTER_VALIDATE_URL ) ) { 
276 276
             return; 
277 277
         }
278 278
 
279
-        $_oFormatter   = new AdminPageFramework_Format_SubMenuLink( 
279
+        $_oFormatter = new AdminPageFramework_Format_SubMenuLink( 
280 280
             $aSubMenuLink, 
281 281
             $this,
282 282
             count( $this->oProp->aPages ) + 1
@@ -334,11 +334,11 @@  discard block
 block discarded – undo
334 334
      */ 
335 335
     public function addSubMenuPage( array $aSubMenuPage ) {
336 336
 
337
-        if ( ! isset( $aSubMenuPage[ 'page_slug' ] ) ) { 
337
+        if ( !isset( $aSubMenuPage[ 'page_slug' ] ) ) { 
338 338
             return; 
339 339
         }
340 340
             
341
-        $_oFormatter   = new AdminPageFramework_Format_SubMenuPage( 
341
+        $_oFormatter = new AdminPageFramework_Format_SubMenuPage( 
342 342
             $aSubMenuPage,
343 343
             $this,
344 344
             count( $this->oProp->aPages ) + 1
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -267,12 +267,12 @@  discard block
 block discarded – undo
267 267
     public function addSubMenuLink( array $aSubMenuLink ) {
268 268
         
269 269
         // If required keys are not set, return.
270
-        if ( ! isset( $aSubMenuLink[ 'href' ], $aSubMenuLink[ 'title' ] ) ) { 
270
+        if ( ! isset( $aSubMenuLink[ 'href' ], $aSubMenuLink[ 'title' ] ) ) {
271 271
             return; 
272 272
         }
273 273
         
274 274
         // If the set URL is not valid, return.
275
-        if ( ! filter_var( $aSubMenuLink[ 'href' ], FILTER_VALIDATE_URL ) ) { 
275
+        if ( ! filter_var( $aSubMenuLink[ 'href' ], FILTER_VALIDATE_URL ) ) {
276 276
             return; 
277 277
         }
278 278
 
@@ -334,7 +334,7 @@  discard block
 block discarded – undo
334 334
      */ 
335 335
     public function addSubMenuPage( array $aSubMenuPage ) {
336 336
 
337
-        if ( ! isset( $aSubMenuPage[ 'page_slug' ] ) ) { 
337
+        if ( ! isset( $aSubMenuPage[ 'page_slug' ] ) ) {
338 338
             return; 
339 339
         }
340 340
             
Please login to merge, or discard this patch.
development/factory/admin_page/AdminPageFramework_Controller_Page.php 1 patch
Doc Comments   +4 added lines, -37 removed lines patch added patch discarded remove patch
@@ -52,43 +52,6 @@  discard block
 block discarded – undo
52 52
      * @since       2.0.0
53 53
      * @since       3.0.0     Changed the scope to public. Added page slug target support. 
54 54
      * @since       3.3.1       Moved from `AdminPageFramework_Page`.
55
-     * @param       array     $aTab1 The in-page tab array.
56
-     * <h4>In-Page Tab Array</h4>
57
-     * <ul>
58
-     *     <li>**page_slug** - (string) the page slug that the tab belongs to.</li>
59
-     *     <li>**tab_slug** -  (string) the tab slug. Non-alphabetical characters should not be used including dots(.) and hyphens(-).</li>
60
-     *     <li>**title** - (string) the title of the tab.</li>
61
-     *     <li>**order** - (optional, integer) the order number of the tab. The lager the number is, the lower the position it is placed in the menu.</li>
62
-     *     <li>**show_in_page_tab** - (optional, boolean) default: `true`. If this is set to `false`, the tab title will not be displayed in the tab navigation menu; however, it is still accessible from the direct URL.</li>
63
-     *     <li>**parent_tab_slug** - (optional, string) this needs to be set if the above `show_in_page_tab` argument is `false` so that the parent tab will be emphasized as active when the hidden page is accessed.</li>
64
-     *     <li>**url** - [3.5.0+] (optional, string) If this is set, the link url of the navigation tab will be this url. Use this to create link only tab.</li>
65
-     *     <li>**capability** - [3.6.0+] (optional, string) The capability level.</li>
66
-     *     <li>**if** - [3.6.0+] (optional, boolean) Whether the tab should be displayed or not.</li>
67
-     *     <li>style - [3.6.3+] (optional) (string|array) The path or url of a stylesheet which gets loaded in the head tag. Or inline CSS rules.
68
-     * When custom arguments need to be set such as whether it should be inserted in the footer, set an array holding the following arguments.
69
-     *          <ul>
70
-     *              <li>src - (required, string) the source url or path.</li>    
71
-     *              <li>handle_id - (optional, string) The handle ID of the stylesheet.</li>    
72
-     *              <li>dependencies - (optional, array) The dependency array.</li>    
73
-     *              <li>version - (optional, string) The stylesheet version number.</li>    
74
-     *              <li>media - (optional, string) the description of the field which is inserted into the after the input field tag.</li>    
75
-     *          </ul>
76
-     *     </li>
77
-     *     <li>script - [3.6.3+] (optional) (string|array) The path or url of a JavaScript script which gets loaded in the head tag. Or an inline JavaScript script.
78
-     * When custom arguments need to be set such as whether it should be inserted in the footer, set an array holding the following arguments.
79
-     *          <ul>
80
-     *              <li>src - (required, string) the source url or path.</li>    
81
-     *              <li>handle_id - (optional, string) The handle ID of the stylesheet.</li>    
82
-     *              <li>dependencies - (optional, array) The dependency array.</li>    
83
-     *              <li>version - (optional, string) The stylesheet version number.</li>    
84
-     *              <li>translation - (optional, array) an array holding translation key-value pairs.</li>    
85
-     *          </ul>
86
-     *     </li>
87
-     *     <li>show_debug_info - [3.8.8+] (optional, boolean) Whether to show debug information. If `WP_DEBUG` is false, the debug output will not be displayed. Default: `true`.</li>
88
-     * </ul>
89
-     * @param       array       $aTab2      Another in-page tab array.
90
-     * @param       array       $_and_more  (optional) Add in-page tab arrays as many as necessary to the next parameters.
91
-     * @param       string      $sPageSlug  (optional) If the passed parameter item is a string, it will be stored as the target page slug so that it will be applied to the next passed tab arrays as the page_slug element.
92 55
      * @remark      Accepts variadic parameters; the number of accepted parameters are not limited to three.
93 56
      * @remark      In-page tabs are different from page-heading tabs which is automatically added with page titles.  
94 57
      * @return      void
@@ -278,6 +241,10 @@  discard block
 block discarded – undo
278 241
         /**
279 242
          * Sets a page property.
280 243
          * @since       3.6.0
244
+         * @param string $sPropertyName
245
+         * @param string $sPropertyKey
246
+         * @param boolean|string $mValue
247
+         * @param string $sPageSlug
281 248
          * @return      void
282 249
          */
283 250
         private function _setPageProperty( $sPropertyName, $sPropertyKey, $mValue, $sPageSlug ) {
Please login to merge, or discard this patch.
admin-page-framework-loader.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Registry_Base {
18 18
 
19
-    const VERSION        = '3.8.8b02';    // <--- DON'T FORGET TO CHANGE THIS AS WELL!!
19
+    const VERSION        = '3.8.8b02'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!!
20 20
     const NAME           = 'Admin Page Framework - Loader'; // the name is not 'Admin Page Framework' because warning messages gets confusing.
21
-    const SHORTNAME      = 'Admin Page Framework';  // used for a menu title etc.
21
+    const SHORTNAME      = 'Admin Page Framework'; // used for a menu title etc.
22 22
     const DESCRIPTION    = 'Loads Admin Page Framework which facilitates WordPress plugin and theme development.';
23 23
     const URI            = 'http://admin-page-framework.michaeluno.jp/';
24 24
     const AUTHOR         = 'miunosoft (Michael Uno)';
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
      * @remark      This is also accessed from `uninstall.php` so do not remove.
56 56
      * @remark      Do not exceed 8 characters as a transient name allows 45 characters or less ( 40 for site transients ) so that md5 (32 characters) can be added.
57 57
      */
58
-    const TRANSIENT_PREFIX         = 'APFL_';
58
+    const TRANSIENT_PREFIX = 'APFL_';
59 59
 
60 60
     /**
61 61
      * The hook slug used for the prefix of action and filter hook names.
62 62
      * 
63 63
      * @remark      The ending underscore is not necessary.
64 64
      */
65
-    const HOOK_SLUG                = 'admin_page_framework_loader';
65
+    const HOOK_SLUG = 'admin_page_framework_loader';
66 66
 
67 67
     /**
68 68
      * The text domain slug and its path.
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     static public $aAdminPages = array(
118 118
         // key => 'page slug'
119
-        'about'     => 'apfl_about',        // the welcome page
119
+        'about'     => 'apfl_about', // the welcome page
120 120
         'addon'     => 'apfl_addons',
121 121
         'tool'      => 'apfl_tools',
122 122
         'help'      => 'apfl_contact',
@@ -154,12 +154,12 @@  discard block
 block discarded – undo
154 154
      * @since       3.5.0
155 155
      * @return      string
156 156
      */
157
-    public static function getPluginURL( $sRelativePath='' ) {
157
+    public static function getPluginURL( $sRelativePath = '' ) {
158 158
         if ( isset( self::$_sPluginURLCache ) ) {
159
-            return self::$_sPluginURLCache . $sRelativePath;
159
+            return self::$_sPluginURLCache.$sRelativePath;
160 160
         }
161 161
         self::$_sPluginURLCache = trailingslashit( plugins_url( '', self::$sFilePath ) );
162
-        return self::$_sPluginURLCache . $sRelativePath;
162
+        return self::$_sPluginURLCache.$sRelativePath;
163 163
     }
164 164
         /**
165 165
          * @since       3.7.9
@@ -189,13 +189,13 @@  discard block
 block discarded – undo
189 189
      * @since       3.5.0
190 190
      * @return      void
191 191
      */ 
192
-    static public function setAdminNotice( $sMessage, $sClassAttribute='error' ) {
193
-        if ( ! is_admin() ) {  
192
+    static public function setAdminNotice( $sMessage, $sClassAttribute = 'error' ) {
193
+        if ( !is_admin() ) {  
194 194
             return; 
195 195
         }
196
-        self::$_aAdminNotices[] = array(
196
+        self::$_aAdminNotices[ ] = array(
197 197
             'message'           => $sMessage,
198
-            'class_attribute'   => trim( $sClassAttribute ) . ' notice is-dismissible',
198
+            'class_attribute'   => trim( $sClassAttribute ).' notice is-dismissible',
199 199
         );
200 200
         add_action( 'admin_notices', array( __CLASS__, '_replyToSetAdminNotice' ) );
201 201
     }
@@ -205,12 +205,12 @@  discard block
 block discarded – undo
205 205
          * @return      void
206 206
          */
207 207
         static public function _replyToSetAdminNotice() {
208
-            foreach( self::$_aAdminNotices as $_aAdminNotice ) {
209
-                echo "<div class='" . esc_attr( $_aAdminNotice['class_attribute'] ) . " notice is-dismissible'>"
208
+            foreach ( self::$_aAdminNotices as $_aAdminNotice ) {
209
+                echo "<div class='".esc_attr( $_aAdminNotice[ 'class_attribute' ] )." notice is-dismissible'>"
210 210
                         ."<p>"
211 211
                             . sprintf(
212
-                                '<strong>%1$s</strong>: ' . $_aAdminNotice['message'],
213
-                                self::NAME . ' ' . self::VERSION
212
+                                '<strong>%1$s</strong>: '.$_aAdminNotice[ 'message' ],
213
+                                self::NAME.' '.self::VERSION
214 214
                             )
215 215
                         . "</p>"
216 216
                     . "</div>";
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 AdminPageFrameworkLoader_Registry::setUp( __FILE__ );
223 223
 
224 224
 // Initial checks. - Do no load if accessed directly, not exiting because the 'uninstall.php' and inclusion list generator will load this file.
225
-if ( ! defined( 'ABSPATH' ) ) {
225
+if ( !defined( 'ABSPATH' ) ) {
226 226
     return;
227 227
 }
228 228
 if ( defined( 'DOING_UNINSTALL' ) ) {
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
 
235 235
     $_bFrameworkLoaded = class_exists( 'AdminPageFramework_Registry', false );
236 236
     if (
237
-        ! $_bFrameworkLoaded
238
-        || ! defined( 'AdminPageFramework_Registry::VERSION' ) // backward compatibility
237
+        !$_bFrameworkLoaded
238
+        || !defined( 'AdminPageFramework_Registry::VERSION' ) // backward compatibility
239 239
         || version_compare( AdminPageFramework_Registry::VERSION, AdminPageFrameworkLoader_Registry::VERSION, '<' )
240 240
     ) {
241 241
         AdminPageFrameworkLoader_Registry::setAdminNotice(
@@ -253,18 +253,18 @@  discard block
 block discarded – undo
253 253
 add_action( 'admin_init', 'AdminPageFrameworkLoader_Warning' );
254 254
 
255 255
 // Include the library file - the development version will be available if you cloned the GitHub repository.
256
-$_sDevelopmentVersionPath = AdminPageFrameworkLoader_Registry::$sDirPath . '/development/admin-page-framework.php';
256
+$_sDevelopmentVersionPath = AdminPageFrameworkLoader_Registry::$sDirPath.'/development/admin-page-framework.php';
257 257
 $_bDebugMode              = defined( 'WP_DEBUG' ) && WP_DEBUG;
258 258
 $_bLoadDevelopmentVersion = $_bDebugMode && file_exists( $_sDevelopmentVersionPath );
259 259
 include(
260 260
     $_bLoadDevelopmentVersion
261 261
         ? $_sDevelopmentVersionPath
262
-        : AdminPageFrameworkLoader_Registry::$sDirPath . '/library/apf/admin-page-framework.php'
262
+        : AdminPageFrameworkLoader_Registry::$sDirPath.'/library/apf/admin-page-framework.php'
263 263
 );
264 264
 
265 265
 // Include the framework loader plugin components.
266 266
 include( AdminPageFramework_Registry::$aClassFiles[ 'AdminPageFramework_PluginBootstrap' ] );
267
-include( AdminPageFrameworkLoader_Registry::$sDirPath . '/include/class/AdminPageFrameworkLoader_Bootstrap.php' );
267
+include( AdminPageFrameworkLoader_Registry::$sDirPath.'/include/class/AdminPageFrameworkLoader_Bootstrap.php' );
268 268
 new AdminPageFrameworkLoader_Bootstrap(
269 269
     AdminPageFrameworkLoader_Registry::$sFilePath,
270 270
     AdminPageFrameworkLoader_Registry::HOOK_SLUG    // hook prefix
Please login to merge, or discard this patch.
development/admin-page-framework.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  * @package     AdminPageFramework
11 11
  */
12 12
 
13
-if ( ! class_exists( 'AdminPageFramework_Registry', false ) ) :
13
+if ( !class_exists( 'AdminPageFramework_Registry', false ) ) :
14 14
 /**
15 15
  * Facilitates WordPress plugin and theme development.
16 16
  *
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 final class AdminPageFramework_Registry extends AdminPageFramework_Registry_Base {
62 62
 
63 63
     const TEXT_DOMAIN        = 'admin-page-framework';
64
-    const TEXT_DOMAIN_PATH   = '/language';  // not used at the moment
64
+    const TEXT_DOMAIN_PATH   = '/language'; // not used at the moment
65 65
 
66 66
     /**
67 67
      * Indicates whether the framework is loaded from the minified version or not.
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
      * Sets up static properties.
104 104
      * @return      void
105 105
      */
106
-    static public function setUp( $sFilePath=__FILE__ ) {
106
+    static public function setUp( $sFilePath = __FILE__ ) {
107 107
 
108 108
         self::$sFilePath                = $sFilePath;
109 109
         self::$sDirPath                 = dirname( self::$sFilePath );
110
-        self::$sIncludeClassListPath    = self::$sDirPath . '/admin-page-framework-include-class-list.php';
110
+        self::$sIncludeClassListPath    = self::$sDirPath.'/admin-page-framework-include-class-list.php';
111 111
         self::$aClassFiles              = self::_getClassFilePathList( self::$sIncludeClassListPath );
112 112
         self::$sAutoLoaderPath          = isset( self::$aClassFiles[ 'AdminPageFramework_RegisterClasses' ] )
113 113
             ? self::$aClassFiles[ 'AdminPageFramework_RegisterClasses' ]
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
          * @return      array
123 123
          */
124 124
         static private function _getClassFilePathList( $sInclusionClassListPath ) {
125
-            $aClassFiles = array();    // this will be updated if the inclusion below is successful.
125
+            $aClassFiles = array(); // this will be updated if the inclusion below is successful.
126 126
             include( $sInclusionClassListPath );
127 127
             return $aClassFiles;
128 128
         }
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
      */
136 136
     static public function getVersion() {
137 137
 
138
-        if ( ! isset( self::$sAutoLoaderPath ) ) {
139
-            trigger_error( self::NAME . ': ' . ' : ' . sprintf( __( 'The method is called too early. Perform <code>%2$s</code> earlier.', 'admin-page-framework' ), __METHOD__, 'setUp()' ), E_USER_WARNING );
138
+        if ( !isset( self::$sAutoLoaderPath ) ) {
139
+            trigger_error( self::NAME.': '.' : '.sprintf( __( 'The method is called too early. Perform <code>%2$s</code> earlier.', 'admin-page-framework' ), __METHOD__, 'setUp()' ), E_USER_WARNING );
140 140
             return self::VERSION;
141 141
         }
142
-        $_aMinifiedVesionSuffix     = array(
142
+        $_aMinifiedVesionSuffix = array(
143 143
             0 => '',
144 144
             1 => '.min',
145 145
         );
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 }
169 169
 endif;
170 170
 
171
-if ( ! class_exists( 'AdminPageFramework_Bootstrap', false ) ) :
171
+if ( !class_exists( 'AdminPageFramework_Bootstrap', false ) ) :
172 172
 /**
173 173
  * Loads the Admin Page Framework library.
174 174
  *
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function __construct( $sLibraryPath ) {
191 191
 
192
-        if ( ! $this->_isLoadable() ) {
192
+        if ( !$this->_isLoadable() ) {
193 193
             return;
194 194
         }
195 195
 
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___SectionTitle.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,7 @@
 block discarded – undo
158 158
                                     . $this->getFrameworkNameVersion()
159 159
                                     . '  ('
160 160
                                         . $this->oMsg->get( 'debug_info_will_be_disabled' )
161
-                                      . ')'
161
+                                        . ')'
162 162
                                 . '</span>',
163 163
                             'attributes'    => array(
164 164
                                 'container' => array(
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class AdminPageFramework_Form_View___SectionTitle extends AdminPageFramework_Form_View___Section_Base {            
20 20
   
21
-    public $aArguments      = array(
21
+    public $aArguments = array(
22 22
         'title'         => null,
23 23
         'tag'           => null,
24 24
         'section_index' => null,
25 25
         
26 26
         'sectionset'    => array(),
27 27
     );
28
-    public $aFieldsets               = array();
28
+    public $aFieldsets = array();
29 29
     public $aSavedData              = array();
30 30
     public $aFieldErrors            = array();
31 31
     public $aFieldTypeDefinitions   = array();
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
          * @since       3.7.0      Moved from `AdminPageFramework_FormPart_SectionTitle`.
92 92
          * @return      string      The section title output. 
93 93
          */
94
-        protected function _getSectionTitle( $sTitle, $sTag, $aFieldsets, $iSectionIndex=null, $aFieldTypeDefinitions=array(), $aCollapsible=array() ) {
94
+        protected function _getSectionTitle( $sTitle, $sTag, $aFieldsets, $iSectionIndex = null, $aFieldTypeDefinitions = array(), $aCollapsible = array() ) {
95 95
 
96 96
             $_aSectionTitleFieldset = $this->_getSectionTitleField( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions );
97 97
             $_sFieldsInSectionTitle = $this->_getFieldsetsOutputInSectionTitleArea( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions );
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $_bHasOtherFields       = $_sFieldsInSectionTitle
102 102
                 ? ' has-fields'
103 103
                 : '';
104
-            $_sOutput               = $_sTitle . $_sFieldsInSectionTitle;
104
+            $_sOutput               = $_sTitle.$_sFieldsInSectionTitle;
105 105
             return $_sOutput
106 106
                 ? "<div class='section-title-container{$_bHasOtherFields}'>"
107 107
                     . $_sOutput 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                  * @return      string
131 131
                  */
132 132
                 private function _getToolTip( $_aSectionset ) {
133
-                    $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ]  ) . '_' . $this->aArguments[ 'section_index' ];
133
+                    $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ] ).'_'.$this->aArguments[ 'section_index' ];
134 134
                     $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
135 135
                         $_aSectionset[ 'tip' ],
136 136
                         $_sSectionTitleTagID
@@ -145,14 +145,14 @@  discard block
 block discarded – undo
145 145
                  */
146 146
                 private function _getDebugInfo( $aSectionset ) {
147 147
                                         
148
-                    if ( ! $aSectionset[ 'show_debug_info' ] ) {
148
+                    if ( !$aSectionset[ 'show_debug_info' ] ) {
149 149
                         return '';
150 150
                     }
151
-                    $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
151
+                    $_oToolTip = new AdminPageFramework_Form_View___ToolTip(
152 152
                         array(
153 153
                             'title'         => $this->oMsg->get( 'section_arguments' ),
154 154
                             'dash-icon'     => 'dashicons-info',
155
-                            'icon_alt_text' => '[' . $this->oMsg->get( 'debug' ) . ' ]',
155
+                            'icon_alt_text' => '['.$this->oMsg->get( 'debug' ).' ]',
156 156
                             'content'       => AdminPageFramework_Debug::get( $aSectionset )
157 157
                                 . '<span class="admin-page-framework-info">'
158 158
                                     . $this->getFrameworkNameVersion()
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                                 ),
167 167
                             )
168 168
                         ),
169
-                        $aSectionset[ '_section_path' ] . '_debug'
169
+                        $aSectionset[ '_section_path' ].'_debug'
170 170
                     );            
171 171
                     return $_oToolTip->get();                    
172 172
                     
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
             private function _getFieldsetsOutputInSectionTitleArea( array $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) {   
196 196
 
197 197
                 $_sOutput = '';
198
-                foreach( $this->_getFieldsetsInSectionTitleArea( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) as $_aFieldset ) {
199
-                    if ( empty( $_aFieldset ) )  {
198
+                foreach ( $this->_getFieldsetsInSectionTitleArea( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) as $_aFieldset ) {
199
+                    if ( empty( $_aFieldset ) ) {
200 200
                         continue;
201 201
                     }
202 202
                     $_sOutput .= $this->getFieldsetOutput( $_aFieldset );
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                 private function _getFieldsetsInSectionTitleArea( array $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) {
213 213
                     
214 214
                     $_aFieldsetsInSectionTitle = array();
215
-                    foreach( $aFieldsets as $_aFieldset ) {
215
+                    foreach ( $aFieldsets as $_aFieldset ) {
216 216
                         
217 217
                         if ( 'section_title' !== $_aFieldset[ 'placement' ] ) {
218 218
                             continue;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                             $iSectionIndex,
224 224
                             $aFieldTypeDefinitions
225 225
                         );         
226
-                        $_aFieldsetsInSectionTitle[] = $_oFieldsetOutputFormatter->get();
226
+                        $_aFieldsetsInSectionTitle[ ] = $_oFieldsetOutputFormatter->get();
227 227
                         
228 228
                     }
229 229
                     return $_aFieldsetsInSectionTitle;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                  */
243 243
                 private function _getSectionTitleField( array $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) {   
244 244
                 
245
-                    foreach( $aFieldsets as $_aFieldset ) {
245
+                    foreach ( $aFieldsets as $_aFieldset ) {
246 246
                         
247 247
                         if ( 'section_title' !== $_aFieldset[ 'type' ] ) {
248 248
                             continue;
Please login to merge, or discard this patch.
_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldTitle.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         
71 71
         $aField = $this->aFieldset;
72 72
         
73
-        if ( ! $aField[ 'show_title_column' ] ) {
73
+        if ( !$aField[ 'show_title_column' ] ) {
74 74
             return '';
75 75
         }          
76 76
             
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             'for'   => $_oInputTagIDGenerator->get(),
85 85
         );
86 86
         $_sOutput .= $aField[ 'title' ]
87
-            ? "<label " . $this->getAttributes( $_aLabelAttributes ) . "'>"
87
+            ? "<label ".$this->getAttributes( $_aLabelAttributes )."'>"
88 88
                     . "<a id='{$aField[ 'field_id' ]}'></a>"  // to allow the browser to link to the element.
89 89
                     . "<span title='" 
90 90
                             . esc_attr( 
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
          */
116 116
         private function _getFieldOutputsInFieldTitleAreaFromNestedFields( $aField ) {
117 117
             
118
-            if ( ! $this->hasNestedFields( $aField ) ) {
118
+            if ( !$this->hasNestedFields( $aField ) ) {
119 119
                 return '';
120 120
             }
121 121
             
122 122
             $_sOutput = '';
123
-            foreach( $aField[ 'content' ] as $_aNestedField ) {
123
+            foreach ( $aField[ 'content' ] as $_aNestedField ) {
124 124
                 
125 125
                 if ( 'field_title' !== $_aNestedField[ 'placement' ] ) {
126 126
                     continue;
@@ -128,13 +128,13 @@  discard block
 block discarded – undo
128 128
 
129 129
                 $_oFieldset = new AdminPageFramework_Form_View___Fieldset( 
130 130
                     $_aNestedField, 
131
-                    $this->aSavedData,    // passed by reference. @todo: examine why it needs to be passed by reference.
131
+                    $this->aSavedData, // passed by reference. @todo: examine why it needs to be passed by reference.
132 132
                     $this->aFieldErrors, 
133 133
                     $this->aFieldTypeDefinitions,
134 134
                     $this->oMsg,
135 135
                     $this->aCallbacks // field output element callables.
136 136
                 );
137
-                $_sOutput   .= $_oFieldset->get(); // field output                
137
+                $_sOutput .= $_oFieldset->get(); // field output                
138 138
 
139 139
             }
140 140
             return $_sOutput;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
          * @since       3.7.0
147 147
          */
148 148
         private function _getToolTip( $asTip, $sElementID ) {
149
-            $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
149
+            $_oToolTip = new AdminPageFramework_Form_View___ToolTip(
150 150
                 $asTip,
151 151
                 $sElementID
152 152
             );            
@@ -160,14 +160,14 @@  discard block
 block discarded – undo
160 160
          */
161 161
         private function _getDebugInfo( $aField ) {
162 162
             
163
-            if ( ! $this->_shouldShowDebugInfo( $aField ) ) {
163
+            if ( !$this->_shouldShowDebugInfo( $aField ) ) {
164 164
                 return '';
165 165
             }
166
-            $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
166
+            $_oToolTip = new AdminPageFramework_Form_View___ToolTip(
167 167
                 array(
168 168
                     'title'         => $this->oMsg->get( 'field_arguments' ),
169 169
                     'dash-icon'     => 'dashicons-info',
170
-                    'icon_alt_text' => '[' . $this->oMsg->get( 'debug' ) . ' ]',
170
+                    'icon_alt_text' => '['.$this->oMsg->get( 'debug' ).' ]',
171 171
                     'content'       => AdminPageFramework_Debug::get( $aField )
172 172
                         . '<span class="admin-page-framework-info">'
173 173
                             . $this->getFrameworkNameVersion()
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                         ),
182 182
                     )
183 183
                 ),
184
-                $aField[ 'field_id' ] . '_debug'
184
+                $aField[ 'field_id' ].'_debug'
185 185
             );            
186 186
             return $_oToolTip->get();                    
187 187
             
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
              */
193 193
             private function _shouldShowDebugInfo( $aField ) {
194 194
                 
195
-                if ( ! $aField[ 'show_debug_info' ] ) {
195
+                if ( !$aField[ 'show_debug_info' ] ) {
196 196
                     return false;
197 197
                 }
198 198
                 if ( strlen( $aField[ '_parent_field_path' ] ) ) {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
          */
209 209
         private function _getTitleColon( $aField ) {
210 210
             
211
-            if ( ! isset( $aField[ 'title' ] ) || '' === $aField[ 'title' ] ) {
211
+            if ( !isset( $aField[ 'title' ] ) || '' === $aField[ 'title' ] ) {
212 212
                 return '';
213 213
             }                    
214 214
             if ( 
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
                     $aField[ '_structure_type' ], 
217 217
                     array( 'widget', 'post_meta_box', 'page_meta_box' ) 
218 218
                 ) 
219
-            ){
220
-                return "<span class='title-colon'>:</span>" ;
219
+            ) {
220
+                return "<span class='title-colon'>:</span>";
221 221
             }                                                 
222 222
             
223 223
         }
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___FormatSectionsets.php 1 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.
form/_model/formatter/AdminPageFramework_Form_Model___Format_Fieldset.php 2 patches
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -29,38 +29,38 @@  discard block
 block discarded – undo
29 29
     static public $aStructure = array(
30 30
     
31 31
         // Required Keys
32
-        'field_id'                  => null,    // (string)
33
-        'section_id'                => null,    // (string)
32
+        'field_id'                  => null, // (string)
33
+        'section_id'                => null, // (string)
34 34
 
35 35
         // Optional Keys        
36
-        'type'                      => null,    // (string) (3.8.0+ Became okay to omit.)
37
-        'section_title'             => null,    // This will be assigned automatically in the formatting method.
38
-        'page_slug'                 => null,    // This will be assigned automatically in the formatting method.
39
-        'tab_slug'                  => null,    // This will be assigned automatically in the formatting method.
40
-        'option_key'                => null,    // This will be assigned automatically in the formatting method.
41
-        'class_name'                => null,    // Stores the instantiated class name. Used by the export field type. Also a third party custom field type uses it.
36
+        'type'                      => null, // (string) (3.8.0+ Became okay to omit.)
37
+        'section_title'             => null, // This will be assigned automatically in the formatting method.
38
+        'page_slug'                 => null, // This will be assigned automatically in the formatting method.
39
+        'tab_slug'                  => null, // This will be assigned automatically in the formatting method.
40
+        'option_key'                => null, // This will be assigned automatically in the formatting method.
41
+        'class_name'                => null, // Stores the instantiated class name. Used by the export field type. Also a third party custom field type uses it.
42 42
         'capability'                => null,        
43 43
         'title'                     => null,    
44 44
         'tip'                       => null,    
45 45
         'description'               => null,    
46
-        'error_message'             => null,    // error message for the field
46
+        'error_message'             => null, // error message for the field
47 47
         'before_label'              => null,    
48 48
         'after_label'               => null,    
49 49
         'if'                        => true,    
50
-        'order'                     => null,    // do not set the default number here for this key.     
50
+        'order'                     => null, // do not set the default number here for this key.     
51 51
         'default'                   => null,
52 52
         'value'                     => null,
53
-        'help'                      => null,    // 2.1.0
54
-        'help_aside'                => null,    // 2.1.0
55
-        'repeatable'                => null,    // 2.1.3
56
-        'sortable'                  => null,    // 2.1.3
57
-        'show_title_column'         => true,    // 3.0.0
58
-        'hidden'                    => null,    // 3.0.0
53
+        'help'                      => null, // 2.1.0
54
+        'help_aside'                => null, // 2.1.0
55
+        'repeatable'                => null, // 2.1.3
56
+        'sortable'                  => null, // 2.1.3
57
+        'show_title_column'         => true, // 3.0.0
58
+        'hidden'                    => null, // 3.0.0
59 59
         
60
-        'placement'                 => 'normal',    // 3.8.0 (string) accepts either 'section_title', 'field_title', or 'normal'
60
+        'placement'                 => 'normal', // 3.8.0 (string) accepts either 'section_title', 'field_title', or 'normal'
61 61
         
62 62
         // @todo    Examine why an array is not set but null here for the attributes argument.
63
-        'attributes'                => null,    // 3.0.0 - the array represents the attributes of input tag
63
+        'attributes'                => null, // 3.0.0 - the array represents the attributes of input tag
64 64
         'class'                     => array(   // 3.3.1
65 65
             'fieldrow'  =>  array(),
66 66
             'fieldset'  =>  array(),
@@ -68,29 +68,29 @@  discard block
 block discarded – undo
68 68
             'field'     =>  array(),
69 69
         ), 
70 70
 
71
-        'save'                      => true,    // 3.6.0
72
-        'content'                   => null,    // 3.6.1 - (string) An overriding field-set output.
71
+        'save'                      => true, // 3.6.0
72
+        'content'                   => null, // 3.6.1 - (string) An overriding field-set output.
73 73
         
74
-        'show_debug_info'           => null,    // 3.8.8+  (boolean) whether to show debug information such as field definition tool-tips. This value is inherited from the section definition argument of the same name. Not setting a value here as it is determined with another calculated value.
74
+        'show_debug_info'           => null, // 3.8.8+  (boolean) whether to show debug information such as field definition tool-tips. This value is inherited from the section definition argument of the same name. Not setting a value here as it is determined with another calculated value.
75 75
         
76 76
         // Internal Keys
77
-        '_fields_type'              => null,    // @deprecated  3.7.0, 3.0.0 - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy.
78
-        '_structure_type'           => null,    // 3.7.0
79
-        '_caller_object'            => null,    // 3.4.0 (object) stores the object of the caller class. The object is referenced when creating nested fields.
77
+        '_fields_type'              => null, // @deprecated  3.7.0, 3.0.0 - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy.
78
+        '_structure_type'           => null, // 3.7.0
79
+        '_caller_object'            => null, // 3.4.0 (object) stores the object of the caller class. The object is referenced when creating nested fields.
80 80
                                                          
81
-        '_section_path'             => '',      // 3.7.0 (string) Stores the section path that indicates the structural address of the nested section. e.g. my_section|nested_one
82
-        '_section_path_array'       => '',      // 3.7.0 (array) An array version of the above section path.
83
-        '_nested_depth'             => 0,       // 3.4.0 (integer) stores the level of the nesting depth. This is mostly used for debugging by checking if the field is a nested field or not.        
84
-        '_subsection_index'         => null,    // 3.7.0 Passed to the `field_definition_{...}` filter hook callbacks.
85
-        '_section_repeatable'       => false,   // @deprecated
86
-        '_is_section_repeatable'    => false,   // 3.8.0 (boolean) Whether the belonging section is repeatable or not.
81
+        '_section_path'             => '', // 3.7.0 (string) Stores the section path that indicates the structural address of the nested section. e.g. my_section|nested_one
82
+        '_section_path_array'       => '', // 3.7.0 (array) An array version of the above section path.
83
+        '_nested_depth'             => 0, // 3.4.0 (integer) stores the level of the nesting depth. This is mostly used for debugging by checking if the field is a nested field or not.        
84
+        '_subsection_index'         => null, // 3.7.0 Passed to the `field_definition_{...}` filter hook callbacks.
85
+        '_section_repeatable'       => false, // @deprecated
86
+        '_is_section_repeatable'    => false, // 3.8.0 (boolean) Whether the belonging section is repeatable or not.
87 87
                
88
-        '_field_path'               => '',      // 3.7.0 (string) Stores the field path that indicates the structural location of the field. This is relative to the belonging section.
88
+        '_field_path'               => '', // 3.7.0 (string) Stores the field path that indicates the structural location of the field. This is relative to the belonging section.
89 89
         '_field_path_array'         => array(), // 3.7.0 (array) An array version of the above field path.
90
-        '_parent_field_path'        => '',      // 3.8.0 (string)
90
+        '_parent_field_path'        => '', // 3.8.0 (string)
91 91
         '_parent_field_path_array'  => array(), // 3.8.0 (array)
92 92
         
93
-        '_is_title_embedded'        => false,   // 3.8.0 (boolean) whether the field title is in the fieldset element, not in the table th element. This becomes `true` for `section_title` fields and fields with the `placement` argument with the value of `section_title` or `field_title`.
93
+        '_is_title_embedded'        => false, // 3.8.0 (boolean) whether the field title is in the fieldset element, not in the table th element. This becomes `true` for `section_title` fields and fields with the `placement` argument with the value of `section_title` or `field_title`.
94 94
         
95 95
     );        
96 96
     
@@ -167,14 +167,14 @@  discard block
 block discarded – undo
167 167
             array( 
168 168
                 '_fields_type'           => $this->sStructureType, // @deprecated 3.7.0 backward-compatibility
169 169
                 '_structure_type'        => $this->sStructureType,  
170
-                '_caller_object'         => $this->oCallerObject,  // 3.4.1+ Stores the caller form object. 
171
-                '_subsection_index'      => $this->iSubSectionIndex,  // 3.7.0+
170
+                '_caller_object'         => $this->oCallerObject, // 3.4.1+ Stores the caller form object. 
171
+                '_subsection_index'      => $this->iSubSectionIndex, // 3.7.0+
172 172
             )
173 173
             + $this->aFieldset,
174 174
             array( 
175 175
                 'capability'             => $this->sCapability,
176 176
                 'section_id'             => '_default',             
177
-                '_section_repeatable'    => $this->bIsSectionRepeatable,   // @deprecated  3.8.0   This was not used.
177
+                '_section_repeatable'    => $this->bIsSectionRepeatable, // @deprecated  3.8.0   This was not used.
178 178
                 '_is_section_repeatable' => $this->bIsSectionRepeatable,
179 179
             )
180 180
             + self::$aStructure
@@ -295,12 +295,12 @@  discard block
 block discarded – undo
295 295
           
296 296
             );
297 297
 
298
-            foreach( $aNestedFieldsets as $_isIndex => &$_aNestedFieldset ) {
298
+            foreach ( $aNestedFieldsets as $_isIndex => &$_aNestedFieldset ) {
299 299
                 
300 300
                 // The inline-mixed type has a string element.
301 301
                 if ( is_scalar( $_aNestedFieldset ) ) {                    
302 302
                     $_aNestedFieldset = array( 
303
-                        'field_id'              => $aParentFieldset[ 'field_id' ] . '_' . uniqid(),
303
+                        'field_id'              => $aParentFieldset[ 'field_id' ].'_'.uniqid(),
304 304
                         'content'               => $_aNestedFieldset,
305 305
                     );                    
306 306
                 }
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
         $_aFieldset[ 'class' ] = $this->getAsArray( $_aFieldset[ 'class' ] );
196 196
 
197 197
         // 3.8.0+ Support nested fields and inline_mized field type.
198
-        if ( $this->hasFieldDefinitionsInContent( $_aFieldset ) ) {        
198
+        if ( $this->hasFieldDefinitionsInContent( $_aFieldset ) ) {
199 199
             $_aFieldset[ 'content' ] = $this->_getChildFieldsetsFormatted( $_aFieldset[ 'content' ], $_aFieldset );
200 200
         }        
201 201
         
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
          * @since       3.8.8
223 223
          * @return      boolean
224 224
          */
225
-        private function _getShowDebugInfo( $aFieldset ) {   
225
+        private function _getShowDebugInfo( $aFieldset ) {
226 226
 
227 227
             // If the user sets a value. use it.
228 228
             if ( isset( $aFieldset[ 'show_debug_info' ] ) ) {
@@ -298,7 +298,7 @@  discard block
 block discarded – undo
298 298
             foreach( $aNestedFieldsets as $_isIndex => &$_aNestedFieldset ) {
299 299
                 
300 300
                 // The inline-mixed type has a string element.
301
-                if ( is_scalar( $_aNestedFieldset ) ) {                    
301
+                if ( is_scalar( $_aNestedFieldset ) ) {
302 302
                     $_aNestedFieldset = array( 
303 303
                         'field_id'              => $aParentFieldset[ 'field_id' ] . '_' . uniqid(),
304 304
                         'content'               => $_aNestedFieldset,
Please login to merge, or discard this patch.