Completed
Branch dev (a3767f)
by Michael
40:38
created
_model/formatter/AdminPageFramework_Form_Model___Format_FieldsetOutput.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -32,21 +32,21 @@  discard block
 block discarded – undo
32 32
      * @internal
33 33
      */ 
34 34
     static public $aStructure = array(       
35
-        '_section_index'            => null,    // 3.0.0+ - internally set to indicate the section index for repeatable sections.        
35
+        '_section_index'            => null, // 3.0.0+ - internally set to indicate the section index for repeatable sections.        
36 36
         
37 37
         'tag_id'                    => null,
38
-        '_tag_id_model'             => '',      // 3.6.0+   
38
+        '_tag_id_model'             => '', // 3.6.0+   
39 39
         
40
-        '_field_name'               => '',      // 3.6.0+   
41
-        '_field_name_model'         => '',      // 3.6.0+           
40
+        '_field_name'               => '', // 3.6.0+   
41
+        '_field_name_model'         => '', // 3.6.0+           
42 42
         
43
-        '_field_name_flat'          => '',      // 3.6.0+
44
-        '_field_name_flat_model'    => '',      // 3.6.0+   
43
+        '_field_name_flat'          => '', // 3.6.0+
44
+        '_field_name_flat_model'    => '', // 3.6.0+   
45 45
                 
46
-        '_field_address'            => '',      // 3.6.0+
47
-        '_field_address_model'      => '',      // 3.6.0+
46
+        '_field_address'            => '', // 3.6.0+
47
+        '_field_address_model'      => '', // 3.6.0+
48 48
                 
49
-        '_parent_field_object'      => null,    // 3.6.0+   Assigned when a field creates a nested field.
49
+        '_parent_field_object'      => null, // 3.6.0+   Assigned when a field creates a nested field.
50 50
         
51 51
     );        
52 52
     
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $_aFieldset = $this->aFieldset + self::$aStructure;
90 90
 
91 91
         // The section index must be set before generating a field tag id as it uses a section index.
92
-        $_aFieldset[ '_section_index' ]   = $this->iSectionIndex;
92
+        $_aFieldset[ '_section_index' ] = $this->iSectionIndex;
93 93
 
94 94
         $_oFieldTagIDGenerator = new AdminPageFramework_Form_View___Generate_FieldTagID( 
95 95
             $_aFieldset,
Please login to merge, or discard this patch.
AdminPageFramework_Form_Model___Modifier_FilterRepeatableElements.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      * @return      array       The formatted definition array.
41 41
      */
42 42
     public function get() {
43
-        foreach( $this->aDimensionalKeys as $_sFlatFieldAddress ) {
43
+        foreach ( $this->aDimensionalKeys as $_sFlatFieldAddress ) {
44 44
             $this->unsetDimensionalArrayElement( 
45 45
                 $this->aSubject, 
46 46
                 explode( '|', $_sFlatFieldAddress )
Please login to merge, or discard this patch.
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 array( $this, '_replyToAddPostTypeQueryInEditPostLink' ), 
34 34
                 10, 
35 35
                 3 
36
-           );
36
+            );
37 37
         }        
38 38
     }
39 39
 
Please login to merge, or discard this patch.
form/_model/modifier/AdminPageFramework_Form_Model___Modifier_SortInput.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
             $this->aInput, 
30 30
             $this->aFieldAddresses, 
31 31
         );
32
-        $this->aInput               = $_aParameters[ 0 ];
32
+        $this->aInput = $_aParameters[ 0 ];
33 33
         $this->aFieldAddresses = $_aParameters[ 1 ];
34 34
         
