Completed
Branch master (a559c4)
by
unknown
04:34
created
development/factory/_abstract/view/AdminPageFramework_CSS.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -119,12 +119,12 @@
 block discarded – undo
119 119
             
120 120
     }
121 121
 
122
-         /**
123
-         * Returns the CSS rules for form fields.
124
-         * 
125
-         * @since       3.4.0
126
-         * @internal
127
-         */    
122
+            /**
123
+             * Returns the CSS rules for form fields.
124
+             * 
125
+             * @since       3.4.0
126
+             * @internal
127
+             */    
128 128
         static private function _getFormSectionRules() {
129 129
             return <<<CSSRULES
130 130
 .admin-page-framework-section {
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -107,15 +107,15 @@  discard block
 block discarded – undo
107 107
 }
108 108
 CSSRULES;
109 109
 
110
-        return $_sCSS . PHP_EOL 
111
-            . self::_getFormSectionRules() . PHP_EOL
112
-            . self::_getFormFieldRules() . PHP_EOL
113
-            . self::_getCollapsibleSectionsRules() . PHP_EOL
114
-            . self::_getFieldErrorRules() . PHP_EOL
115
-            . self::_getMetaBoxFormRules() . PHP_EOL
116
-            . self::_getWidgetFormRules() . PHP_EOL
117
-            . self::_getPageLoadStatsRules() . PHP_EOL
118
-            . self::_getVersionSpecificRules( $GLOBALS['wp_version'] );
110
+        return $_sCSS.PHP_EOL 
111
+            . self::_getFormSectionRules().PHP_EOL
112
+            . self::_getFormFieldRules().PHP_EOL
113
+            . self::_getCollapsibleSectionsRules().PHP_EOL
114
+            . self::_getFieldErrorRules().PHP_EOL
115
+            . self::_getMetaBoxFormRules().PHP_EOL
116
+            . self::_getWidgetFormRules().PHP_EOL
117
+            . self::_getPageLoadStatsRules().PHP_EOL
118
+            . self::_getVersionSpecificRules( $GLOBALS[ 'wp_version' ] );
119 119
             
120 120
     }
121 121
 
@@ -526,7 +526,7 @@  discard block
 block discarded – undo
526 526
     background: none;   /* for Wordpress v3.7.x or below, the background image need to be removed as well */
527 527
 }
528 528
 CSSRULES;
