Completed
Branch master (b9c20c)
by
unknown
03:58
created
include/loader-class-list.php 1 patch
Spacing   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -1,40 +1,40 @@
 block discarded – undo
1 1
 <?php 
2 2
 $_aClassFiles = array( 
3
-    "GitHubCustomFieldType"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/library/github-custom-field-type/GitHubCustomFieldType.php", 
4
-    "AdminPageFrameworkLoader_Bootstrap"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/AdminPageFrameworkLoader_Bootstrap.php", 
5
-    "AdminPageFrameworkLoader_AdminPage"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php", 
6
-    "AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php", 
7
-    "AdminPageFrameworkLoader_AdminPageMetaBox_Notification"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php", 
8
-    "AdminPageFrameworkLoader_AdminPage_Addon"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php", 
9
-    "AdminPageFrameworkLoader_AdminPage_Addon_Top"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php", 
10
-    "AdminPageFrameworkLoader_AdminPage_Help"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php", 
11
-    "AdminPageFrameworkLoader_AdminPage_Help_About"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php", 
12
-    "AdminPageFrameworkLoader_AdminPage_Help_Debug"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php", 
13
-    "AdminPageFrameworkLoader_AdminPage_Help_Example"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php", 
14
-    "AdminPageFrameworkLoader_AdminPage_Help_FAQ"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_FAQ.php", 
15
-    "AdminPageFrameworkLoader_AdminPage_Help_Guide"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php", 
16
-    "AdminPageFrameworkLoader_AdminPage_Help_Information"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Information.php", 
17
-    "AdminPageFrameworkLoader_AdminPage_Help_Report"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php", 
18
-    "AdminPageFrameworkLoader_AdminPage_Help_Report_Report"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php", 
19
-    "AdminPageFrameworkLoader_AdminPage_Help_Tip"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Tip.php", 
20
-    "AdminPageFrameworkLoader_AdminPage_Tool"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php", 
21
-    "AdminPageFrameworkLoader_AdminPage_Tool_Generator"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator.php", 
22
-    "AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php", 
23
-    "AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator.php", 
24
-    "AdminPageFrameworkLoader_AdminPage_Tool_Minifier"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier.php", 
25
-    "AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier.php", 
26
-    "AdminPageFrameworkLoader_AdminPageWelcome"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php", 
27
-    "AdminPageFrameworkLoader_AdminPageWelcome_Welcome"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/dashboard/welcome/AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php", 
28
-    "AdminPageFrameworkLoader_Demo"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/demo/AdminPageFrameworkLoader_Demo.php", 
29
-    "AdminPageFrameworkLoader_NetworkAdmin"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php", 
30
-    "AdminPageFrameworkLoader_AdminPage_Page_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php", 
31
-    "AdminPageFrameworkLoader_AdminPage_RootBase"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php", 
32
-    "AdminPageFrameworkLoader_AdminPage_Section_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php", 
33
-    "AdminPageFrameworkLoader_AdminPage_Tab_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php", 
34
-    "AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php", 
35
-    "AdminPageFrameworkLoader_Event"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/event/AdminPageFrameworkLoader_Event.php", 
36
-    "AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php", 
37
-    "AdminPageFrameworkLoader_Option"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/option/AdminPageFrameworkLoader_Option.php", 
38
-    "AdminPageFrameworkLoader_FeedList"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/utility/AdminPageFrameworkLoader_FeedList.php", 
39
-    "AdminPageFrameworkLoader_Utility"=> AdminPageFrameworkLoader_Registry::$sDirPath . "/include/class/utility/AdminPageFrameworkLoader_Utility.php", 
3
+    "GitHubCustomFieldType"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/library/github-custom-field-type/GitHubCustomFieldType.php", 
4
+    "AdminPageFrameworkLoader_Bootstrap"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/AdminPageFrameworkLoader_Bootstrap.php", 
5
+    "AdminPageFrameworkLoader_AdminPage"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPage.php", 
6
+    "AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_ExternalLinks.php", 
7
+    "AdminPageFrameworkLoader_AdminPageMetaBox_Notification"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/AdminPageFrameworkLoader_AdminPageMetaBox_Notification.php", 
8
+    "AdminPageFrameworkLoader_AdminPage_Addon"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon.php", 
9
+    "AdminPageFrameworkLoader_AdminPage_Addon_Top"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/addon/AdminPageFrameworkLoader_AdminPage_Addon_Top.php", 
10
+    "AdminPageFrameworkLoader_AdminPage_Help"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help.php", 
11
+    "AdminPageFrameworkLoader_AdminPage_Help_About"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_About.php", 
12
+    "AdminPageFrameworkLoader_AdminPage_Help_Debug"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Debug.php", 
13
+    "AdminPageFrameworkLoader_AdminPage_Help_Example"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Example.php", 
14
+    "AdminPageFrameworkLoader_AdminPage_Help_FAQ"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_FAQ.php", 
15
+    "AdminPageFrameworkLoader_AdminPage_Help_Guide"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Guide.php", 
16
+    "AdminPageFrameworkLoader_AdminPage_Help_Information"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Information.php", 
17
+    "AdminPageFrameworkLoader_AdminPage_Help_Report"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report.php", 
18
+    "AdminPageFrameworkLoader_AdminPage_Help_Report_Report"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Report_Report.php", 
19
+    "AdminPageFrameworkLoader_AdminPage_Help_Tip"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/help/AdminPageFrameworkLoader_AdminPage_Help_Tip.php", 
20
+    "AdminPageFrameworkLoader_AdminPage_Tool"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/AdminPageFrameworkLoader_AdminPage_Tool.php", 
21
+    "AdminPageFrameworkLoader_AdminPage_Tool_Generator"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator.php", 
22
+    "AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_CustomFieldTypes.php", 
23
+    "AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/generator/AdminPageFrameworkLoader_AdminPage_Tool_Generator_Generator.php", 
24
+    "AdminPageFrameworkLoader_AdminPage_Tool_Minifier"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier.php", 
25
+    "AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/admin-page-framework/tool/minifier/AdminPageFrameworkLoader_AdminPage_Tool_Minifier_Minifier.php", 
26
+    "AdminPageFrameworkLoader_AdminPageWelcome"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/dashboard/AdminPageFrameworkLoader_AdminPageWelcome.php", 
27
+    "AdminPageFrameworkLoader_AdminPageWelcome_Welcome"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/dashboard/welcome/AdminPageFrameworkLoader_AdminPageWelcome_Welcome.php", 
28
+    "AdminPageFrameworkLoader_Demo"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/demo/AdminPageFrameworkLoader_Demo.php", 
29
+    "AdminPageFrameworkLoader_NetworkAdmin"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/network-admin/AdminPageFrameworkLoader_NetworkAdmin.php", 
30
+    "AdminPageFrameworkLoader_AdminPage_Page_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Page_Base.php", 
31
+    "AdminPageFrameworkLoader_AdminPage_RootBase"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_RootBase.php", 
32
+    "AdminPageFrameworkLoader_AdminPage_Section_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Section_Base.php", 
33
+    "AdminPageFrameworkLoader_AdminPage_Tab_Base"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_Base.php", 
34
+    "AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/admin/_abstract/AdminPageFrameworkLoader_AdminPage_Tab_ReadMeBase.php", 
35
+    "AdminPageFrameworkLoader_Event"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/event/AdminPageFrameworkLoader_Event.php", 
36
+    "AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/event/AdminPageFrameworkLoader_Event_Action_GetDevelopmentVersion.php", 
37
+    "AdminPageFrameworkLoader_Option"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/option/AdminPageFrameworkLoader_Option.php", 
38
+    "AdminPageFrameworkLoader_FeedList"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/utility/AdminPageFrameworkLoader_FeedList.php", 
39
+    "AdminPageFrameworkLoader_Utility"=> AdminPageFrameworkLoader_Registry::$sDirPath."/include/class/utility/AdminPageFrameworkLoader_Utility.php", 
40 40
 );
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_color.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
             
