Completed
Branch master (4b970b)
by Michael
05:13
created
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_Base.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
      * 
25 25
      * @since       3.6.0
26 26
      */
27
-    public $sContext    = '';
27
+    public $sContext = '';
28 28
  
29 29
     /**
30 30
      * 
Please login to merge, or discard this patch.
_view/attribute/AdminPageFramework_Form_View___Attribute_SectionTable.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
  */
18 18
 class AdminPageFramework_Form_View___Attribute_SectionTable extends AdminPageFramework_Form_View___Attribute_Base {
19 19
 
20
-    public $sContext    = 'section_table';
20
+    public $sContext = 'section_table';
21 21
                    
22 22
     /**
23 23
      * Returns an attribute array.
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     protected function _getAttributes() {    
29 29
         return array( 
30
-            'id'    => 'section_table-' . $this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
30
+            'id'    => 'section_table-'.$this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
31 31
             'class' =>  $this->getClassAttribute(
32 32
                 'form-table',
33 33
                 'admin-page-framework-section-table'   // referred by the collapsible section script
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
      * @since       3.6.0
26 26
      * @return      array
27 27
      */
28
-    protected function _getAttributes() {    
28
+    protected function _getAttributes() {
29 29
         return array( 
30 30
             'id'    => 'section_table-' . $this->aArguments[ '_tag_id' ], // 'section-' . $sSectionID . '__' . $iSectionIndex
31 31
             'class' =>  $this->getClassAttribute(
Please login to merge, or discard this patch.
factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Form.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
      */
24 24
     protected function _get() {
25 25
 
26
-        $_sSpinnerURL  = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) );
26
+        $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) );
27 27
         return <<<CSSRULES
28 28
 .admin-page-framework-form-warning {
29 29
     font-weight: bold;
Please login to merge, or discard this patch.
_common/form/_view/css/AdminPageFramework_Form_View___CSS_Loading.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -23,11 +23,11 @@
 block discarded – undo
23 23
      */
24 24
     protected function _get() {
25 25
 
26
-        $_sSpinnerPath = $this->getWPAdminDirPath() . '/images/wpspin_light-2x.gif';
27
-        if ( ! file_exists( $_sSpinnerPath ) ) {
26
+        $_sSpinnerPath = $this->getWPAdminDirPath().'/images/wpspin_light-2x.gif';
27
+        if ( !file_exists( $_sSpinnerPath ) ) {
28 28
             return '';
29 29
         }
30
-        $_sSpinnerURL  = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) );
30
+        $_sSpinnerURL = esc_url( admin_url( '/images/wpspin_light-2x.gif' ) );
31 31
         return <<<CSSRULES
32 32
 .admin-page-framework-form-loading {
33 33
     position: absolute;
Please login to merge, or discard this patch.
_common/form/_view/css/AdminPageFramework_Form_View___CSS_Section.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -24,13 +24,13 @@
 block discarded – undo
24 24
     protected function _get() {
25 25
         return $this->_getFormSectionRules();
26 26
     }
27
-         /**
28
-         * Returns the CSS rules for form fields.
29
-         * 
30
-         * @since       3.4.0
31
-         * @since       3.7.0      Moved from `AdminPageFramework_CSS`.
32
-         * @internal
33
-         */    
27
+            /**
28
+             * Returns the CSS rules for form fields.
29
+             * 
30
+             * @since       3.4.0
31
+             * @since       3.7.0      Moved from `AdminPageFramework_CSS`.
32
+             * @internal
33
+             */    
34 34
         private function _getFormSectionRules() {
35 35
             
36 36
             return <<<CSSRULES
Please login to merge, or discard this patch.
factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Base.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
      * @since   DEVVER
30 30
      */
31 31
     public function add( $sCSSRules ) {
32
-        $this->aAdded[] = $sCSSRules;
32
+        $this->aAdded[ ] = $sCSSRules;
33 33
     }
34 34
     
35 35
     /**
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function get() {
40 40
         
41
-        $_sCSSRules  = $this->_get() . PHP_EOL;
41
+        $_sCSSRules  = $this->_get().PHP_EOL;
42 42
         $_sCSSRules .= $this->_getVersionSpecific();
43 43
         $_sCSSRules .= implode( PHP_EOL, $this->aAdded );
44 44
         return $this->isDebugMode()
Please login to merge, or discard this patch.
form/_view/css/AdminPageFramework_Form_View___CSS_CollapsibleSection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -140,7 +140,7 @@
 block discarded – undo
140 140
     background: none;   /* for Wordpress v3.7.x or below, the background image need to be removed as well */
141 141
 }
142 142
 CSSRULES;
143
-            if ( version_compare( $GLOBALS['wp_version'], '3.8', '<' ) ) {
143
+            if ( version_compare( $GLOBALS[ 'wp_version' ], '3.8', '<' ) ) {
144 144
                 $_sCSSRules .= <<<CSSRULES
145 145
 .admin-page-framework-collapsible-sections-title.accordion-section-title:after,
146 146
 .admin-page-framework-collapsible-section-title.accordion-section-title:after 
Please login to merge, or discard this patch.