529
-            if ( version_compare( $GLOBALS['wp_version'], '3.8', '<' ) ) {
529
+            if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '<' ) ) {
530 530
                 $_sCSSRules .= <<<CSSRULES
531 531
 .admin-page-framework-collapsible-sections-title.accordion-section-title:after,
532 532
 .admin-page-framework-collapsible-section-title.accordion-section-title:after 
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -558,7 +558,7 @@  discard block
 block discarded – undo
558 558
          * @since       3.3.0
559 559
          * @internal
560 560
          */
561
-        static private function _getMetaBoxFormRules() {     
561
+        static private function _getMetaBoxFormRules() {
562 562
 
563 563
             return <<<CSSRULES
564 564
 /* Meta-box form fields */
@@ -640,7 +640,7 @@  discard block
 block discarded – undo
640 640
          * @since       3.2.0
641 641
          * @internal
642 642
          */
643
-        static private function _getWidgetFormRules() {            
643
+        static private function _getWidgetFormRules() {
644 644
             return <<<CSSRULES
645 645
 /* Widget Forms [3.2.0+] */
646 646
 .widget .admin-page-framework-section .form-table > tbody > tr > td,
@@ -766,7 +766,7 @@  discard block
 block discarded – undo
766 766
             
767 767
             }
768 768
             // If the WordPress version is greater than equal to 3.8, add MP6(the admin style introduced in 3.8) specific CSS rules.
769
-            if ( version_compare( $sWPVersion, '3.8', '>=' ) ) {        
769
+            if ( version_compare( $sWPVersion, '3.8', '>=' ) ) {
770 770
             
771 771
                 $_sCSSRules .= <<<CSSRULES
772 772
 /* Widget Forms */
Please login to merge, or discard this patch.
factory/_abstract/view/AdminPageFramework_FieldTypeRegistration.php 2 patches
Spacing   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
         'posttype',
44 44
         'size',
45 45
         'section_title', // 3.0.0+
46
-        'system',        // 3.3.0+
46
+        'system', // 3.3.0+
47 47
     );    
48 48
         
49 49
     /**
@@ -53,10 +53,10 @@  discard block
 block discarded – undo
53 53
      */
54 54
     static public function register( $aFieldTypeDefinitions, $sExtendedClassName, $oMsg ) {
55 55
 
56
-        foreach( self::$aDefaultFieldTypeSlugs as $_sFieldTypeSlug ) {
56
+        foreach ( self::$aDefaultFieldTypeSlugs as $_sFieldTypeSlug ) {
57 57
             
58 58
             $_sFieldTypeClassName = "AdminPageFramework_FieldType_{$_sFieldTypeSlug}";
59
-            if ( ! class_exists( $_sFieldTypeClassName ) ) { 
59
+            if ( !class_exists( $_sFieldTypeClassName ) ) { 
60 60
                 continue; 
61 61
             }
62 62
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 $oMsg, 
67 67
                 false     // pass false to disable auto-registering.     
68 68
             );    
69
-            foreach( $_oFieldType->aFieldTypeSlugs as $__sSlug ) {     
69
+            foreach ( $_oFieldType->aFieldTypeSlugs as $__sSlug ) {     
70 70
                 $aFieldTypeDefinitions[ $__sSlug ] = $_oFieldType->getDefinitionArray();
71 71
             }
72 72
         }
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     static public function _setFieldResources( array $aField, $oProp, &$oResource ) {
94 94
 
95
-        $_sFieldType = $aField['type'];
95
+        $_sFieldType = $aField[ 'type' ];
96 96
         
97 97
         // Caches
98 98
         self::$_aLoadFlags[ $oProp->_sPropertyType ] = isset( self::$_aLoadFlags[ $oProp->_sPropertyType ] ) && is_array( self::$_aLoadFlags[ $oProp->_sPropertyType ] )
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
         self::$_aLoadFlags[ $oProp->_sPropertyType ][ $_sFieldType ] = true;
105 105
                 
106 106
         // If the field type is not defined, return.
107
-        if ( ! isset( $oProp->aFieldTypeDefinitions[ $_sFieldType ] ) ) { 
107
+        if ( !isset( $oProp->aFieldTypeDefinitions[ $_sFieldType ] ) ) { 
108 108
             return; 
109 109
         }
110 110
         
@@ -113,12 +113,12 @@  discard block
 block discarded – undo
113 113
         self::_setInlineResources( $_sFieldType, $oProp );
114 114
         
115 115
         self::_enqueueReoucesByTyoe(
116
-            $oProp->aFieldTypeDefinitions[ $_sFieldType ]['aEnqueueStyles'],    
116
+            $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'aEnqueueStyles' ],    
117 117
             $oResource, 
118 118
             'style'
119 119
         );
120 120
         self::_enqueueReoucesByTyoe( 
121
-            $oProp->aFieldTypeDefinitions[ $_sFieldType ]['aEnqueueScripts'],
121
+            $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'aEnqueueScripts' ],
122 122
             $oResource, 
123 123
             'script'
124 124
         );
@@ -132,12 +132,12 @@  discard block
 block discarded – undo
132 132
          */
133 133
         static private function _initializeFieldType( $_sFieldType, $oProp ) {
134 134
                 
135
-            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfFieldSetTypeSetter'] ) ) {
136
-                call_user_func_array( $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfFieldSetTypeSetter'], array( $oProp->_sPropertyType ) );
135
+            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfFieldSetTypeSetter' ] ) ) {
136
+                call_user_func_array( $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfFieldSetTypeSetter' ], array( $oProp->_sPropertyType ) );
137 137
             }
138 138
             
139
-            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfFieldLoader'] ) ) {
140
-                call_user_func_array( $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfFieldLoader'], array() );     
139
+            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfFieldLoader' ] ) ) {
140
+                call_user_func_array( $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfFieldLoader' ], array() );     
141 141
             }            
142 142
             
143 143
         }
@@ -150,21 +150,21 @@  discard block
 block discarded – undo
150 150
          */
151 151
         static private function _setInlineResources( $_sFieldType, $oProp ) {
152 152
          
153
-            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfGetScripts'] ) ) {
153
+            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfGetScripts' ] ) ) {
154 154
                 $oProp->sScript .= call_user_func_array( 
155
-                    $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfGetScripts'], 
155
+                    $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfGetScripts' ], 
156 156
                     array() 
157 157
                 );
158 158
             }
159
-            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfGetStyles'] ) ) {
159
+            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfGetStyles' ] ) ) {
160 160
                 $oProp->sStyle .= call_user_func_array( 
161
-                    $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfGetStyles'], 
161
+                    $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfGetStyles' ], 
162 162
                     array() 
163 163
                 );
164 164
             }
165
-            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfGetIEStyles'] ) ) {
165
+            if ( is_callable( $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfGetIEStyles' ] ) ) {
166 166
                 $oProp->sStyleIE .= call_user_func_array( 
167
-                    $oProp->aFieldTypeDefinitions[ $_sFieldType ]['hfGetIEStyles'], 
167
+                    $oProp->aFieldTypeDefinitions[ $_sFieldType ][ 'hfGetIEStyles' ], 
168 168
                     array() 
169 169
                 );     
170 170
             }
@@ -186,11 +186,11 @@  discard block
 block discarded – undo
186 186
                 'script' => '_forceToEnqueueScript',
187 187
                 'style'  => '_forceToEnqueueStyle',
188 188
             );
189
-            if ( ! isset( $_aMethodNames[ $sType ] ) ) {
189
+            if ( !isset( $_aMethodNames[ $sType ] ) ) {
190 190
                 return;
191 191
             }
192 192
             
193
-            foreach( $aResources as $asSource ) {             
193
+            foreach ( $aResources as $asSource ) {             
194 194
                 if ( is_string( $asSource ) ) {
195 195
                     call_user_func_array( 
196 196
                         array( $oResource, $_aMethodNames[ $sType ] ), 
@@ -200,7 +200,7 @@  discard block
 block discarded – undo
200 200
                 else if ( is_array( $asSource ) && isset( $asSource[ 'src' ] ) ) {
201 201
                     call_user_func_array( 
202 202
                         array( $oResource, $_aMethodNames[ $sType ] ),
203
-                        array( $asSource[ 'src' ], $asSource)
203
+                        array( $asSource[ 'src' ], $asSource )
204 204
                     );
205 205
                 }                
206 206
             }
Please login to merge, or discard this patch.
Braces   +6 added lines, -7 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
         foreach( self::$aDefaultFieldTypeSlugs as $_sFieldTypeSlug ) {
57 57
             
58 58
             $_sFieldTypeClassName = "AdminPageFramework_FieldType_{$_sFieldTypeSlug}";
59
-            if ( ! class_exists( $_sFieldTypeClassName ) ) { 
59
+            if ( ! class_exists( $_sFieldTypeClassName ) ) {
60 60
                 continue; 
61 61
             }
62 62
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
                 $oMsg, 
67 67
                 false     // pass false to disable auto-registering.     
68 68
             );    
69
-            foreach( $_oFieldType->aFieldTypeSlugs as $__sSlug ) {     
69
+            foreach( $_oFieldType->aFieldTypeSlugs as $__sSlug ) {
70 70
                 $aFieldTypeDefinitions[ $__sSlug ] = $_oFieldType->getDefinitionArray();
71 71
             }
72 72
         }
@@ -98,13 +98,13 @@  discard block
 block discarded – undo
98 98
         self::$_aLoadFlags[ $oProp->_sPropertyType ] = isset( self::$_aLoadFlags[ $oProp->_sPropertyType ] ) && is_array( self::$_aLoadFlags[ $oProp->_sPropertyType ] )
99 99
             ? self::$_aLoadFlags[ $oProp->_sPropertyType ]
100 100
             : array();
101
-        if ( isset( self::$_aLoadFlags[ $oProp->_sPropertyType ][ $_sFieldType ] ) && self::$_aLoadFlags[ $oProp->_sPropertyType ][ $_sFieldType ] ) { 
101
+        if ( isset( self::$_aLoadFlags[ $oProp->_sPropertyType ][ $_sFieldType ] ) && self::$_aLoadFlags[ $oProp->_sPropertyType ][ $_sFieldType ] ) {
102 102
             return; 
103 103
         }
104 104
         self::$_aLoadFlags[ $oProp->_sPropertyType ][ $_sFieldType ] = true;
105 105
                 
106 106
         // If the field type is not defined, return.
107
-        if ( ! isset( $oProp->aFieldTypeDefinitions[ $_sFieldType ] ) ) { 
107
+        if ( ! isset( $oProp->aFieldTypeDefinitions[ $_sFieldType ] ) ) {
108 108
             return; 
109 109
         }
110 110
         
@@ -190,14 +190,13 @@  discard block
 block discarded – undo
190 190
                 return;
191 191
             }
192 192
             
193
-            foreach( $aResources as $asSource ) {             
193
+            foreach( $aResources as $asSource ) {
194 194
                 if ( is_string( $asSource ) ) {
195 195
                     call_user_func_array( 
196 196
                         array( $oResource, $_aMethodNames[ $sType ] ), 
197 197
                         array( $asSource )
198 198
                     );
199
-                }
200
-                else if ( is_array( $asSource ) && isset( $asSource[ 'src' ] ) ) {
199
+                } else if ( is_array( $asSource ) && isset( $asSource[ 'src' ] ) ) {
201 200
                     call_user_func_array( 
202 201
                         array( $oResource, $_aMethodNames[ $sType ] ),
203 202
                         array( $asSource[ 'src' ], $asSource)
Please login to merge, or discard this patch.
development/factory/_abstract/view/AdminPageFramework_TabNavigationBar.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     /**
27 27
      * Stores the tab items.
28 28
      */
29
-    public $aTabs   = array();
29
+    public $aTabs = array();
30 30
 
31 31
     /**
32 32
      * Stores container attributes.
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
     );
37 37
     
38 38
     public $aTab = array(
39
-        'slug'       => null,  // (string) tab slug (id)
40
-        'title'      => null,  // (string) tab title
41
-        'href'       => null,  // (string) link url
42
-        'disabled'   => null,  // (boolean)
43
-        'class'      => null,  // (string) class selector to append to the class attribute
39
+        'slug'       => null, // (string) tab slug (id)
40
+        'title'      => null, // (string) tab title
41
+        'href'       => null, // (string) link url
42
+        'disabled'   => null, // (boolean)
43
+        'class'      => null, // (string) class selector to append to the class attribute
44 44
         'attributes' => array(),
45 45
     );
46 46
     
@@ -59,11 +59,11 @@  discard block
 block discarded – undo
59 59
      * @param       array             $aTabs              An array holding each tab definitions
60 60
      * @param       array|string      $asActiveTabSlugs   The default tab slug.
61 61
      */
62
-    public function __construct( array $aTabs, $asActiveTabSlugs, $sTabTag='h2', $aAttributes=array( 'class' => 'nav-tab-wrapper', ), $aCallbacks=array() ) {
62
+    public function __construct( array $aTabs, $asActiveTabSlugs, $sTabTag = 'h2', $aAttributes = array( 'class' => 'nav-tab-wrapper',), $aCallbacks = array() ) {
63 63
         
64
-        $this->aCallbacks           = $aCallbacks + array(
64
+        $this->aCallbacks = $aCallbacks + array(
65 65
             'format'    => null,
66
-            'arguments' => null,  // custom arguments to pass to the callback functions.
66
+            'arguments' => null, // custom arguments to pass to the callback functions.
67 67
         );
68 68
         $this->aTabs                = $this->_getFormattedTabs( $aTabs );
69 69
         $this->aActiveSlugs         = $this->getAsArray( $asActiveTabSlugs );        
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
          * @return      array
78 78
          */
79 79
         private function _getFormattedTabs( array $aTabs ) {
80
-            foreach( $aTabs as $_isKey => &$_aTab ) {
80
+            foreach ( $aTabs as $_isKey => &$_aTab ) {
81 81
                 $_aFormattedTab = $this->_getFormattedTab( $_aTab, $aTabs );
82 82
                 if ( isset( $_aFormattedTab[ 'slug' ] ) ) {
83 83
                     $_aTab = $_aFormattedTab;
@@ -128,12 +128,12 @@  discard block
 block discarded – undo
128 128
         private function _getTabs() {
129 129
             
130 130
             $_aOutput = array();
131
-            foreach( $this->aTabs as $_aTab ) {
131
+            foreach ( $this->aTabs as $_aTab ) {
132 132
                 $_sTab = $this->_getTab( $_aTab );
133
-                if ( ! $_sTab ) {
133
+                if ( !$_sTab ) {
134 134
                     continue;
135 135
                 }
136
-                $_aOutput[] = $_sTab;
136
+                $_aOutput[ ] = $_sTab;
137 137
             }
138 138
 
139 139
             $_aContainerAttributes = $this->aAttributes + array( 'class' => null );
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
 
145 145
             return empty( $_aOutput )
146 146
                 ? ''
147
-                : "<{$this->sTabTag} " . $this->getAttributes( $_aContainerAttributes ) . ">"
147
+                : "<{$this->sTabTag} ".$this->getAttributes( $_aContainerAttributes ).">"
148 148
                     . implode( '', $_aOutput )                    
149 149
                 . "</{$this->sTabTag}>";
150 150
             
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @subpackage      Tab
17 17
  * @internal
18 18
  */
19
-class AdminPageFramework_TabNavigationBar extends AdminPageFramework_WPUtility {                
19
+class AdminPageFramework_TabNavigationBar extends AdminPageFramework_WPUtility {
20 20
     
21 21
     /**
22 22
      * The HTML tag used for the tag.
Please login to merge, or discard this patch.
factory/_abstract/view/attribute/AdminPageFramework_Attribute_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * 
25 25
      * @since       3.6.0
26 26
      */
27
-    public $sContext    = '';
27
+    public $sContext = '';
28 28
  
29 29
     /**
30 30
      * 
Please login to merge, or discard this patch.
view/attribute/AdminPageFramework_Attribute_FieldContainer_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $this->aAttributes + $this->_getAttributes()
33 33
         );
34 34
                     
35
-        $_aAttributes[ 'class' ]   = $this->getClassAttribute( 
35
+        $_aAttributes[ 'class' ] = $this->getClassAttribute( 
36 36
             $this->getElement( $_aAttributes, 'class', array() ),
37 37
             $this->getElement( $this->aArguments, array( 'class', $this->sContext ), array() )
38 38
         );
Please login to merge, or discard this patch.
factory/_abstract/view/attribute/AdminPageFramework_Attribute_Fieldrow.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * 
25 25
      * @since       3.6.0
26 26
      */
27
-    public $sContext    = 'fieldrow';
27
+    public $sContext = 'fieldrow';
28 28
 
29 29
     /**
30 30
      * @return      array       The formatted attributes array.
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $_aAttributes = parent::_getFormattedAttributes();
35 35
 
36 36
         // Set the visibility CSS property for the outermost container element.
37
-        if ( $this->aArguments[ 'hidden' ] ) { 
37
+        if ( $this->aArguments[ 'hidden' ] ) {
38 38
             $_aAttributes[ 'style' ] = $this->getStyleAttribute( 
39 39
                 $this->getElement( $_aAttributes, 'style', array() ),
40 40
                 'display:none' 
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Admin Page Framework
4
- * 
5
- * http://en.michaeluno.jp/admin-page-framework/
6
- * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+         * Admin Page Framework
4
+         * 
5
+         * http://en.michaeluno.jp/admin-page-framework/
6
+         * Copyright (c) 2013-2015 Michael Uno; Licensed MIT
7
+         * 
8
+         */
9 9
 
10 10
 /**
11 11
  * Provides methods to handle importing options.
Please login to merge, or discard this patch.
factory/_abstract/view/attribute/AdminPageFramework_Attribute_Fields.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $this->aAttributes,
39 39
             $this->iFieldsCount,
40 40
         );
41
-        $this->aArguments    = $_aParameters[ 0 ];        
41
+        $this->aArguments = $_aParameters[ 0 ];        
42 42
         $this->aAttributes  = $_aParameters[ 1 ];
43 43
         $this->iFieldsCount = $_aParameters[ 2 ];
44 44
         
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
      */
52 52
     protected function _getAttributes() {
53 53
         return array(
54
-            'id'            => $this->sContext . '-' . $this->aArguments[ 'tag_id' ],
55
-            'class'         => 'admin-page-framework-' . $this->sContext
54
+            'id'            => $this->sContext.'-'.$this->aArguments[ 'tag_id' ],
55
+            'class'         => 'admin-page-framework-'.$this->sContext
56 56
                 . $this->getAOrB( $this->aArguments[ 'repeatable' ], ' repeatable dynamic-fields', '' ) // 3.6.0+ Added the 'dynamic-fields' class selector.
57 57
                 . $this->getAOrB( $this->aArguments[ 'sortable' ], ' sortable dynamic-fields', '' ),
58 58
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
             // 3.6.0+ Stores the total number of dynamic fields, used to generate the input id and name of repeated fields which contain an incremented index number.
63 63
             'data-largest_index'            => max(     
64
-                ( int ) $this->iFieldsCount - 1,  // zero-base index
64
+                ( int ) $this->iFieldsCount - 1, // zero-base index
65 65
                 0 
66 66
             ), // convert negative numbers to zero.
67 67
             
Please login to merge, or discard this patch.
factory/_abstract/view/attribute/AdminPageFramework_Attribute_Fieldset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * 
25 25
      * @since       3.6.0
26 26
      */
27
-    public $sContext    = 'fieldset';
27
+    public $sContext = 'fieldset';
28 28
 
29 29
     /**
30 30
      * Returns an attribute array.
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function _getAttributes() {
34 34
         return array(
35
-            'id'            => $this->sContext . '-' . $this->aArguments[ 'tag_id' ],
36
-            'class'         => 'admin-page-framework-' . $this->sContext,
35
+            'id'            => $this->sContext.'-'.$this->aArguments[ 'tag_id' ],
36
+            'class'         => 'admin-page-framework-'.$this->sContext,
37 37
             'data-field_id' => $this->aArguments[ 'tag_id' ], // <-- not sure what this was for...
38 38
         );                    
39 39
     }
Please login to merge, or discard this patch.
_abstract/view/attribute/AdminPageFramework_Attribute_SectionTable.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  */
18 18
 class AdminPageFramework_Form_View___Attribute_SectionTable extends AdminPageFramework_Form_View___Attribute_Base {
19 19
 
20
-    public $sContext    = 'section_table';
20
+    public $sContext = 'section_table';
21 21
                    
22 22
     /**
23 23
      * Returns an attribute array.
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     protected function _getAttributes() {    
29 29
         return array( 
30
-            'id'    => 'section_table-' . $this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
30
+            'id'    => 'section_table-'.$this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
31 31
             'class' =>  $this->getClassAttribute(
32 32
                 'form-table',
33 33
                 'admin-page-framework-section-table'   // referred by the collapsible section script
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @since       3.6.0
26 26
      * @return      array
27 27
      */
28
-    protected function _getAttributes() {    
28
+    protected function _getAttributes() {
29 29
         return array( 
30 30
             'id'    => 'section_table-' . $this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
31 31
             'class' =>  $this->getClassAttribute(
Please login to merge, or discard this patch.