Completed
Branch dev (a4a708)
by
unknown
21:06
created
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.
form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fields.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
             $this->aAttributes,
39 39
             $this->iFieldsCount,
40 40
         );
41
-        $this->aArguments    = $_aParameters[ 0 ];        
41
+        $this->aArguments = $_aParameters[ 0 ];        
42 42
         $this->aAttributes  = $_aParameters[ 1 ];
43 43
         $this->iFieldsCount = $_aParameters[ 2 ];
44 44
         
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
      */
52 52
     protected function _getAttributes() {
53 53
         return array(
54
-            'id'            => $this->sContext . '-' . $this->aArguments[ 'tag_id' ],
55
-            'class'         => 'admin-page-framework-' . $this->sContext
54
+            'id'            => $this->sContext.'-'.$this->aArguments[ 'tag_id' ],
55
+            'class'         => 'admin-page-framework-'.$this->sContext
56 56
                 . $this->getAOrB( $this->aArguments[ 'repeatable' ], ' repeatable dynamic-fields', '' ) // 3.6.0+ Added the 'dynamic-fields' class selector.
57 57
                 . $this->getAOrB( $this->aArguments[ 'sortable' ], ' sortable dynamic-fields', '' ),
58 58
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 
62 62
             // 3.6.0+ Stores the total number of dynamic fields, used to generate the input id and name of repeated fields which contain an incremented index number.
63 63
             'data-largest_index'            => max(     
64
-                ( int ) $this->iFieldsCount - 1,  // zero-base index
64
+                ( int ) $this->iFieldsCount - 1, // zero-base index
65 65
                 0 
66 66
             ), // convert negative numbers to zero.
67 67
             
Please login to merge, or discard this patch.
form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fieldset.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
      * 
25 25
      * @since       3.6.0
26 26
      */
27
-    public $sContext    = 'fieldset';
27
+    public $sContext = 'fieldset';
28 28
 
29 29
     /**
30 30
      * Returns an attribute array.
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
      */
33 33
     protected function _getAttributes() {
34 34
         return array(
35
-            'id'            => $this->sContext . '-' . $this->aArguments[ 'tag_id' ],
36
-            'class'         => 'admin-page-framework-' . $this->sContext,
35
+            'id'            => $this->sContext.'-'.$this->aArguments[ 'tag_id' ],
36
+            'class'         => 'admin-page-framework-'.$this->sContext,
37 37
             'data-field_id' => $this->aArguments[ 'tag_id' ], // <-- not sure what this was for...
38 38
         );                    
39 39
     }
Please login to merge, or discard this patch.
_view/attribute/AdminPageFramework_Form_View___Attribute_SectionTable.php 3 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  */
18 18
 class AdminPageFramework_Form_View___Attribute_SectionTable extends AdminPageFramework_Form_View___Attribute_Base {
19 19
 
20
-    public $sContext    = 'section_table';
20
+    public $sContext = 'section_table';
21 21
                    
22 22
     /**
23 23
      * Returns an attribute array.
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     protected function _getAttributes() {    
29 29
         return array( 
30
-            'id'    => 'section_table-' . $this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
30
+            'id'    => 'section_table-'.$this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
31 31
             'class' =>  $this->getClassAttribute(
32 32
                 'form-table',
33 33
                 'admin-page-framework-section-table'   // referred by the collapsible section script
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @since       3.6.0
26 26
      * @return      array
27 27
      */
28
-    protected function _getAttributes() {    
28
+    protected function _getAttributes() {
29 29
         return array( 
30 30
             'id'    => 'section_table-' . $this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
31 31
             'class' =>  $this->getClassAttribute(
Please login to merge, or discard this patch.
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.
attribute/AdminPageFramework_Form_View___Attribute_SectionTableBody.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @since       3.6.0
26 26
      * @return      array
27 27
      */
28
-    protected function _getAttributes() {                    
28
+    protected function _getAttributes() {
29 29
         return array(
30 30
             'class' => $this->getAOrB(
31 31
                 $this->aArguments[ '_is_collapsible' ],
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  */
18 18
 class AdminPageFramework_Form_View___Attribute_SectionTableBody extends AdminPageFramework_Form_View___Attribute_Base {
19 19
 
20
-    public $sContext    = 'section_table_content';
20
+    public $sContext = 'section_table_content';
21 21
                    
22 22
     /**
23 23
      * Returns an attribute array.
@@ -35,10 +35,10 @@  discard block
 block discarded – undo
35 35
         return array(
36 36
             'class' => $this->getAOrB(
37 37
                 $this->aArguments[ '_is_collapsible' ],
38
-                'admin-page-framework-collapsible-section-content' . ' '
39
-                    . 'admin-page-framework-collapsible-content' . ' '
40
-                    . 'accordion-section-content' . ' '
41
-                    . 'admin-page-framework-collapsible-content-type-' . $_sCollapsibleType,
38
+                'admin-page-framework-collapsible-section-content'.' '
39
+                    . 'admin-page-framework-collapsible-content'.' '
40
+                    . 'accordion-section-content'.' '
41
+                    . 'admin-page-framework-collapsible-content-type-'.$_sCollapsibleType,
42 42
                 null
43 43
             ),
44 44
         );
Please login to merge, or discard this patch.
AdminPageFramework_Form_View___Attribute_SectionTableContainer.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -27,8 +27,8 @@  discard block
 block discarded – undo
27 27
      */
28 28
     protected function _getAttributes() {
29 29
         
30
-        $_aSectionAttributes    = $this->uniteArrays(
31
-            $this->dropElementsByType( $this->aArguments[ 'attributes' ] ),   // remove elements of an array.
30
+        $_aSectionAttributes = $this->uniteArrays(
31
+            $this->dropElementsByType( $this->aArguments[ 'attributes' ] ), // remove elements of an array.
32 32
             array( 
33 33
                 'id'            => $this->aArguments[ '_tag_id' ], // section-{section id}__{index}
34 34
                 'class'         => $this->getClassAttribute( 
@@ -49,19 +49,19 @@  discard block
 block discarded – undo
49 49
             )     
50 50
         );
51 51
         
52
-        $_aSectionAttributes[ 'class' ]   = $this->getClassAttribute( 
52
+        $_aSectionAttributes[ 'class' ] = $this->getClassAttribute( 
53 53
             $_aSectionAttributes[ 'class' ], 
54 54
             $this->dropElementsByType( $this->aArguments[ 'class' ] )
55
-        );  // 3.3.1+
55
+        ); // 3.3.1+
56 56
         
57
-        $_aSectionAttributes[ 'style' ]   = $this->getStyleAttribute( 
57
+        $_aSectionAttributes[ 'style' ] = $this->getStyleAttribute( 
58 58
             $_aSectionAttributes[ 'style' ], 
59 59
             $this->getAOrB(
60 60
                 $this->aArguments[ 'hidden' ],
61 61
                 'display:none',
62 62
                 null
63 63
             )
64
-        );  // 3.3.1+        
64
+        ); // 3.3.1+        
65 65
 
66 66
         return $_aSectionAttributes;
67 67
         
Please login to merge, or discard this patch.