Completed
Pull Request — dev (#237)
by
unknown
10:59
created
attribute/AdminPageFramework_Form_View___Attribute_SectionTableBody.php 1 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.
form/_view/attribute/AdminPageFramework_Form_View___Attribute_Fieldrow.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    = '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.
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 1 patch
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.
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.
factory/_common/form/_view/css/AdminPageFramework_Form_View___CSS_Base.php 2 patches
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.
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-2016 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+         * Admin Page Framework
4
+         * 
5
+         * http://en.michaeluno.jp/admin-page-framework/
6
+         * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
+         * 
8
+         */
9 9
 
10 10
 /**
11 11
  * Provides utility methods which can be accessed among different components of the framework.
Please login to merge, or discard this patch.
form/_view/css/AdminPageFramework_Form_View___CSS_CollapsibleSection.php 2 patches
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.
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-2016 Michael Uno; Licensed MIT
7
- * 
8
- */
3
+         * Admin Page Framework
4
+         * 
5
+         * http://en.michaeluno.jp/admin-page-framework/
6
+         * Copyright (c) 2013-2016 Michael Uno; Licensed MIT
7
+         * 
8
+         */
9 9
 
10 10
 /**
11 11
  * Provides utility methods which can be accessed among different components of the framework.
Please login to merge, or discard this patch.
factory/_common/form/_view/AdminPageFramework_Form_View___Description.php 1 patch
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.