35 35
         
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      */
43 43
     public function get() {
44 44
 
45
-        foreach( $this->_getFormattedDimensionalKeys( $this->aFieldAddresses ) as $_sFlatFieldAddress ) {
45
+        foreach ( $this->_getFormattedDimensionalKeys( $this->aFieldAddresses ) as $_sFlatFieldAddress ) {
46 46
             
47 47
             $_aDimensionalKeys = explode( '|', $_sFlatFieldAddress );
48 48
                         
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
             
54 54
             // If the retrieved value does not exist, null will be given.
55 55
             // This occurs with page meta boxes.
56
-            if ( ! is_array( $_aDynamicElements ) ) {
56
+            if ( !is_array( $_aDynamicElements ) ) {
57 57
                 continue;
58 58
             }
59 59
             
Please login to merge, or discard this patch.
factory/_abstract/form/_view/AdminPageFramework_Form_View__Resource.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -103,10 +103,10 @@  discard block
 block discarded – undo
103 103
      * @since       DEVVER
104 104
      */
105 105
     public function _replyToEnqueueScripts() {
106
-        if ( ! $this->oForm->isInThePage() ) {
106
+        if ( !$this->oForm->isInThePage() ) {
107 107
             return;
108 108
         }
109
-        foreach( $this->oForm->getResources( 'src_scripts' ) as $_asEnqueue ) {
109
+        foreach ( $this->oForm->getResources( 'src_scripts' ) as $_asEnqueue ) {
110 110
             $this->_enqueueScript( $_asEnqueue );
111 111
         }       
112 112
     }
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             private function _getFormattedEnqueueScript( $asEnqueue ) {
155 155
                 static $_iCallCount = 1;
156 156
                 $_aEnqueueItem = $this->getAsArray( $asEnqueue ) + array(
157
-                    'handle_id'     => 'script_' . $this->oForm->aArguments[ 'caller_id' ] . '_' . $_iCallCount,
157
+                    'handle_id'     => 'script_'.$this->oForm->aArguments[ 'caller_id' ].'_'.$_iCallCount,
158 158
                     'src'           => null,
159 159
                     'dependencies'  => null,
160 160
                     'version'       => null,
@@ -177,10 +177,10 @@  discard block
 block discarded – undo
177 177
      */    
178 178
     public function _replyToEnqueueStyles() {
179 179
 
180
-        if ( ! $this->oForm->isInThePage() ) {
180
+        if ( !$this->oForm->isInThePage() ) {
181 181
             return;
182 182
         }
183
-        foreach( $this->oForm->getResources( 'src_styles' ) as $_asEnqueueItem ) {
183
+        foreach ( $this->oForm->getResources( 'src_styles' ) as $_asEnqueueItem ) {
184 184
             $this->_enqueueStyle( $_asEnqueueItem );
185 185
         }           
186 186
     
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
             private function _getFormattedEnqueueStyle( $asEnqueue ) {
202 202
                 static $_iCallCount = 1;
203 203
                 $_aEnqueueItem = $this->getAsArray( $asEnqueue ) + array(
204
-                    'handle_id'     => 'style_' . $this->oForm->aArguments[ 'caller_id' ] . '_' . $_iCallCount,
204
+                    'handle_id'     => 'style_'.$this->oForm->aArguments[ 'caller_id' ].'_'.$_iCallCount,
205 205
                     'src'           => null,
206 206
                     'dependencies'  => null,
207 207
                     'version'       => null,
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
      */    
223 223
     public function _replyToAddStyle() {
224 224
         
225
-        if ( ! $this->oForm->isInThePage() ) {
225
+        if ( !$this->oForm->isInThePage() ) {
226 226
             return;
227 227
         }   
228 228
         $_sCSSRules = $this->_getFormattedInlineStyles( 
@@ -267,7 +267,7 @@  discard block
 block discarded – undo
267 267
      */    
268 268
     public function _replyToAddScript() {
269 269
         
270
-        if ( ! $this->oForm->isInThePage() ) {
270
+        if ( !$this->oForm->isInThePage() ) {
271 271
             return;
272 272
         }        
273 273
         
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@  discard block
 block discarded – undo
144 144
                  * @return      string
145 145
                  * @since       DEVVER
146 146
                  */
147
-                private function _getScriptElementConcealerCSSRules() {                    
147
+                private function _getScriptElementConcealerCSSRules() {
148 148
                     return ".admin-page-framework-form-js-on { visibility: hidden; }";
149 149
                 }
150 150
 
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
         );
282 282
         
283 283
         $_sID = $this->sanitizeSlug( strtolower( $this->oForm->aArguments[ 'caller_id' ] ) );
284
-        if ( $_sCSSRules ) {            
284
+        if ( $_sCSSRules ) {
285 285
             echo "<style type='text/css' id='inline-style-{$_sID}' class='admin-page-framework-form-style'>"
286 286
                     . $_sCSSRules
287 287
                 . "</style>";
Please login to merge, or discard this patch.
factory/_abstract/form/_view/AdminPageFramework_Form_View___DebugInfo.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class AdminPageFramework_Form_View___DebugInfo extends AdminPageFramework_WPUtility {            
20 20
 
21
-    public $sStructureType   = '';
21
+    public $sStructureType = '';
22 22
     
23 23
     /**
24 24
      * Stores the message object.
@@ -49,18 +49,18 @@  discard block
 block discarded – undo
49 49
      */
50 50
     public function get() {
51 51
         
52
-        if ( ! $this->isDebugModeEnabled() ) {
52
+        if ( !$this->isDebugModeEnabled() ) {
53 53
             return '';
54 54
         }
55 55
         
56 56
         // For the generic admin pages, do no show debug information for each section.
57
-        if ( ! in_array( $this->sStructureType, array( 'widget', 'post_meta_box', 'page_meta_box', 'user_meta' ) ) ) {
57
+        if ( !in_array( $this->sStructureType, array( 'widget', 'post_meta_box', 'page_meta_box', 'user_meta' ) ) ) {
58 58
             return '';
59 59
         }
60 60
         
61 61
         return "<div class='admin-page-framework-info'>" 
62
-                . $this->oMsg->get( 'debug_info' ) . ': '
63
-                    . AdminPageFramework_Registry::NAME . ' ' . AdminPageFramework_Registry::getVersion()
62
+                . $this->oMsg->get( 'debug_info' ).': '
63
+                    . AdminPageFramework_Registry::NAME.' '.AdminPageFramework_Registry::getVersion()
64 64
             . "</div>";
65 65
         
66 66
     }
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
  * @since       DEVVER      Renamed from `AdminPageFramework_FormPart_DebugInfo`.
17 17
  * @internal
18 18
  */
19
-class AdminPageFramework_Form_View___DebugInfo extends AdminPageFramework_WPUtility {            
19
+class AdminPageFramework_Form_View___DebugInfo extends AdminPageFramework_WPUtility {
20 20
 
21 21
     public $sStructureType   = '';
22 22
     
Please login to merge, or discard this patch.
factory/_abstract/form/_view/AdminPageFramework_Form_View___Description.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@
 block discarded – undo
50 50
         }
51 51
         
52 52
         $_aOutput = array();
53
-        foreach( $this->aDescriptions as $_sDescription ) {
54
-            $_aOutput[] = "<p class='" . esc_attr( $this->sClassAttribute ) . "'>"
53
+        foreach ( $this->aDescriptions as $_sDescription ) {
54
+            $_aOutput[ ] = "<p class='".esc_attr( $this->sClassAttribute )."'>"
55 55
                     . "<span class='description'>"
56 56
                         . $_sDescription
57 57
                     . "</span>"
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
  * @since       3.6.0
16 16
  * @internal
17 17
  */
18
-class AdminPageFramework_Form_View___Description extends AdminPageFramework_WPUtility {            
18
+class AdminPageFramework_Form_View___Description extends AdminPageFramework_WPUtility {
19 19
 
20 20
     public $aDescriptions   = array();
21 21
     
Please login to merge, or discard this patch.
form/_view/attribute/AdminPageFramework_Form_View___Attribute_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * 
25 25
      * @since       3.6.0
26 26
      */
27
-    public $sContext    = '';
27
+    public $sContext = '';
28 28
  
29 29
     /**
30 30
      * 
Please login to merge, or discard this patch.
attribute/AdminPageFramework_Form_View___Attribute_FieldContainer_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
             $this->aAttributes + $this->_getAttributes()
33 33
         );
34 34
                     
35
-        $_aAttributes[ 'class' ]   = $this->getClassAttribute( 
35
+        $_aAttributes[ 'class' ] = $this->getClassAttribute( 
36 36
             $this->getElement( $_aAttributes, 'class', array() ),
37 37
             $this->getElement( $this->aArguments, array( 'class', $this->sContext ), array() )
38 38
         );
Please login to merge, or discard this patch.
form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fieldrow.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * 
25 25
      * @since       3.6.0
26 26
      */
27
-    public $sContext    = 'fieldrow';
27
+    public $sContext = 'fieldrow';
28 28
 
29 29
     /**
30 30
      * @return      array       The formatted attributes array.
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
         $_aAttributes = parent::_getFormattedAttributes();
35 35
 
36 36
         // Set the visibility CSS property for the outermost container element.
37
-        if ( $this->aArguments[ 'hidden' ] ) { 
37
+        if ( $this->aArguments[ 'hidden' ] ) {
38 38
             $_aAttributes[ 'style' ] = $this->getStyleAttribute( 
39 39
                 $this->getElement( $_aAttributes, 'style', array() ),
40 40
                 'display:none' 
Please login to merge, or discard this patch.