86 86
             // For front-end
87 87
             // @see     http://wordpress.stackexchange.com/a/82722
88
-            if ( ! is_admin() ) {
88
+            if ( !is_admin() ) {
89 89
 
90 90
                 // wp_enqueue_style( 'wp-color-picker' );
91 91
                 wp_enqueue_script(
@@ -277,9 +277,9 @@  discard block
 block discarded – undo
277 277
     protected function getField( $aField ) {
278 278
 
279 279
         // If the value is not set, apply the default value, 'transparent'.
280
-        $aField['value'] = is_null( $aField['value'] ) 
280
+        $aField[ 'value' ] = is_null( $aField[ 'value' ] ) 
281 281
             ? 'transparent' 
282
-            : $aField['value'];    
282
+            : $aField[ 'value' ];    
283 283
             
284 284
         $aField[ 'attributes' ] = $this->_getInputAttributes( $aField );
285 285
         
@@ -288,20 +288,20 @@  discard block
 block discarded – undo
288 288
             . "<div class='admin-page-framework-input-label-container'>"
289 289
                 . "<label for='{$aField[ 'input_id' ]}'>"
290 290
                     . $aField[ 'before_input' ]
291
-                    . ( $aField[ 'label' ] && ! $aField[ 'repeatable' ]
292
-                        ? "<span " . $this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ) . ">" 
293
-                                . $aField['label'] 
291
+                    . ( $aField[ 'label' ] && !$aField[ 'repeatable' ]
292
+                        ? "<span ".$this->getLabelContainerAttributes( $aField, 'admin-page-framework-input-label-string' ).">" 
293
+                                . $aField[ 'label' ] 
294 294
                             . "</span>"
295 295
                         : "" 
296 296
                     )
297
-                    . "<input " . $this->getAttributes( $aField[ 'attributes' ] ) . " />" 
297
+                    . "<input ".$this->getAttributes( $aField[ 'attributes' ] )." />" 
298 298
                     . $aField[ 'after_input' ]
299 299
                     . "<div class='repeatable-field-buttons'></div>" // the repeatable field buttons will be replaced with this element.
300 300
                 . "</label>"
301 301
                 . "<div class='colorpicker' id='color_{$aField[ 'input_id' ]}'></div>" // this div element with this class selector becomes a farbtastic color picker. ( below 3.4.x ) // rel='{$aField['input_id']}'
302 302
                 . $this->_getColorPickerEnablerScript( "{$aField[ 'input_id' ]}" )
303 303
             . "</div>"
304
-            . $aField['after_label'];
304
+            . $aField[ 'after_label' ];
305 305
         
306 306
     }
307 307
         /**
@@ -313,13 +313,13 @@  discard block
 block discarded – undo
313 313
         private function _getInputAttributes( array $aField ) {
314 314
                                
315 315
             return array(
316
-                'color'        => $aField['value'],    
317
-                'value'        => $aField['value'],
316
+                'color'        => $aField[ 'value' ],    
317
+                'value'        => $aField[ 'value' ],
318 318
                 'data-default' => isset( $aField[ 'default' ] )
319 319
                     ? $aField[ 'default' ]
320 320
                     : 'transparent', // used by the repeatable script
321 321
                 'type'         => 'text', // it must be text
322
-                'class'        => trim( 'input_color ' . $aField['attributes']['class'] ),
322
+                'class'        => trim( 'input_color '.$aField[ 'attributes' ][ 'class' ] ),
323 323
             ) + $aField[ 'attributes' ];
324 324
             
325 325
         }    
Please login to merge, or discard this patch.
development/factory/_common/form/AdminPageFramework_Form.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
     /**
40 40
      * Stores section set definitions.
41 41
      */
42
-    public $aSectionsets  = array(
42
+    public $aSectionsets = array(
43 43
         '_default' => array(
44 44
             'section_id'    => '_default',
45 45
         ),
@@ -48,12 +48,12 @@  discard block
 block discarded – undo
48 48
     /**
49 49
      * Stores field set definitions.
50 50
      */    
51
-    public $aFieldsets    = array();
51
+    public $aFieldsets = array();
52 52
     
53 53
     /**
54 54
      * Multi-dimensional array holding the saved form data.
55 55
      */
56
-    public $aSavedData    = array();
56
+    public $aSavedData = array();
57 57
         
58 58
     /**
59 59
      * The capability level of the form.
@@ -63,13 +63,13 @@  discard block
 block discarded – undo
63 63
      * Each secitonset and fieldset has individual capability. If they are not set,
64 64
      * This value will be applied.
65 65
      */            
66
-    public $sCapability = '';       // default - an empty string
66
+    public $sCapability = ''; // default - an empty string
67 67
     
68 68
     /**
69 69
      * Stores callback functions.
70 70
      * Each value will have a callback.
71 71
      */
72
-    public $aCallbacks    = array(
72
+    public $aCallbacks = array(
73 73
     
74 74
         /**
75 75
          * @return      string      The form default capability level.    
@@ -290,7 +290,7 @@  discard block
 block discarded – undo
290 290
                 + $this->aArguments;
291 291
             $aArguments[ 'caller_id' ] = $aArguments[ 'caller_id' ]
292 292
                 ? $aArguments[ 'caller_id' ]
293
-                : get_class( $this );  // if a caller id is empty, this class name will be used.
293
+                : get_class( $this ); // if a caller id is empty, this class name will be used.
294 294
             
295 295
             if ( $this->sStructureType ) {
296 296
                 $aArguments[ 'structure_type' ] = $this->sStructureType;
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -304,13 +304,13 @@
 block discarded – undo
304 304
          * @since       3.8.11
305 305
          */
306 306
         private function ___setSubClassObjects() {
307
-            if ( class_exists( $this->aSubClasses[ 'submit_notice' ] ) ) {                
307
+            if ( class_exists( $this->aSubClasses[ 'submit_notice' ] ) ) {
308 308
                 $this->oSubmitNotice  = new $this->aSubClasses[ 'submit_notice' ];
309 309
             }
310
-            if ( class_exists( $this->aSubClasses[ 'field_error' ] ) ) {                
310
+            if ( class_exists( $this->aSubClasses[ 'field_error' ] ) ) {
311 311
                 $this->oFieldError    = new $this->aSubClasses[ 'field_error' ]( $this->aArguments[ 'caller_id' ] );
312 312
             }
313
-            if ( class_exists( $this->aSubClasses[ 'last_input' ] ) ) {                
313
+            if ( class_exists( $this->aSubClasses[ 'last_input' ] ) ) {
314 314
                 $this->oLastInputs    = new $this->aSubClasses[ 'last_input' ]( $this->aArguments[ 'caller_id' ] );
315 315
             }
316 316
         }
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
      * @return      string
60 60
      * @since       3.7.0
61 61
      */
62
-    public function get( $bTableRow=true ) {
62
+    public function get( $bTableRow = true ) {
63 63
         
64 64
         $_sMethodName = $this->getAOrB(
65 65
             $bTableRow,
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         );
69 69
         
70 70
         $_sOutput = '';
71
-        foreach( $this->aFieldsetsPerSection as $_aFieldset ) {
71
+        foreach ( $this->aFieldsetsPerSection as $_aFieldset ) {
72 72
 
73 73
             $_oFieldsetOutputFormatter = new AdminPageFramework_Form_Model___Format_FieldsetOutput(
74 74
                 $_aFieldset, 
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
             );        
78 78
             
79 79
             $_aFieldset = $_oFieldsetOutputFormatter->get();
80
-            if ( ! $_aFieldset[ 'if' ] ) {
80
+            if ( !$_aFieldset[ 'if' ] ) {
81 81
                 continue;
82 82
             }
83 83
             
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___Format_Fields.php 2 patches
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
     public function get() {
57 57
 
58 58
         // Get the set value(s)
59
-        $_mSavedValue    = $this->_getStoredInputFieldValue( 
59
+        $_mSavedValue = $this->_getStoredInputFieldValue( 
60 60
             $this->aField, 
61 61
             $this->aOptions 
62 62
         );
@@ -116,9 +116,9 @@  discard block
 block discarded – undo
116 116
              * @return      void
117 117
              */
118 118
             private function _divideMainAndSubFields( $aField, array &$aFirstField, array &$aSubFields ) {
119
-                foreach( $aField as $_nsIndex => $_mFieldElement ) {
119
+                foreach ( $aField as $_nsIndex => $_mFieldElement ) {
120 120
                     if ( is_numeric( $_nsIndex ) ) {
121
-                        $aSubFields[] = $_mFieldElement;
121
+                        $aSubFields[ ] = $_mFieldElement;
122 122
                     } else {
123 123
                         $aFirstField[ $_nsIndex ] = $_mFieldElement;
124 124
                     }
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                 // We are collecting elements from the second sub-field.
145 145
                 unset( $_aSavedValues[ 0 ] ); 
146 146
                    
147
-                foreach( $_aSavedValues as $_iIndex => $vValue ) {
147
+                foreach ( $_aSavedValues as $_iIndex => $vValue ) {
148 148
                     $aSubFields[ $_iIndex - 1 ] = isset( $aSubFields[ $_iIndex - 1 ] ) && is_array( $aSubFields[ $_iIndex - 1 ] )
149 149
                         ? $aSubFields[ $_iIndex - 1 ] 
150 150
                         : array();     
@@ -159,7 +159,7 @@  discard block
 block discarded – undo
159 159
              */
160 160
             private function _fillSubFields( array &$aSubFields, array $aFirstField ) {
161 161
                         
162
-                foreach( $aSubFields as &$_aSubField ) {
162
+                foreach ( $aSubFields as &$_aSubField ) {
163 163
                     
164 164
                     // Evacuate the label element which should not be merged.
165 165
                     $_aLabel = $this->getElement( 
@@ -190,15 +190,15 @@  discard block
 block discarded – undo
190 190
          
191 191
             // Determine whether the elements are saved in an array.
192 192
             // $_bHasSubFields = count( $aFields ) > 1 || $aField[ 'repeatable' ] || $aField[ 'sortable' ];
193
-            if ( ! $this->hasSubFields( $aFields, $aField ) ) {
193
+            if ( !$this->hasSubFields( $aFields, $aField ) ) {
194 194
                 $aFields[ 0 ][ '_saved_value' ] = $mSavedValue;
195 195
                 $aFields[ 0 ][ '_is_multiple_fields' ] = false;
196 196
                 return;                    
197 197
             }
198 198
      
199
-            foreach( $aFields as $_iIndex => &$_aThisField ) {
199
+            foreach ( $aFields as $_iIndex => &$_aThisField ) {
200 200
                 $_aThisField[ '_saved_value' ]        = $this->getElement( $mSavedValue, $_iIndex, null );
201
-                $_aThisField[ '_subfield_index' ]     = $_iIndex;   // 3.8.0+
201
+                $_aThisField[ '_subfield_index' ]     = $_iIndex; // 3.8.0+
202 202
                 $_aThisField[ '_is_multiple_fields' ] = true;
203 203
             }
204 204
     
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
          * @since       3.6.0       Moved from `AdminPageFramework_FieldDefinition`.
213 213
          */
214 214
         private function _setFieldsValue( &$aFields ) {
215
-            foreach( $aFields as &$_aField ) {
215
+            foreach ( $aFields as &$_aField ) {
216 216
                 $_aField[ '_is_value_set_by_user' ] = isset( $_aField[ 'value' ] );
217 217
                 $_aField[ 'value' ]                 = $this->_getSetFieldValue( $_aField );
218 218
             }
@@ -257,10 +257,10 @@  discard block
 block discarded – undo
257 257
          */
258 258
         private function _getStoredInputFieldValue( $aField, $aOptions ) {    
259 259
 
260
-            $_aFieldPath   = $aField[ '_field_path_array' ];
260
+            $_aFieldPath = $aField[ '_field_path_array' ];
261 261
         
262 262
             // If a section is not set, check the first dimension element.
263
-            if ( ! isset( $aField[ 'section_id' ] ) || '_default' === $aField[ 'section_id' ] ) {
263
+            if ( !isset( $aField[ 'section_id' ] ) || '_default' === $aField[ 'section_id' ] ) {
264 264
                 return $this->getElement( 
265 265
                     $aOptions, 
266 266
                     $_aFieldPath, // $aField[ 'field_id' ],  // @todo this may have to be a field path instead of field id.
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -254,7 +254,7 @@
 block discarded – undo
254 254
          * @since       3.7.0       Changed the `_field_type` element to `_structure_type`.
255 255
          * @return      null|string|array
256 256
          */
257
-        private function _getStoredInputFieldValue( $aField, $aOptions ) {    
257
+        private function _getStoredInputFieldValue( $aField, $aOptions ) {
258 258
 
259 259
             $_aFieldPath   = $aField[ '_field_path_array' ];
260 260
         
Please login to merge, or discard this patch.
form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fields.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
             $this->aAttributes,
40 40
             $this->iFieldsCount,
41 41
         );
42
-        $this->aArguments    = $_aParameters[ 0 ];        
42
+        $this->aArguments = $_aParameters[ 0 ];        
43 43
         $this->aAttributes  = $_aParameters[ 1 ];
44 44
         $this->iFieldsCount = $_aParameters[ 2 ];
45 45
         
@@ -52,17 +52,17 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function _getAttributes() {
54 54
         return array(
55
-            'id'            => $this->sContext . '-' . $this->aArguments[ 'tag_id' ],
56
-            'class'         => 'admin-page-framework-' . $this->sContext
57
-                . $this->getAOrB( ! empty( $this->aArguments[ 'repeatable' ] ), ' repeatable dynamic-fields', '' ) // 3.6.0+ Added the 'dynamic-fields' class selector.
58
-                . $this->getAOrB( ! empty( $this->aArguments[ 'sortable' ] ), ' sortable dynamic-fields', '' ),
55
+            'id'            => $this->sContext.'-'.$this->aArguments[ 'tag_id' ],
56
+            'class'         => 'admin-page-framework-'.$this->sContext
57
+                . $this->getAOrB( !empty( $this->aArguments[ 'repeatable' ] ), ' repeatable dynamic-fields', '' ) // 3.6.0+ Added the 'dynamic-fields' class selector.
58
+                . $this->getAOrB( !empty( $this->aArguments[ 'sortable' ] ), ' sortable dynamic-fields', '' ),
59 59
 
60 60
             // referred by the sortable field JavaScript script.
61 61
             'data-type'     => $this->aArguments[ 'type' ], 
62 62
 
63 63
             // 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.
64 64
             'data-largest_index'            => max(     
65
-                ( int ) $this->iFieldsCount - 1,  // zero-base index
65
+                ( int ) $this->iFieldsCount - 1, // zero-base index
66 66
                 0 
67 67
             ), // convert negative numbers to zero.
68 68
             
Please login to merge, or discard this patch.
_common/form/_view/fieldset/AdminPageFramework_Form_View___Fieldset.php 3 patches
Spacing   +31 added lines, -31 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $this->aFieldset[ '_field_path_array' ],
39 39
             $this->aFieldset[ 'error_message' ]
40 40
         );
41
-        $_aOutputs[]     = $_oFieldError->get();
41
+        $_aOutputs[ ] = $_oFieldError->get();
42 42
 
43 43
         // 2. Construct fields array for sub-fields.
44 44
         $_oFieldsFormatter = new AdminPageFramework_Form_Model___Format_Fields(
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
         $_aFields = $_oFieldsFormatter->get();
49 49
             
50 50
         // 3. Get the field and its sub-fields output.
51
-        $_aOutputs[] = $this->_getFieldsOutput( 
51
+        $_aOutputs[ ] = $this->_getFieldsOutput( 
52 52
             $this->aFieldset,
53 53
             $_aFields, 
54 54
             $this->aCallbacks 
@@ -71,11 +71,11 @@  discard block
 block discarded – undo
71 71
          * @since   3.8.0   Added the `$aFieldset` parameter
72 72
          * @return  string
73 73
          */ 
74
-        private function _getFieldsOutput( $aFieldset, array $aFields, array $aCallbacks=array() ) {
74
+        private function _getFieldsOutput( $aFieldset, array $aFields, array $aCallbacks = array() ) {
75 75
 
76 76
             $_aOutput = array();
77
-            foreach( $aFields as $_isIndex => $_aField ) {
78
-                $_aOutput[] = $this->_getEachFieldOutput( 
77
+            foreach ( $aFields as $_isIndex => $_aField ) {
78
+                $_aOutput[ ] = $this->_getEachFieldOutput( 
79 79
                     $_aField, 
80 80
                     $_isIndex, 
81 81
                     $aCallbacks,
@@ -94,11 +94,11 @@  discard block
 block discarded – undo
94 94
              * @since       3.5.3
95 95
              * @return      string      the HTML output of the given field.
96 96
              */
97
-            private function _getEachFieldOutput( $aField, $isIndex, array $aCallbacks, $bIsLastElement=false ) {
97
+            private function _getEachFieldOutput( $aField, $isIndex, array $aCallbacks, $bIsLastElement = false ) {
98 98
                 
99 99
                 // Field type definition - allows mixed field types in sub-fields 
100 100
                 $_aFieldTypeDefinition = $this->_getFieldTypeDefinition( $aField[ 'type' ] );
101
-                if ( ! is_callable( $_aFieldTypeDefinition[ 'hfRenderField' ] ) ) {
101
+                if ( !is_callable( $_aFieldTypeDefinition[ 'hfRenderField' ] ) ) {
102 102
                     return '';
103 103
                 }     
104 104
 
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                 private function _getFieldOutput( $sContent, $aField, $bIsLastElement ) {
133 133
                     $_oFieldAttribute = new AdminPageFramework_Form_View___Attribute_Field( $aField );
134 134
                     return $aField[ 'before_field' ]
135
-                        . "<div " . $_oFieldAttribute->get() . ">"
135
+                        . "<div ".$_oFieldAttribute->get().">"
136 136
                             . $sContent
137 137
                             . $this->_getUnsetFlagFieldInputTag( $aField )
138 138
                             . $this->_getDelimiter( $aField, $bIsLastElement )
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
                         'input',
155 155
                         array(
156 156
                             'type'  => 'hidden',
157
-                            'name'  => '__unset_' . $aField[ '_fields_type' ] . '[' . $aField[ '_input_name_flat' ] . ']',
157
+                            'name'  => '__unset_'.$aField[ '_fields_type' ].'['.$aField[ '_input_name_flat' ].']',
158 158
                             'value' => $aField[ '_input_name_flat' ],
159 159
                             'class' => 'unset-element-names element-address',
160 160
                         )
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
                  */
186 186
                 private function _getDelimiter( $aField, $bIsLastElement ) {
187 187
                     return $aField[ 'delimiter' ]
188
-                        ? "<div " . $this->getAttributes( 
188
+                        ? "<div ".$this->getAttributes( 
189 189
                                 array(
190 190
                                     'class' => 'delimiter',
191 191
                                     'id'    => "delimiter-{$aField[ 'input_id' ]}",
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
                                         ""
196 196
                                     ),
197 197
                                 ) 
198
-                            ) . ">"
198
+                            ).">"
199 199
                                 . $aField[ 'delimiter' ]
200 200
                             . "</div>"
201 201
                         : '';
@@ -209,9 +209,9 @@  discard block
 block discarded – undo
209 209
          */
210 210
         private function _getFinalOutput( $aFieldset, array $aFieldsOutput, $iFieldsCount ) {
211 211
                             
212
-            $_oFieldsetAttributes   = new AdminPageFramework_Form_View___Attribute_Fieldset( $aFieldset );
212
+            $_oFieldsetAttributes = new AdminPageFramework_Form_View___Attribute_Fieldset( $aFieldset );
213 213
             return $aFieldset[ 'before_fieldset' ]
214
-                . "<fieldset " . $_oFieldsetAttributes->get() . ">"
214
+                . "<fieldset ".$_oFieldsetAttributes->get().">"
215 215
                     . $this->_getEmbeddedFieldTitle( $aFieldset )
216 216
                     . $this->_getChildFieldTitle( $aFieldset )                
217 217
                     . $this->_getFieldsetContent( $aFieldset, $aFieldsOutput, $iFieldsCount )
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
              */
229 229
             private function _getEmbeddedFieldTitle( $aFieldset ) {
230 230
                 
231
-                if ( ! $aFieldset[ '_is_title_embedded' ] ) {
231
+                if ( !$aFieldset[ '_is_title_embedded' ] ) {
232 232
                     return '';
233 233
                 }
234 234
 
@@ -253,7 +253,7 @@  discard block
 block discarded – undo
253 253
              */
254 254
             private function _getChildFieldTitle( $aFieldset ) {
255 255
 
256
-                if ( ! $aFieldset[ '_nested_depth' ] ) {
256
+                if ( !$aFieldset[ '_nested_depth' ] ) {
257 257
                     return '';
258 258
                 }
259 259
                 if ( $aFieldset[ '_is_title_embedded' ] ) {
@@ -282,12 +282,12 @@  discard block
 block discarded – undo
282 282
                     return $aFieldset[ 'content' ];
283 283
                 }
284 284
             
285
-                $_oFieldsAttributes     = new AdminPageFramework_Form_View___Attribute_Fields( 
285
+                $_oFieldsAttributes = new AdminPageFramework_Form_View___Attribute_Fields( 
286 286
                     $aFieldset, 
287
-                    array(),    // attribute array
287
+                    array(), // attribute array
288 288
                     $iFieldsCount
289 289
                 );
290
-                return "<div " . $_oFieldsAttributes->get() . ">"
290
+                return "<div ".$_oFieldsAttributes->get().">"
291 291
                         . $aFieldset[ 'before_fields' ]
292 292
                             . implode( PHP_EOL, $aFieldsOutput )
293 293
                         . $aFieldset[ 'after_fields' ]
@@ -310,13 +310,13 @@  discard block
 block discarded – undo
310 310
                     $aField[ 'description' ],
311 311
                     'admin-page-framework-fields-description'   // class selector
312 312
                 );
313
-                $_aOutput[] = $_oFieldDescription->get();
313
+                $_aOutput[ ] = $_oFieldDescription->get();
314 314
                     
315 315
                 // Dimensional keys of repeatable and sortable fields
316
-                $_aOutput[] = $this->_getDynamicElementFlagFieldInputTag( $aField );
316
+                $_aOutput[ ] = $this->_getDynamicElementFlagFieldInputTag( $aField );
317 317
                     
318 318
                 // Repeatable and sortable scripts 
319
-                $_aOutput[] = $this->_getFieldScripts( $aField, $iFieldsCount );
319
+                $_aOutput[ ] = $this->_getFieldScripts( $aField, $iFieldsCount );
320 320
                 
321 321
                 return implode( PHP_EOL, array_filter( $_aOutput ) );
322 322
                 
@@ -328,10 +328,10 @@  discard block
 block discarded – undo
328 328
                  */
329 329
                 private function _getDynamicElementFlagFieldInputTag( $aFieldset ) {
330 330
                     
331
-                    if ( ! empty( $aFieldset[ 'repeatable' ] ) ) {
331
+                    if ( !empty( $aFieldset[ 'repeatable' ] ) ) {
332 332
                         return $this->_getRepeatableFieldFlagTag( $aFieldset );
333 333
                     }
334
-                    if ( ! empty( $aFieldset[ 'sortable' ] ) ) {
334
+                    if ( !empty( $aFieldset[ 'sortable' ] ) ) {
335 335
                         return $this->_getSortableFieldFlagTag( $aFieldset );
336 336
                     }
337 337
                     return '';
@@ -346,8 +346,8 @@  discard block
 block discarded – undo
346 346
                             'input',
347 347
                             array(
348 348
                                 'type'                      => 'hidden',
349
-                                'name'                      => '__repeatable_elements_' . $aFieldset[ '_structure_type' ] 
350
-                                    . '[' . $aFieldset[ '_field_address' ] . ']',
349
+                                'name'                      => '__repeatable_elements_'.$aFieldset[ '_structure_type' ] 
350
+                                    . '['.$aFieldset[ '_field_address' ].']',
351 351
                                 'class'                     => 'element-address',
352 352
                                 'value'                     => $aFieldset[ '_field_address' ],
353 353
                                 'data-field_address_model'  => $aFieldset[ '_field_address_model' ],
@@ -363,8 +363,8 @@  discard block
 block discarded – undo
363 363
                             'input',
364 364
                             array(
365 365
                                 'type'                      => 'hidden',
366
-                                'name'                      => '__sortable_elements_' . $aFieldset[ '_structure_type' ] 
367
-                                    . '[' . $aFieldset[ '_field_address' ] . ']',
366
+                                'name'                      => '__sortable_elements_'.$aFieldset[ '_structure_type' ] 
367
+                                    . '['.$aFieldset[ '_field_address' ].']',
368 368
                                 'class'                     => 'element-address',
369 369
                                 'value'                     => $aFieldset[ '_field_address' ],
370 370
                                 'data-field_address_model'  => $aFieldset[ '_field_address_model' ],
@@ -383,14 +383,14 @@  discard block
 block discarded – undo
383 383
                     $_aOutput   = array();
384 384
                     
385 385
                     // Add the repeater script 
386
-                    $_aOutput[] = ! empty( $aField[ 'repeatable' ] )
387
-                        ? $this->_getRepeaterFieldEnablerScript( 'fields-' . $aField[ 'tag_id' ], $iFieldsCount, $aField[ 'repeatable' ] )
386
+                    $_aOutput[ ] = !empty( $aField[ 'repeatable' ] )
387
+                        ? $this->_getRepeaterFieldEnablerScript( 'fields-'.$aField[ 'tag_id' ], $iFieldsCount, $aField[ 'repeatable' ] )
388 388
                         : '';
389 389
 
390 390
                     // Add the sortable script - if the number of fields is only one, no need to sort the field. 
391 391
                     // Repeatable fields can make the number increase so here it checks the repeatability.
392
-                    $_aOutput[] = ! empty( $aField[ 'sortable' ] ) && ( $iFieldsCount > 1 || ! empty( $aField[ 'repeatable' ] ) )
393
-                        ? $this->_getSortableFieldEnablerScript( 'fields-' . $aField[ 'tag_id' ] )
392
+                    $_aOutput[ ] = !empty( $aField[ 'sortable' ] ) && ( $iFieldsCount > 1 || !empty( $aField[ 'repeatable' ] ) )
393
+                        ? $this->_getSortableFieldEnablerScript( 'fields-'.$aField[ 'tag_id' ] )
394 394
                         : '';     
395 395
                     
396 396
                     return implode( PHP_EOL, $_aOutput );
Please login to merge, or discard this patch.
Doc Comments   +2 added lines patch added patch discarded remove patch
@@ -126,6 +126,7 @@  discard block
 block discarded – undo
126 126
                  * Retrieves a field output.
127 127
                  * 
128 128
                  * @since       3.8.0
129
+                 * @param boolean $bIsLastElement
129 130
                  * @return      string
130 131
                  */ 
131 132
                 private function _getFieldOutput( $sContent, $aField, $bIsLastElement ) {
@@ -204,6 +205,7 @@  discard block
 block discarded – undo
204 205
          * Returns the final fields output.
205 206
          * 
206 207
          * @since       3.1.0
208
+         * @param integer $iFieldsCount
207 209
          * @return      string
208 210
          */
209 211
         private function _getFinalOutput( $aFieldset, array $aFieldsOutput, $iFieldsCount ) {
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -146,7 +146,7 @@
 block discarded – undo
146 146
                  */
147 147
                 private function _getUnsetFlagFieldInputTag( $aField ) {
148 148
                     
149
-                    if ( false !== $aField[ 'save' ] ) {                
149
+                    if ( false !== $aField[ 'save' ] ) {
150 150
                         return '';
151 151
                     }
152 152
                     return $this->getHTMLTag( 
Please login to merge, or discard this patch.
development/factory/_common/_abstract/_model/AdminPageFramework_Message.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -82,11 +82,11 @@  discard block
 block discarded – undo
82 82
         'confirm_perform_task'                  => 'Please confirm your action.', 
83 83
         'specified_option_been_deleted'         => 'The specified options have been deleted.', 
84 84
         'nonce_verification_failed'             => 'A problem occurred while processing the form data. Please try again.', 
85
-        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s',  // 3.5.11+
86
-        'send_email'                            => 'Is it okay to send the email?',     // 3.3.0+
87
-        'email_sent'                            => 'The email has been sent.',  // 3.3.0+, 3.3.5+ deprecated 
85
+        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s', // 3.5.11+
86
+        'send_email'                            => 'Is it okay to send the email?', // 3.3.0+
87
+        'email_sent'                            => 'The email has been sent.', // 3.3.0+, 3.3.5+ deprecated 
88 88
         'email_scheduled'                       => 'The email has been scheduled.', // 3.3.5+
89
-        'email_could_not_send'                  => 'There was a problem sending the email',     // 3.3.0+
89
+        'email_could_not_send'                  => 'There was a problem sending the email', // 3.3.0+
90 90
         
91 91
         // AdminPageFramework_PostType
92 92
         'title'                                 => 'Title',     
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
         'upload_file'                           => 'Upload File', 
114 114
         'use_this_file'                         => 'Use This File', 
115 115
         'select_file'                           => 'Select File', 
116
-        'remove_value'                          => 'Remove Value',  // 3.2.0+
117
-        'select_all'                            => 'Select All',    // 3.3.0+
118
-        'select_none'                           => 'Select None',   // 3.3.0+                       
116
+        'remove_value'                          => 'Remove Value', // 3.2.0+
117
+        'select_all'                            => 'Select All', // 3.3.0+
118
+        'select_none'                           => 'Select None', // 3.3.0+                       
119 119
         'no_term_found'                         => 'No term found.', // 3.3.2+
120 120
 
121 121
         // AdminPageFramework_Form_View___Script_{...}
122 122
         'select'                                => 'Select', // 3.4.2+             
123
-        'insert'                                => 'Insert',  // 3.4.2+
123
+        'insert'                                => 'Insert', // 3.4.2+
124 124
         'use_this'                              => 'Use This', // 3.4.2+
125 125
         'return_to_library'                     => 'Return to Library', // 3.4.2+
126 126
             
@@ -132,8 +132,8 @@  discard block
 block discarded – undo
132 132
 
133 133
         // Repeatable sections & fields
134 134
         'repeatable_section_is_disabled'        => 'The ability to repeat sections is disabled.', // 3.8.13+
135
-        'repeatable_field_is_disabled'          => 'The ability to repeat fields is disabled.',   // 3.8.13+
136
-        'warning_caption'                       => 'Warning',   // 3.8.13+
135
+        'repeatable_field_is_disabled'          => 'The ability to repeat fields is disabled.', // 3.8.13+
136
+        'warning_caption'                       => 'Warning', // 3.8.13+
137 137
 
138 138
         // AdminPageFramework_FormField
139 139
         'allowed_maximum_number_of_fields'      => 'The allowed maximum number of fields is {0}.', 
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
      * @since       3.2.0       Changed it to create an instance per text domain basis.
211 211
      * @remark      This class should be instantiated via this method.
212 212
      */
213
-    public static function getInstance( $sTextDomain='admin-page-framework' ) {
213
+    public static function getInstance( $sTextDomain = 'admin-page-framework' ) {
214 214
         
215 215
         $_oInstance = isset( self::$_aInstancesByTextDomain[ $sTextDomain ] ) && ( self::$_aInstancesByTextDomain[ $sTextDomain ] instanceof AdminPageFramework_Message )
216 216
             ? self::$_aInstancesByTextDomain[ $sTextDomain ]
@@ -223,21 +223,21 @@  discard block
 block discarded – undo
223 223
          * Ensures that only one instance of this class object exists. ( no multiple instances of this object ) 
224 224
          * @deprecated  3.2.0
225 225
          */
226
-        public static function instantiate( $sTextDomain='admin-page-framework' ) {
226
+        public static function instantiate( $sTextDomain = 'admin-page-framework' ) {
227 227
             return self::getInstance( $sTextDomain );
228 228
         }
229 229
         
230 230
     /**
231 231
      * Sets up properties.
232 232
      */
233
-    public function __construct( $sTextDomain='admin-page-framework' ) {
233
+    public function __construct( $sTextDomain = 'admin-page-framework' ) {
234 234
         
235 235
         $this->_sTextDomain = $sTextDomain;  
236 236
         
237 237
         // Fill the $aMessages property with the keys extracted from the $aDefaults property
238 238
         // with the value of null.  The null is set to let it trigger the __get() method 
239 239
         // so that each translation item gets processed individually.
240
-        $this->aMessages    = array_fill_keys( 
240
+        $this->aMessages = array_fill_keys( 
241 241
             array_keys( $this->aDefaults ),
242 242
             null        
243 243
         );
@@ -271,13 +271,13 @@  discard block
 block discarded – undo
271 271
      * @since       3.7.0      If no key is specified, return the entire mesage array.
272 272
      * @return      string|array
273 273
      */
274
-    public function get( $sKey='' ) {
275
-        if ( ! $sKey ) {
274
+    public function get( $sKey = '' ) {
275
+        if ( !$sKey ) {
276 276
             return $this->_getAllMessages();
277 277
         }
278 278
         return isset( $this->aMessages[ $sKey ] )
279 279
             ? __( $this->aMessages[ $sKey ], $this->_sTextDomain )
280
-            : __( $this->{$sKey}, $this->_sTextDomain );     // triggers __get()
280
+            : __( $this->{$sKey}, $this->_sTextDomain ); // triggers __get()
281 281
     }
282 282
         /**
283 283
          * Returns the all registered messag items.
Please login to merge, or discard this patch.
_view/script/AdminPageFramework_Form_View___Script_RepeatableSection.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
             return self::getAttributes( $_aAttriubtes ) . ' ' . self::getDataAttributes( $aArguments );
514 514
         }
515 515
         /**
516
-         * @return  array
516
+         * @return  string
517 517
          * @sicne   3.8.13
518 518
          */
519 519
         static private function ___getRemoveButtonAttributes( $sContainerTagID, $oMsg, $iSectionCount ) {
@@ -532,7 +532,7 @@  discard block
 block discarded – undo
532 532
 
533 533
         /**
534 534
          * @since       3.8.13
535
-         * @return array
535
+         * @return string
536 536
          */
537 537
         static private function ___getAddButtonAttributes( $sContainerTagID, $oMsg, $aArguments ) {
538 538
             return self::getAttributes(
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -520,7 +520,7 @@
 block discarded – undo
520 520
             return self::getAttributes(
521 521
                     array(
522 522
                     'class'     => 'repeatable-section-remove-button button-secondary '
523
-                                   . 'repeatable-section-button button button-large',
523
+                                    . 'repeatable-section-button button button-large',
524 524
                     'title'     => $oMsg->get( 'remove_section' ),
525 525
                     'style'     => $iSectionCount <= 1
526 526
                         ? 'display:none'
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -441,7 +441,7 @@  discard block
 block discarded – undo
441 441
         if ( empty( $asArguments ) ) {
442 442
             return ''; 
443 443
         }
444
-        if ( self::hasBeenCalled( 'repeatable_section_' . $sContainerTagID ) ) {
444
+        if ( self::hasBeenCalled( 'repeatable_section_'.$sContainerTagID ) ) {
445 445
             return '';
446 446
         }
447 447
 
@@ -449,16 +449,16 @@  discard block
 block discarded – undo
449 449
         $_oFormatter    = new AdminPageFramework_Form_Model___Format_RepeatableSection( $asArguments, $oMsg );
450 450
         $_aArguments    = $_oFormatter->get();
451 451
         $_sButtons      = "<div class='admin-page-framework-repeatable-section-buttons-outer-container'>"
452
-                . "<div " . self::___getContainerAttributes( $_aArguments, $oMsg ) . ' >'
453
-                    . "<a " . self::___getRemoveButtonAttributes( $sContainerTagID, $oMsg, $iSectionCount ) . ">-</a>"
454
-                    . "<a " . self::___getAddButtonAttributes( $sContainerTagID, $oMsg, $_aArguments ) . ">+</a>"
452
+                . "<div ".self::___getContainerAttributes( $_aArguments, $oMsg ).' >'
453
+                    . "<a ".self::___getRemoveButtonAttributes( $sContainerTagID, $oMsg, $iSectionCount ).">-</a>"
454
+                    . "<a ".self::___getAddButtonAttributes( $sContainerTagID, $oMsg, $_aArguments ).">+</a>"
455 455
                 . "</div>"
456 456
             . "</div>"
457 457
             . AdminPageFramework_Form_Utility::getModalForDisabledRepeatableElement(
458
-                'repeatable_section_disabled_' . $sContainerTagID,
458
+                'repeatable_section_disabled_'.$sContainerTagID,
459 459
                 $_aArguments[ 'disabled' ]
460 460
             );
461
-        $_sButtonsHTML  = '"' . $_sButtons . '"';
461
+        $_sButtonsHTML  = '"'.$_sButtons.'"';
462 462
         $_aJSArray      = json_encode( $_aArguments );
463 463
         $_sScript       = <<<JAVASCRIPTS
464 464
 jQuery( document ).ready( function() {
@@ -505,12 +505,12 @@  discard block
 block discarded – undo
505 505
                     empty( $aArguments[ 'disabled' ] ) ? '' : 'disabled'
506 506
                 ),
507 507
             );
508
-            unset( $aArguments[ 'disabled' ][ 'message' ] );    // this element can contain HTML tags.
508
+            unset( $aArguments[ 'disabled' ][ 'message' ] ); // this element can contain HTML tags.
509 509
             // Needs to remove it if it is empty as its data attribute will be checked in the JavaScript script.
510 510
             if ( empty( $aArguments[ 'disabled' ] ) ) {
511 511
                 unset( $aArguments[ 'disabled' ] );
512 512
             }
513
-            return self::getAttributes( $_aAttriubtes ) . ' ' . self::getDataAttributes( $aArguments );
513
+            return self::getAttributes( $_aAttriubtes ).' '.self::getDataAttributes( $aArguments );
514 514
         }
515 515
         /**
516 516
          * @return  array
@@ -541,10 +541,10 @@  discard block
 block discarded – undo
541 541
                         . 'repeatable-section-button button button-large',
542 542
                     'title'     => $oMsg->get( 'add_section' ),
543 543
                     'data-id'   => $sContainerTagID,
544
-                    'href'      => ! empty( $aArguments[ 'disabled' ] )
545
-                        ? '#TB_inline?width=' . $aArguments[ 'disabled' ][ 'box_width' ]
546
-                            . '&height=' . $aArguments[ 'disabled' ][ 'box_height' ]
547
-                            . '&inlineId=' . 'repeatable_section_disabled_' . $sContainerTagID
544
+                    'href'      => !empty( $aArguments[ 'disabled' ] )
545
+                        ? '#TB_inline?width='.$aArguments[ 'disabled' ][ 'box_width' ]
546
+                            . '&height='.$aArguments[ 'disabled' ][ 'box_height' ]
547
+                            . '&inlineId='.'repeatable_section_disabled_'.$sContainerTagID
548 548
                         : null,
549 549
                 )
550 550
             );
Please login to merge, or discard this patch.