Completed
Branch dev (a3767f)
by Michael
35:22 queued 08:37
created
factory/_abstract/_view/AdminPageFramework_Factory_View__SettingNotice.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
      */
48 48
     public function _replyToPrintSettingNotice() {
49 49
             
50
-        if ( ! $this->_shouldProceed() ) {
50
+        if ( !$this->_shouldProceed() ) {
51 51
             return;
52 52
         }
53 53
         $this->oFactory->oForm->printSubmitNotices();
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
          */
62 62
         private function _shouldProceed() {
63 63
             
64
-            if ( ! $this->oFactory->_isInThePage() ) { 
64
+            if ( !$this->oFactory->_isInThePage() ) { 
65 65
                 return false; 
66 66
             }
67 67
                 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,12 +61,12 @@
 block discarded – undo
61 61
          */
62 62
         private function _shouldProceed() {
63 63
             
64
-            if ( ! $this->oFactory->_isInThePage() ) { 
64
+            if ( ! $this->oFactory->_isInThePage() ) {
65 65
                 return false; 
66 66
             }
67 67
                 
68 68
             // Ensure this method is called only once per a page load.
69
-            if ( self::$_bSettingNoticeLoaded ) { 
69
+            if ( self::$_bSettingNoticeLoaded ) {
70 70
                 return false;
71 71
             }
72 72
             self::$_bSettingNoticeLoaded = true;
Please login to merge, or discard this patch.
factory/_abstract/_view/AdminPageFramework_Factory___Script_Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * 
37 37
      * @since       3.3.0
38 38
      */
39
-    public function __construct( $oMsg=null ) {
39
+    public function __construct( $oMsg = null ) {
40 40
         
41 41
         $_sClassName = get_class( $this );
42 42
         if ( in_array( $_sClassName, self::$_aEnqueued ) ) {
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function _replyToPrintScript() {
76 76
         $_sScript = $this->getScript( $this->oMsg );
77
-        if ( ! $_sScript ) {
77
+        if ( !$_sScript ) {
78 78
             return;
79 79
         }
80
-        echo "<script type='text/javascript' class='" . strtolower( get_class( $this ) ) . "'>"
80
+        echo "<script type='text/javascript' class='".strtolower( get_class( $this ) )."'>"
81 81
                 . $_sScript
82 82
             . "</script>";
83 83
     }
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.
development/factory/_abstract/form/AdminPageFramework_Form_Base.php 3 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,18 +57,18 @@  discard block
 block discarded – undo
57 57
         }
58 58
         
59 59
         // If the section ID is not registered, return false.
60
-        if ( ! array_key_exists( $sID, $this->aSectionsets ) ) { 
60
+        if ( !array_key_exists( $sID, $this->aSectionsets ) ) { 
61 61
             return false; 
62 62
         }
63 63
         
64 64
         // the fields array's first dimension is also filled with the keys of section ids.
65
-        if ( ! array_key_exists( $sID, $this->aFieldsets ) ) { 
65
+        if ( !array_key_exists( $sID, $this->aFieldsets ) ) { 
66 66
             return false; 
67 67
         }
68 68
         
69 69
         // Since numeric IDs are denied at the beginning of the method, the elements will not be sub-sections.
70 70
         $_bIsSeciton = false;
71
-        foreach( $this->aFieldsets as $_sSectionID => $_aFields ) {    
71
+        foreach ( $this->aFieldsets as $_sSectionID => $_aFields ) {    
72 72
         
73 73
             if ( $_sSectionID == $sID ) { 
74 74
                 $_bIsSeciton = true; 
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
      * @return      boolean
95 95
      */
96 96
     public function canUserView( $sCapability ) {
97
-        if ( ! $sCapability  ) {
97
+        if ( !$sCapability ) {
98 98
             return true;
99 99
         }
100 100
         return ( boolean ) current_user_can( $sCapability );
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * @since       DEVVER
140 140
      */
141 141
     public function callBack( $oCallable, $asParameters ) {
142
-        $_aParameters   = self::getAsArray( 
142
+        $_aParameters = self::getAsArray( 
143 143
             $asParameters, 
144 144
             true // preserve empty
145 145
         );
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -57,25 +57,25 @@
 block discarded – undo
57 57
         }
58 58
         
59 59
         // If the section ID is not registered, return false.
60
-        if ( ! array_key_exists( $sID, $this->aSectionsets ) ) { 
60
+        if ( ! array_key_exists( $sID, $this->aSectionsets ) ) {
61 61
             return false; 
62 62
         }
63 63
         
64 64
         // the fields array's first dimension is also filled with the keys of section ids.
65
-        if ( ! array_key_exists( $sID, $this->aFieldsets ) ) { 
65
+        if ( ! array_key_exists( $sID, $this->aFieldsets ) ) {
66 66
             return false; 
67 67
         }
68 68
         
69 69
         // Since numeric IDs are denied at the beginning of the method, the elements will not be sub-sections.
70 70
         $_bIsSeciton = false;
71
-        foreach( $this->aFieldsets as $_sSectionID => $_aFields ) {    
71
+        foreach( $this->aFieldsets as $_sSectionID => $_aFields ) {
72 72
         
73
-            if ( $_sSectionID == $sID ) { 
73
+            if ( $_sSectionID == $sID ) {
74 74
                 $_bIsSeciton = true; 
75 75
             }
76 76
             
77 77
             // a field using the ID is found, and it precedes a section match.     
78
-            if ( array_key_exists( $sID, $_aFields ) ) { 
78
+            if ( array_key_exists( $sID, $_aFields ) ) {
79 79
                 return false; 
80 80
             }
81 81
             
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.
development/factory/_abstract/form/AdminPageFramework_Form_Meta.php 3 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@
 block discarded – undo
84 84
                 
85 85
                 // The first element is the option key; the section or field dimensional keys follow.
86 86
                 if ( '__dummy_option_key' === $_aDimensionalKeys[ 0 ] ) {
87
-                     array_shift( $_aDimensionalKeys );
87
+                        array_shift( $_aDimensionalKeys );
88 88
                 }
89 89
                 
90 90
                 $this->unsetDimensionalArrayElement( 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -31,9 +31,9 @@  discard block
 block discarded – undo
31 31
      * @param       string      $sStructureType    The type of object. Currently 'post_meta_box' or 'user_meta' is accepted.
32 32
      * @return      void
33 33
      */
34
-    public function updateMetaDataByType( $iObjectID, array $aInput, array $aSavedMeta, $sStructureType='post_meta_box' ) {
34
+    public function updateMetaDataByType( $iObjectID, array $aInput, array $aSavedMeta, $sStructureType = 'post_meta_box' ) {
35 35
         
36
-        if ( ! $iObjectID ) {
36
+        if ( !$iObjectID ) {
37 37
             return;
38 38
         }
39 39
            
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             'post_meta_box'     => 'update_post_meta',
42 42
             'user_meta'         => 'update_user_meta',               
43 43
         );
44
-        if ( ! in_array( $sStructureType, array_keys( $_aFunctionNameMapByFieldsType ) ) ) {
44
+        if ( !in_array( $sStructureType, array_keys( $_aFunctionNameMapByFieldsType ) ) ) {
45 45
             return;
46 46
         }
47 47
         $_sFunctionName = $this->getElement( $_aFunctionNameMapByFieldsType, $sStructureType );
@@ -69,16 +69,16 @@  discard block
 block discarded – undo
69 69
          */
70 70
         private function _getInputByUnset( array $aInput ) {
71 71
             
72
-            $_sUnsetKey = '__unset_' . $this->sStructureType;
73
-            if ( ! isset( $_POST[ $_sUnsetKey ] ) ) {
72
+            $_sUnsetKey = '__unset_'.$this->sStructureType;
73
+            if ( !isset( $_POST[ $_sUnsetKey ] ) ) {
74 74
                 return $aInput;
75 75
             }
76 76
             
77 77
             $_aUnsetElements = array_unique( $_POST[ $_sUnsetKey ] );
78
-            foreach( $_aUnsetElements as $_sFlatInputName ) {
78
+            foreach ( $_aUnsetElements as $_sFlatInputName ) {
79 79
                 
80 80
                 $_aDimensionalKeys = explode( '|', $_sFlatInputName );
81
-                if ( ! isset( $_aDimensionalKeys[ 0 ] ) ) {
81
+                if ( !isset( $_aDimensionalKeys[ 0 ] ) ) {
82 82
                     continue;
83 83
                 }
84 84
                 
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
 
114 114
             $_vSavedValue = $this->getElement(
115 115
                 $aSavedMeta, // subject
116
-                $_sSectionOrFieldID,    // dimensional keys
116
+                $_sSectionOrFieldID, // dimensional keys
117 117
                 null   // default value
118 118
             );
119 119
                 
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
          */
108 108
         private function _updateMetaDatumByFuncitonName( $iObjectID, $_vValue, array $aSavedMeta, $_sSectionOrFieldID, $_sFunctionName ) {
109 109
             
110
-            if ( is_null( $_vValue ) ) { 
110
+            if ( is_null( $_vValue ) ) {
111 111
                 return;
112 112
             }
113 113
 
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
                 
120 120
             // PHP can compare even array contents with the == operator. See http://www.php.net/manual/en/language.operators.array.php
121 121
             // if the input value and the saved meta value are the same, no need to update it.
122
-            if ( $_vValue == $_vSavedValue ) { 
122
+            if ( $_vValue == $_vSavedValue ) {
123 123
                 return; 
124 124
             }
125 125
             
Please login to merge, or discard this patch.
development/factory/_abstract/form/AdminPageFramework_Form_Model.php 3 patches
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -140,12 +140,12 @@  discard block
 block discarded – undo
140 140
      * Changed the name from `getFieldsModel()`.
141 141
      * @return      array
142 142
      */
143
-    public function getDataStructureFromAddedFieldsets()  {
143
+    public function getDataStructureFromAddedFieldsets() {
144 144
                     
145 145
         $_aFormDataStructure  = array();
146 146
         foreach ( $this->getAsArray( $this->aFieldsets ) as $_sSectionID => $_aFieldsets ) {
147 147
 
148
-            if ( $_sSectionID != '_default' ) {                
148
+            if ( $_sSectionID != '_default' ) {
149 149
                 $_aFormDataStructure[ $_sSectionID ] = $_aFieldsets;
150 150
                 continue;
151 151
             }
@@ -178,7 +178,7 @@  discard block
 block discarded – undo
178 178
      * @param       array       $aSubject       The subject array to modify. Usually the saved option data.
179 179
      * @return      array       The modified options array.
180 180
      */
181
-    public function dropRepeatableElements( array $aSubject ) {        
181
+    public function dropRepeatableElements( array $aSubject ) {
182 182
         $_oFilterRepeatableElements = new AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements( 
183 183
             $aSubject,
184 184
             $this->getElementAsArray(
Please login to merge, or discard this patch.
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -391,7 +391,6 @@  discard block
 block discarded – undo
391 391
      * 
392 392
      * @since       DEVVER
393 393
      * @param       array       $aSavedData
394
-     * @param       boolean     $bOnlyFieldsets     Whether to format only the fieldsets. The taxonomy field factory uses this parameter.
395 394
      */
396 395
     protected function _formatElementDefinitions( array $aSavedData ) {
397 396
                 
@@ -427,7 +426,6 @@  discard block
 block discarded – undo
427 426
      * Changed the name from `_getFieldErrors()`. 
428 427
      * @access      public      The field type class accesses this method to render nested fields.
429 428
      * @internal
430
-     * @param       boolean     $bDelete    whether or not the transient should be deleted after retrieving it. 
431 429
      * @return      array
432 430
      */
433 431
     public function getFieldErrors() {
Please login to merge, or discard this patch.
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -36,10 +36,10 @@  discard block
 block discarded – undo
36 36
      * @since       DEVVER
37 37
      * @return      array
38 38
      */
39
-    public function getSubmittedData( array $aDataToParse, $bExtractFromFieldStructure=true, $bStripSlashes=true ) {
39
+    public function getSubmittedData( array $aDataToParse, $bExtractFromFieldStructure = true, $bStripSlashes = true ) {
40 40
                 
41 41
         // Extracts the form data from the subject data for parsing
42
-        $_aSubmittedFormData    = $bExtractFromFieldStructure
42
+        $_aSubmittedFormData = $bExtractFromFieldStructure
43 43
             ? $this->castArrayContents( 
44 44
                 $this->getDataStructureFromAddedFieldsets(), // form data (options) structure
45 45
                 $aDataToParse   // the subject data array, usually $_POST.
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
             : $aDataToParse;
48 48
 
49 49
         // 3.6.0 - sorts dynamic eleemnts.        
50
-        $_aSubmittedFormData    = $this->getSortedInputs( $_aSubmittedFormData ); 
50
+        $_aSubmittedFormData = $this->getSortedInputs( $_aSubmittedFormData ); 
51 51
         
52 52
         return $bStripSlashes
53 53
             ? stripslashes_deep( $_aSubmittedFormData ) // fixes magic quotes
@@ -72,12 +72,12 @@  discard block
 block discarded – undo
72 72
             array_merge(
73 73
                 $this->getElementAsArray( 
74 74
                     $_POST,
75
-                    '__repeatable_elements_' . $this->aArguments[ 'structure_type' ],
75
+                    '__repeatable_elements_'.$this->aArguments[ 'structure_type' ],
76 76
                     array()
77 77
                 ),
78 78
                 $this->getElementAsArray( 
79 79
                     $_POST,
80
-                    '__sortable_elements_' . $this->aArguments[ 'structure_type' ],
80
+                    '__sortable_elements_'.$this->aArguments[ 'structure_type' ],
81 81
                     array()
82 82
                 )
83 83
             )
@@ -140,9 +140,9 @@  discard block
 block discarded – undo
140 140
      * Changed the name from `getFieldsModel()`.
141 141
      * @return      array
142 142
      */
143
-    public function getDataStructureFromAddedFieldsets()  {
143
+    public function getDataStructureFromAddedFieldsets() {
144 144
                     
145
-        $_aFormDataStructure  = array();
145
+        $_aFormDataStructure = array();
146 146
         foreach ( $this->getAsArray( $this->aFieldsets ) as $_sSectionID => $_aFieldsets ) {
147 147
 
148 148
             if ( $_sSectionID != '_default' ) {                
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
             }
152 152
             
153 153
             // For default field items.
154
-            foreach( $_aFieldsets as $_sFieldID => $_aFieldset ) {
154
+            foreach ( $_aFieldsets as $_sFieldID => $_aFieldset ) {
155 155
                 $_aFormDataStructure[ $_aFieldset[ 'field_id' ] ] = $_aFieldset;
156 156
             }
157 157
 
@@ -183,7 +183,7 @@  discard block
 block discarded – undo
183 183
             $aSubject,
184 184
             $this->getElementAsArray(
185 185
                 $_POST,
186
-                '__repeatable_elements_' . $this->aArguments[ 'structure_type' ]
186
+                '__repeatable_elements_'.$this->aArguments[ 'structure_type' ]
187 187
             )
188 188
         );
189 189
         return $_oFilterRepeatableElements->get();
@@ -196,7 +196,7 @@  discard block
 block discarded – undo
196 196
     public function _replyToRegisterFormItems( /* $oScreen */ ) {
197 197
 
198 198
         // Check if the form should be created or not.
199
-        if ( ! $this->isInThePage() ) {
199
+        if ( !$this->isInThePage() ) {
200 200
             return;
201 201
         }
202 202
                 
@@ -229,7 +229,7 @@  discard block
 block discarded – undo
229 229
             $this->aArguments,
230 230
             $this->aFieldsets,
231 231
             self::$_aResources,
232
-            $this->aFieldTypeDefinitions,   // must be called after performing `_setFieldTypeDefinitions()`.
232
+            $this->aFieldTypeDefinitions, // must be called after performing `_setFieldTypeDefinitions()`.
233 233
             $this->aCallbacks
234 234
         );
235 235
         self::$_aResources = $_oFieldResources->get(); // updates the property
@@ -246,10 +246,10 @@  discard block
 block discarded – undo
246 246
         $this->callBack(
247 247
             $this->aCallbacks[ 'handle_form_data' ],
248 248
             array(
249
-                $this->aSavedData,      // 1st parameter
250
-                $this->aArguments,      // 2nd parameter
251
-                $this->aSectionsets,    // 3rd parameter
252
-                $this->aFieldsets,      // 4th parameter
249
+                $this->aSavedData, // 1st parameter
250
+                $this->aArguments, // 2nd parameter
251
+                $this->aSectionsets, // 3rd parameter
252
+                $this->aFieldsets, // 4th parameter
253 253
             )
254 254
         );        
255 255
         
@@ -263,15 +263,15 @@  discard block
 block discarded – undo
263 263
             $this->aSectionsets = $this->callBack(
264 264
                 $this->aCallbacks[ 'secitonsets_before_registration' ],
265 265
                 array(
266
-                    $this->aSectionsets,    // 1st parameter
266
+                    $this->aSectionsets, // 1st parameter
267 267
                 )
268 268
             );
269 269
             // Let the main routine modify the fieldsets definition array.
270 270
             $this->aFieldsets = $this->callBack(
271 271
                 $this->aCallbacks[ 'fieldsets_before_registration' ],
272 272
                 array(
273
-                    $this->aFieldsets,    // 1st parameter
274
-                    $this->aSectionsets,  // 2nd parameter
273
+                    $this->aFieldsets, // 1st parameter
274
+                    $this->aSectionsets, // 2nd parameter
275 275
                 )
276 276
             );
277 277
 
@@ -357,7 +357,7 @@  discard block
 block discarded – undo
357 357
              */
358 358
             private function _getLastInputs() {
359 359
                 
360
-                $_sKey      = 'apf_tfd' . md5( 'temporary_form_data_' . $this->aArguments[ 'caller_id' ] . get_current_user_id() );
360
+                $_sKey      = 'apf_tfd'.md5( 'temporary_form_data_'.$this->aArguments[ 'caller_id' ].get_current_user_id() );
361 361
                 $_vValue    = $this->getTransient( $_sKey );
362 362
                 $this->deleteTransient( $_sKey );
363 363
                 if ( is_array( $_vValue ) ) {
Please login to merge, or discard this patch.
form/_model/AdminPageFramework_Form_Model___BuiltInFieldTypeDefinitions.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         'posttype',
43 43
         'size',
44 44
         'section_title', // 3.0.0+
45
-        'system',        // 3.3.0+
45
+        'system', // 3.3.0+
46 46
     );    
47 47
     
48 48
     public $sCallerID = '';
@@ -72,10 +72,10 @@  discard block
 block discarded – undo
72 72
     public function get() {
73 73
         
74 74
         $_aFieldTypeDefinitions = array();
75
-        foreach( self::$_aDefaultFieldTypeSlugs as $_sFieldTypeSlug ) {
75
+        foreach ( self::$_aDefaultFieldTypeSlugs as $_sFieldTypeSlug ) {
76 76
             
77 77
             $_sFieldTypeClassName = "AdminPageFramework_FieldType_{$_sFieldTypeSlug}";
78
-            if ( ! class_exists( $_sFieldTypeClassName ) ) { 
78
+            if ( !class_exists( $_sFieldTypeClassName ) ) { 
79 79
                 continue; 
80 80
             }
81 81
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 $this->oMsg, 
86 86
                 false           // `false` to disable auto-registering.     
87 87
             );    
88
-            foreach( $_oFieldType->aFieldTypeSlugs as $_sSlug ) {     
88
+            foreach ( $_oFieldType->aFieldTypeSlugs as $_sSlug ) {     
89 89
                 $_aFieldTypeDefinitions[ $_sSlug ] = $_oFieldType->getDefinitionArray();
90 90
             }
91 91
         }
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
         foreach( self::$_aDefaultFieldTypeSlugs as $_sFieldTypeSlug ) {
76 76
             
77 77
             $_sFieldTypeClassName = "AdminPageFramework_FieldType_{$_sFieldTypeSlug}";
78
-            if ( ! class_exists( $_sFieldTypeClassName ) ) { 
78
+            if ( ! class_exists( $_sFieldTypeClassName ) ) {
79 79
                 continue; 
80 80
             }
81 81
 
@@ -85,7 +85,7 @@  discard block
 block discarded – undo
85 85
                 $this->oMsg, 
86 86
                 false           // `false` to disable auto-registering.     
87 87
             );    
88
-            foreach( $_oFieldType->aFieldTypeSlugs as $_sSlug ) {     
88
+            foreach( $_oFieldType->aFieldTypeSlugs as $_sSlug ) {
89 89
                 $_aFieldTypeDefinitions[ $_sSlug ] = $_oFieldType->getDefinitionArray();
90 90
             }
91 91
         }
Please login to merge, or discard this patch.
_abstract/form/_model/AdminPageFramework_Form_Model___DefaultValues.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
     /**
110 110
      * @deprecated
111 111
      */
112
-  /*   public function _get() {
112
+    /*   public function _get() {
113 113
         
114 114
         $_aDefaultOptions = array();
115 115
         foreach( $this->aFieldsets as $_sSectionID => $_aFieldsetsPerSection ) {
Please login to merge, or discard this patch.
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  */
18 18
 class AdminPageFramework_Form_Model___DefaultValues extends AdminPageFramework_Form_Base {
19 19
     
20
-    public $aFieldsets  = array();
20
+    public $aFieldsets = array();
21 21
 
22 22
     /**
23 23
      * Sets up hooks.
@@ -28,7 +28,7 @@  discard block
 block discarded – undo
28 28
         $_aParameters = func_get_args() + array( 
29 29
             $this->aFieldsets, 
30 30
         );
31
-        $this->aFieldsets  = $_aParameters[ 0 ];                    
31
+        $this->aFieldsets = $_aParameters[ 0 ];                    
32 32
         
33 33
     }
34 34
 
@@ -86,13 +86,13 @@  discard block
 block discarded – undo
86 86
          */
87 87
         private function _getDefaultValues( $aFieldsets, $aDefaultOptions ) {
88 88
             
89
-            foreach( $aFieldsets as $_sSectionPath => $_aItems ) {
89
+            foreach ( $aFieldsets as $_sSectionPath => $_aItems ) {
90 90
                 
91 91
                 $_aSectionPath   = explode( '|', $_sSectionPath );
92
-                foreach( $_aItems as $_sFieldPath => $_aFieldset ) {
92
+                foreach ( $_aItems as $_sFieldPath => $_aFieldset ) {
93 93
                     $_aFieldPath = explode( '|', $_sFieldPath );
94 94
                     $this->setMultiDimensionalArray( 
95
-                        $aDefaultOptions,  // by reference
95
+                        $aDefaultOptions, // by reference
96 96
                         '_default' === $_sSectionPath
97 97
                             ? array( $_sFieldPath )
98 98
                             : array_merge( $_aSectionPath, $_aFieldPath ), // key address
@@ -148,11 +148,11 @@  discard block
 block discarded – undo
148 148
             // If there are no sub-fields     
149 149
             if ( count( $_aSubFields ) == 0 ) {
150 150
                 return $this->getElement(
151
-                    $aFieldset,     // subject
152
-                    'value',        // key
151
+                    $aFieldset, // subject
152
+                    'value', // key
153 153
                     $this->getElement(   // default value
154
-                        $aFieldset,      // subject  
155
-                        'default',       // key
154
+                        $aFieldset, // subject  
155
+                        'default', // key
156 156
                         null             // default value
157 157
                     )
158 158
                 );
@@ -161,13 +161,13 @@  discard block
 block discarded – undo
161 161
             // Otherwise, there are sub-fields
162 162
             $_aDefault = array();
163 163
             array_unshift( $_aSubFields, $aFieldset ); // insert the main field into the very first index.
164
-            foreach( $_aSubFields as $_iIndex => $_aField ) {
164
+            foreach ( $_aSubFields as $_iIndex => $_aField ) {
165 165
                 $_aDefault[ $_iIndex ] = $this->getElement( 
166
-                    $_aField,   // subject
167
-                    'value',    // key
166
+                    $_aField, // subject
167
+                    'value', // key
168 168
                     $this->getElement(   // default value
169
-                        $_aField,   // subject  
170
-                        'default',  // key
169
+                        $_aField, // subject  
170
+                        'default', // key
171 171
                         null        // default value
172 172
                     )
173 173
                 ); 
Please login to merge, or discard this patch.
form/_model/AdminPageFramework_Form_Model___FieldTypeRegistration.php 1 patch
Indentation   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@  discard block
 block discarded – undo
9 9
 
10 10
 /**
11 11
  * Provides methods to retrieve field type resources.
12
- 
13 12
  * @package     AdminPageFramework
14 13
  * @subpackage  Form
15 14
  * @since       DEVVER
@@ -42,7 +41,7 @@  discard block
 block discarded – undo
42 41
                 call_user_func_array( 
43 42
                     $aFieldTypeDefinition[ 'hfFieldSetTypeSetter' ], 
44 43
                     array( $sStructureType ) 
45
-               );
44
+                );
46 45
             }
47 46
             
48 47
             if ( is_callable( $aFieldTypeDefinition[ 'hfFieldLoader' ] ) ) {
Please login to merge, or discard this patch.