Completed
Branch dev (3dc60b)
by
unknown
37s
created
include/class/option/AdminPageFrameworkLoader_Option.php 2 patches
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -28,11 +28,11 @@  discard block
 block discarded – undo
28 28
      * Stores the option values.
29 29
      */
30 30
     public $aOptions = array(
31
-        'welcomed'              => false,       // if the welcome screen is displayed, this will be true.
32
-        'enable_admin_pages'    => true,        // whether or not to enable the admin pages of the loader plugin.
31
+        'welcomed'              => false, // if the welcome screen is displayed, this will be true.
32
+        'enable_admin_pages'    => true, // whether or not to enable the admin pages of the loader plugin.
33 33
         'enable_demo'           => false,
34
-        'version_upgraded_from' => null,        // the version number that the user has upgraded from
35
-        'version_saved'         => null,        // represents the option version.
34
+        'version_upgraded_from' => null, // the version number that the user has upgraded from
35
+        'version_saved'         => null, // represents the option version.
36 36
     );
37 37
          
38 38
     /**
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      * 
53 53
      * @since      3.5.0
54 54
      */
55
-    static public function getInstance( $sOptionKey='' ) {
55
+    static public function getInstance( $sOptionKey = '' ) {
56 56
         
57 57
         $sOptionKey = $sOptionKey 
58 58
             ? $sOptionKey
@@ -73,7 +73,7 @@  discard block
 block discarded – undo
73 73
      */
74 74
     public function __construct( $sOptionKey ) {
75 75
         
76
-        $this->bIsNetworkAdmin  = is_network_admin();   // must be done first
76
+        $this->bIsNetworkAdmin  = is_network_admin(); // must be done first
77 77
         $this->sOptionKey       = $sOptionKey;
78 78
         $this->aOptions         = $this->_getFormattedOptions( $sOptionKey );
79 79
          
@@ -98,8 +98,8 @@  discard block
 block discarded – undo
98 98
      */
99 99
     public function hasUpgraded() {
100 100
         
101
-        $_sOptionVersion  = $this->get( 'version_saved' );
102
-        if ( ! $_sOptionVersion ) {
101
+        $_sOptionVersion = $this->get( 'version_saved' );
102
+        if ( !$_sOptionVersion ) {
103 103
             return false;
104 104
         }
105 105
         $_sOptionVersion        = $this->_getVersionByDepth( $_sOptionVersion );
@@ -111,8 +111,8 @@  discard block
 block discarded – undo
111 111
          * Returns a stating part of version by the given depth.
112 112
          * @since       3.5.0
113 113
          */
114
-        private function _getVersionByDepth( $sVersion, $iDepth=2 ) {
115
-            if ( ! $iDepth ) {
114
+        private function _getVersionByDepth( $sVersion, $iDepth = 2 ) {
115
+            if ( !$iDepth ) {
116 116
                 return $sVersion;
117 117
             }
118 118
             $_aParts = explode( '.', $sVersion );
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
     /**
124 124
      * Deletes the option from the database.
125 125
      */
126
-    public function delete()  {
126
+    public function delete() {
127 127
         return $this->bIsNetworkAdmin
128 128
             ? delete_site_option( $this->sOptionKey )
129 129
             : delete_option( $this->sOptionKey );
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     /**
133 133
      * Saves the options.
134 134
      */
135
-    public function save( $aOptions=null ) {
135
+    public function save( $aOptions = null ) {
136 136
 
137 137
         $_aOptions = $aOptions ? $aOptions : $this->aOptions;
138 138
         return $this->bIsNetworkAdmin
@@ -151,15 +151,15 @@  discard block
 block discarded – undo
151 151
      */
152 152
     public function set( /* $asKeys, $mValue */ ) {
153 153
         
154
-        $_aParameters   = func_get_args();
155
-        if ( ! isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
154
+        $_aParameters = func_get_args();
155
+        if ( !isset( $_aParameters[ 0 ], $_aParameters[ 1 ] ) ) {
156 156
             return;
157 157
         }
158 158
         $_asKeys        = $_aParameters[ 0 ];
159 159
         $_mValue        = $_aParameters[ 1 ];
160 160
         
161 161
         // string, integer, float, boolean
162
-        if ( ! is_array( $_asKeys ) ) {
162
+        if ( !is_array( $_asKeys ) ) {
163 163
             $this->aOptions[ $_asKeys ] = $_mValue;
164 164
             return;
165 165
         }
@@ -174,8 +174,8 @@  discard block
 block discarded – undo
174 174
      */
175 175
     public function update( /* $asKeys, $mValue */ ) {
176 176
         
177
-        $_aParameters   = func_get_args();
178
-        call_user_func_array( array( $this, 'set' ),  $_aParameters );
177
+        $_aParameters = func_get_args();
178
+        call_user_func_array( array( $this, 'set' ), $_aParameters );
179 179
         $this->save();
180 180
 
181 181
     }
@@ -189,11 +189,11 @@  discard block
 block discarded – undo
189 189
         
190 190
         $_mDefault  = null;
191 191
         $_aKeys     = func_get_args();
192
-        if ( ! isset( $_aKeys[ 0 ] ) ) {
192
+        if ( !isset( $_aKeys[ 0 ] ) ) {
193 193
             return null;
194 194
         }
195 195
         if ( is_array( $_aKeys[ 0 ] ) ) {
196
-            $_aKeys     =  $_aKeys[ 0 ];
196
+            $_aKeys     = $_aKeys[ 0 ];
197 197
             $_mDefault  = isset( $_aKeys[ 1 ] )
198 198
                 ? $_aKeys[ 1 ]
199 199
                 : null;
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -123,7 +123,7 @@
 block discarded – undo
123 123
     /**
124 124
      * Deletes the option from the database.
125 125
      */
126
-    public function delete()  {
126
+    public function delete() {
127 127
         return $this->bIsNetworkAdmin
128 128
             ? delete_site_option( $this->sOptionKey )
129 129
             : delete_option( $this->sOptionKey );
Please login to merge, or discard this patch.
development/factory/_common/_abstract/_view/AdminPageFramework_CSS.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -107,8 +107,8 @@
 block discarded – undo
107 107
 }
108 108
 CSSRULES;
109 109
 
110
-        return $_sCSS . PHP_EOL
111
-            . self::_getPageLoadStatsRules() . PHP_EOL
110
+        return $_sCSS.PHP_EOL
111
+            . self::_getPageLoadStatsRules().PHP_EOL
112 112
             . self::_getVersionSpecificRules();
113 113
             
114 114
     }
Please login to merge, or discard this patch.
_model/formatter/AdminPageFramework_Form_Model___Format_EachSection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
     /**
44 44
      * Stores the section definition.
45 45
      */
46
-    public $aSection            = array();
46
+    public $aSection = array();
47 47
     
48 48
     /**
49 49
      * Indicates the sub section index.
@@ -91,8 +91,8 @@  discard block
 block discarded – undo
91 91
         
92 92
         $_aSection[ '_is_collapsible' ]    = $_aSection[ 'collapsible' ] && 'section' === $_aSection[ 'collapsible' ][ 'container' ];
93 93
         
94
-        $_aSection[ '_tag_id' ]            = 'section-' . $_aSection[ 'section_id' ] . '__' . $this->iIndex;
95
-        $_aSection[ '_tag_id_model' ]      = 'section-' . $_aSection[ 'section_id' ] . '__' . '___i___';
94
+        $_aSection[ '_tag_id' ]            = 'section-'.$_aSection[ 'section_id' ].'__'.$this->iIndex;
95
+        $_aSection[ '_tag_id_model' ]      = 'section-'.$_aSection[ 'section_id' ].'__'.'___i___';
96 96
         
97 97
         return $_aSection;
98 98
         
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___SectionCaption.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -236,7 +236,7 @@
 block discarded – undo
236 236
              */
237 237
             private function _shouldShowCaptionTitle( $aSectionset, $iSectionIndex ) {
238 238
                 
239
-                if ( ! $aSectionset[ 'title' ] ){
239
+                if ( ! $aSectionset[ 'title' ] ) {
240 240
                     return false;
241 241
                 }
242 242
                 if ( $aSectionset[ 'collapsible' ] ) {
Please login to merge, or discard this patch.
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
          */
81 81
         private function _getCaption( array $aSectionset, $iSectionIndex, $aFieldsets, $aFieldErrors, $aFieldTypeDefinitions, $aCallbacks, $oMsg ) {
82 82
 
83
-            if ( ! $aSectionset[ 'description' ] && ! $aSectionset[ 'title' ] ) {
83
+            if ( !$aSectionset[ 'description' ] && !$aSectionset[ 'title' ] ) {
84 84
                 return "<caption class='admin-page-framework-section-caption' style='display:none;'></caption>";
85 85
             }
86 86
 
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     'collapsible'       => $_abCollapsible,
104 104
                     'container_type'    => 'section', // section or sections
105 105
 
106
-                    'sectionset'        => $aSectionset,    // 3.7.0+ for tooltip
106
+                    'sectionset'        => $aSectionset, // 3.7.0+ for tooltip
107 107
                 ),
108 108
                 $aFieldsets,
109 109
                 $this->aSavedData,
@@ -113,15 +113,15 @@  discard block
 block discarded – undo
113 113
                 $aCallbacks // field output element callables.
114 114
             );
115 115
 
116
-            $_bShowTitle    = empty( $_abCollapsible ) && ! $aSectionset[ 'section_tab_slug' ];
116
+            $_bShowTitle = empty( $_abCollapsible ) && !$aSectionset[ 'section_tab_slug' ];
117 117
             return
118
-                "<caption " . $this->getAttributes(
118
+                "<caption ".$this->getAttributes(
119 119
                     array(
120 120
                         'class'             => 'admin-page-framework-section-caption',
121 121
                         // data-section_tab is referred by the repeater script to hide/show the title and the description
122 122
                         'data-section_tab'  => $aSectionset[ 'section_tab_slug' ],
123 123
                     )
124
-                ) . ">"
124
+                ).">"
125 125
                     . $_oCollapsibleSectionTitle->get()
126 126
                     . $this->getAOrB(
127 127
                         $_bShowTitle,
@@ -175,7 +175,7 @@  discard block
 block discarded – undo
175 175
                         'tag'           => 'h3',
176 176
                         'section_index' => $iSectionIndex,
177 177
 
178
-                        'sectionset'    => $aSectionset,    // 3.7.0+ for tooltip
178
+                        'sectionset'    => $aSectionset, // 3.7.0+ for tooltip
179 179
                     ),
180 180
                     $aFieldsets,
181 181
                     $this->aSavedData,
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
                     $this->oMsg,
185 185
                     $this->aCallbacks // field output element callables.
186 186
                 );
187
-                return "<div " . $this->getAttributes(
187
+                return "<div ".$this->getAttributes(
188 188
                         array(
189 189
                             'class' => 'admin-page-framework-section-title',
190 190
                             'style' => $this->getAOrB(
@@ -193,7 +193,7 @@  discard block
 block discarded – undo
193 193
                                 'display: none;'
194 194
                             ),
195 195
                         )
196
-                    ). ">"
196
+                    ).">"
197 197
                         . $_oSectionTitle->get()
198 198
                     . "</div>";
199 199
             }
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
                 if ( $aSectionset[ 'collapsible' ] ) {
210 210
                     return '';
211 211
                 }
212
-                if ( ! is_callable( $hfSectionCallback ) ) {
212
+                if ( !is_callable( $hfSectionCallback ) ) {
213 213
                     return '';
214 214
                 }
215 215
 
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
              */
242 242
             private function _shouldShowCaptionTitle( $aSectionset, $iSectionIndex ) {
243 243
 
244
-                if ( ! $aSectionset[ 'title' ] ){
244
+                if ( !$aSectionset[ 'title' ] ) {
245 245
                     return false;
246 246
                 }
247 247
                 if ( $aSectionset[ 'collapsible' ] ) {
Please login to merge, or discard this patch.
_view/fieldset/AdminPageFramework_Form_View___Fieldset___FieldError.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -65,7 +65,7 @@
 block discarded – undo
65 65
         private function _getFieldError( $aErrors, $aSectionPath, $aFieldPath, $sHeadingMessage ) {
66 66
 
67 67
             // If this field has a section and the error element is set
68
-            $_aErrorPath   = array_merge( $aSectionPath, $aFieldPath );
68
+            $_aErrorPath = array_merge( $aSectionPath, $aFieldPath );
69 69
             if ( $this->_hasFieldError( $aErrors, $_aErrorPath ) ) {
70 70
                 return "<span class='field-error'>*&nbsp;"
71 71
                         . $sHeadingMessage
Please login to merge, or discard this patch.
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.
_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/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
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
  * @internal
17 17
  * @extends     AdminPageFramework_FrameworkUtility
18 18
  */
19
-class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility {            
19
+class AdminPageFramework_Form_View___Description extends AdminPageFramework_FrameworkUtility {
20 20
 
21 21
     public $aDescriptions   = array();
22 22
     
Please login to merge, or discard this patch.
generator/field/AdminPageFramework_Form_View___Generate_FieldInputID.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * @return      string       The generated string value.
50 50
      */
51 51
     public function get() {
52
-        return $this->_getFiltered( $this->_getBaseFieldTagID() . '__' . $this->isIndex );
52
+        return $this->_getFiltered( $this->_getBaseFieldTagID().'__'.$this->isIndex );
53 53
     }
54 54
            
55 55
 }
Please login to merge, or discard this patch.