Completed
Branch dev (71673f)
by
unknown
05:17
created
admin-page-framework-loader.php 1 patch
Spacing   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -16,9 +16,9 @@  discard block
 block discarded – undo
16 16
  */
17 17
 class AdminPageFrameworkLoader_Registry_Base {
18 18
 
19
-    const VERSION        = '3.8.8b02';    // <--- DON'T FORGET TO CHANGE THIS AS WELL!!
19
+    const VERSION        = '3.8.8b02'; // <--- DON'T FORGET TO CHANGE THIS AS WELL!!
20 20
     const NAME           = 'Admin Page Framework - Loader'; // the name is not 'Admin Page Framework' because warning messages gets confusing.
21
-    const SHORTNAME      = 'Admin Page Framework';  // used for a menu title etc.
21
+    const SHORTNAME      = 'Admin Page Framework'; // used for a menu title etc.
22 22
     const DESCRIPTION    = 'Loads Admin Page Framework which facilitates WordPress plugin and theme development.';
23 23
     const URI            = 'http://admin-page-framework.michaeluno.jp/';
24 24
     const AUTHOR         = 'miunosoft (Michael Uno)';
@@ -55,14 +55,14 @@  discard block
 block discarded – undo
55 55
      * @remark      This is also accessed from `uninstall.php` so do not remove.
56 56
      * @remark      Do not exceed 8 characters as a transient name allows 45 characters or less ( 40 for site transients ) so that md5 (32 characters) can be added.
57 57
      */
58
-    const TRANSIENT_PREFIX         = 'APFL_';
58
+    const TRANSIENT_PREFIX = 'APFL_';
59 59
 
60 60
     /**
61 61
      * The hook slug used for the prefix of action and filter hook names.
62 62
      * 
63 63
      * @remark      The ending underscore is not necessary.
64 64
      */
65
-    const HOOK_SLUG                = 'admin_page_framework_loader';
65
+    const HOOK_SLUG = 'admin_page_framework_loader';
66 66
 
67 67
     /**
68 68
      * The text domain slug and its path.
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
      */
117 117
     static public $aAdminPages = array(
118 118
         // key => 'page slug'
119
-        'about'     => 'apfl_about',        // the welcome page
119
+        'about'     => 'apfl_about', // the welcome page
120 120
         'addon'     => 'apfl_addons',
121 121
         'tool'      => 'apfl_tools',
122 122
         'help'      => 'apfl_contact',
@@ -154,12 +154,12 @@  discard block
 block discarded – undo
154 154
      * @since       3.5.0
155 155
      * @return      string
156 156
      */
157
-    public static function getPluginURL( $sRelativePath='' ) {
157
+    public static function getPluginURL( $sRelativePath = '' ) {
158 158
         if ( isset( self::$_sPluginURLCache ) ) {
159
-            return self::$_sPluginURLCache . $sRelativePath;
159
+            return self::$_sPluginURLCache.$sRelativePath;
160 160
         }
161 161
         self::$_sPluginURLCache = trailingslashit( plugins_url( '', self::$sFilePath ) );
162
-        return self::$_sPluginURLCache . $sRelativePath;
162
+        return self::$_sPluginURLCache.$sRelativePath;
163 163
     }
164 164
         /**
165 165
          * @since       3.7.9
@@ -189,13 +189,13 @@  discard block
 block discarded – undo
189 189
      * @since       3.5.0
190 190
      * @return      void
191 191
      */ 
192
-    static public function setAdminNotice( $sMessage, $sClassAttribute='error' ) {
193
-        if ( ! is_admin() ) {  
192
+    static public function setAdminNotice( $sMessage, $sClassAttribute = 'error' ) {
193
+        if ( !is_admin() ) {  
194 194
             return; 
195 195
         }
196
-        self::$_aAdminNotices[] = array(
196
+        self::$_aAdminNotices[ ] = array(
197 197
             'message'           => $sMessage,
198
-            'class_attribute'   => trim( $sClassAttribute ) . ' notice is-dismissible',
198
+            'class_attribute'   => trim( $sClassAttribute ).' notice is-dismissible',
199 199
         );
200 200
         add_action( 'admin_notices', array( __CLASS__, '_replyToSetAdminNotice' ) );
201 201
     }
@@ -205,12 +205,12 @@  discard block
 block discarded – undo
205 205
          * @return      void
206 206
          */
207 207
         static public function _replyToSetAdminNotice() {
208
-            foreach( self::$_aAdminNotices as $_aAdminNotice ) {
209
-                echo "<div class='" . esc_attr( $_aAdminNotice['class_attribute'] ) . " notice is-dismissible'>"
208
+            foreach ( self::$_aAdminNotices as $_aAdminNotice ) {
209
+                echo "<div class='".esc_attr( $_aAdminNotice[ 'class_attribute' ] )." notice is-dismissible'>"
210 210
                         ."<p>"
211 211
                             . sprintf(
212
-                                '<strong>%1$s</strong>: ' . $_aAdminNotice['message'],
213
-                                self::NAME . ' ' . self::VERSION
212
+                                '<strong>%1$s</strong>: '.$_aAdminNotice[ 'message' ],
213
+                                self::NAME.' '.self::VERSION
214 214
                             )
215 215
                         . "</p>"
216 216
                     . "</div>";
@@ -222,7 +222,7 @@  discard block
 block discarded – undo
222 222
 AdminPageFrameworkLoader_Registry::setUp( __FILE__ );
223 223
 
224 224
 // Initial checks. - Do no load if accessed directly, not exiting because the 'uninstall.php' and inclusion list generator will load this file.
225
-if ( ! defined( 'ABSPATH' ) ) {
225
+if ( !defined( 'ABSPATH' ) ) {
226 226
     return;
227 227
 }
228 228
 if ( defined( 'DOING_UNINSTALL' ) ) {
@@ -234,8 +234,8 @@  discard block
 block discarded – undo
234 234
 
235 235
     $_bFrameworkLoaded = class_exists( 'AdminPageFramework_Registry', false );
236 236
     if (
237
-        ! $_bFrameworkLoaded
238
-        || ! defined( 'AdminPageFramework_Registry::VERSION' ) // backward compatibility
237
+        !$_bFrameworkLoaded
238
+        || !defined( 'AdminPageFramework_Registry::VERSION' ) // backward compatibility
239 239
         || version_compare( AdminPageFramework_Registry::VERSION, AdminPageFrameworkLoader_Registry::VERSION, '<' )
240 240
     ) {
241 241
         AdminPageFrameworkLoader_Registry::setAdminNotice(
@@ -253,18 +253,18 @@  discard block
 block discarded – undo
253 253
 add_action( 'admin_init', 'AdminPageFrameworkLoader_Warning' );
254 254
 
255 255
 // Include the library file - the development version will be available if you cloned the GitHub repository.
256
-$_sDevelopmentVersionPath = AdminPageFrameworkLoader_Registry::$sDirPath . '/development/admin-page-framework.php';
256
+$_sDevelopmentVersionPath = AdminPageFrameworkLoader_Registry::$sDirPath.'/development/admin-page-framework.php';
257 257
 $_bDebugMode              = defined( 'WP_DEBUG' ) && WP_DEBUG;
258 258
 $_bLoadDevelopmentVersion = $_bDebugMode && file_exists( $_sDevelopmentVersionPath );
259 259
 include(
260 260
     $_bLoadDevelopmentVersion
261 261
         ? $_sDevelopmentVersionPath
262
-        : AdminPageFrameworkLoader_Registry::$sDirPath . '/library/apf/admin-page-framework.php'
262
+        : AdminPageFrameworkLoader_Registry::$sDirPath.'/library/apf/admin-page-framework.php'
263 263
 );
264 264
 
265 265
 // Include the framework loader plugin components.
266 266
 include( AdminPageFramework_Registry::$aClassFiles[ 'AdminPageFramework_PluginBootstrap' ] );
267
-include( AdminPageFrameworkLoader_Registry::$sDirPath . '/include/class/AdminPageFrameworkLoader_Bootstrap.php' );
267
+include( AdminPageFrameworkLoader_Registry::$sDirPath.'/include/class/AdminPageFrameworkLoader_Bootstrap.php' );
268 268
 new AdminPageFrameworkLoader_Bootstrap(
269 269
     AdminPageFrameworkLoader_Registry::$sFilePath,
270 270
     AdminPageFrameworkLoader_Registry::HOOK_SLUG    // hook prefix
Please login to merge, or discard this patch.
development/admin-page-framework.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@  discard block
 block discarded – undo
10 10
  * @package     AdminPageFramework
11 11
  */
12 12
 
13
-if ( ! class_exists( 'AdminPageFramework_Registry', false ) ) :
13
+if ( !class_exists( 'AdminPageFramework_Registry', false ) ) :
14 14
 /**
15 15
  * Facilitates WordPress plugin and theme development.
16 16
  *
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
 final class AdminPageFramework_Registry extends AdminPageFramework_Registry_Base {
62 62
 
63 63
     const TEXT_DOMAIN        = 'admin-page-framework';
64
-    const TEXT_DOMAIN_PATH   = '/language';  // not used at the moment
64
+    const TEXT_DOMAIN_PATH   = '/language'; // not used at the moment
65 65
 
66 66
     /**
67 67
      * Indicates whether the framework is loaded from the minified version or not.
@@ -103,11 +103,11 @@  discard block
 block discarded – undo
103 103
      * Sets up static properties.
104 104
      * @return      void
105 105
      */
106
-    static public function setUp( $sFilePath=__FILE__ ) {
106
+    static public function setUp( $sFilePath = __FILE__ ) {
107 107
 
108 108
         self::$sFilePath                = $sFilePath;
109 109
         self::$sDirPath                 = dirname( self::$sFilePath );
110
-        self::$sIncludeClassListPath    = self::$sDirPath . '/admin-page-framework-include-class-list.php';
110
+        self::$sIncludeClassListPath    = self::$sDirPath.'/admin-page-framework-include-class-list.php';
111 111
         self::$aClassFiles              = self::_getClassFilePathList( self::$sIncludeClassListPath );
112 112
         self::$sAutoLoaderPath          = isset( self::$aClassFiles[ 'AdminPageFramework_RegisterClasses' ] )
113 113
             ? self::$aClassFiles[ 'AdminPageFramework_RegisterClasses' ]
@@ -122,7 +122,7 @@  discard block
 block discarded – undo
122 122
          * @return      array
123 123
          */
124 124
         static private function _getClassFilePathList( $sInclusionClassListPath ) {
125
-            $aClassFiles = array();    // this will be updated if the inclusion below is successful.
125
+            $aClassFiles = array(); // this will be updated if the inclusion below is successful.
126 126
             include( $sInclusionClassListPath );
127 127
             return $aClassFiles;
128 128
         }
@@ -135,11 +135,11 @@  discard block
 block discarded – undo
135 135
      */
136 136
     static public function getVersion() {
137 137
 
138
-        if ( ! isset( self::$sAutoLoaderPath ) ) {
139
-            trigger_error( self::NAME . ': ' . ' : ' . sprintf( __( 'The method is called too early. Perform <code>%2$s</code> earlier.', 'admin-page-framework' ), __METHOD__, 'setUp()' ), E_USER_WARNING );
138
+        if ( !isset( self::$sAutoLoaderPath ) ) {
139
+            trigger_error( self::NAME.': '.' : '.sprintf( __( 'The method is called too early. Perform <code>%2$s</code> earlier.', 'admin-page-framework' ), __METHOD__, 'setUp()' ), E_USER_WARNING );
140 140
             return self::VERSION;
141 141
         }
142
-        $_aMinifiedVesionSuffix     = array(
142
+        $_aMinifiedVesionSuffix = array(
143 143
             0 => '',
144 144
             1 => '.min',
145 145
         );
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
 }
169 169
 endif;
170 170
 
171
-if ( ! class_exists( 'AdminPageFramework_Bootstrap', false ) ) :
171
+if ( !class_exists( 'AdminPageFramework_Bootstrap', false ) ) :
172 172
 /**
173 173
  * Loads the Admin Page Framework library.
174 174
  *
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      */
190 190
     public function __construct( $sLibraryPath ) {
191 191
 
192
-        if ( ! $this->_isLoadable() ) {
192
+        if ( !$this->_isLoadable() ) {
193 193
             return;
194 194
         }
195 195
 
Please login to merge, or discard this patch.
form/_view/sectionset/AdminPageFramework_Form_View___SectionTitle.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -18,14 +18,14 @@  discard block
 block discarded – undo
18 18
  */
19 19
 class AdminPageFramework_Form_View___SectionTitle extends AdminPageFramework_Form_View___Section_Base {            
20 20
   
21
-    public $aArguments      = array(
21
+    public $aArguments = array(
22 22
         'title'         => null,
23 23
         'tag'           => null,
24 24
         'section_index' => null,
25 25
         
26 26
         'sectionset'    => array(),
27 27
     );
28
-    public $aFieldsets               = array();
28
+    public $aFieldsets = array();
29 29
     public $aSavedData              = array();
30 30
     public $aFieldErrors            = array();
31 31
     public $aFieldTypeDefinitions   = array();
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
          * @since       3.7.0      Moved from `AdminPageFramework_FormPart_SectionTitle`.
92 92
          * @return      string      The section title output. 
93 93
          */
94
-        protected function _getSectionTitle( $sTitle, $sTag, $aFieldsets, $iSectionIndex=null, $aFieldTypeDefinitions=array(), $aCollapsible=array() ) {
94
+        protected function _getSectionTitle( $sTitle, $sTag, $aFieldsets, $iSectionIndex = null, $aFieldTypeDefinitions = array(), $aCollapsible = array() ) {
95 95
 
96 96
             $_aSectionTitleFieldset = $this->_getSectionTitleField( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions );
97 97
             $_sFieldsInSectionTitle = $this->_getFieldsetsOutputInSectionTitleArea( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions );
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
             $_bHasOtherFields       = $_sFieldsInSectionTitle
102 102
                 ? ' has-fields'
103 103
                 : '';
104
-            $_sOutput               = $_sTitle . $_sFieldsInSectionTitle;
104
+            $_sOutput               = $_sTitle.$_sFieldsInSectionTitle;
105 105
             return $_sOutput
106 106
                 ? "<div class='section-title-container{$_bHasOtherFields}'>"
107 107
                     . $_sOutput 
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
                  * @return      string
131 131
                  */
132 132
                 private function _getToolTip( $_aSectionset ) {
133
-                    $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ]  ) . '_' . $this->aArguments[ 'section_index' ];
133
+                    $_sSectionTitleTagID = str_replace( '|', '_', $_aSectionset[ '_section_path' ] ).'_'.$this->aArguments[ 'section_index' ];
134 134
                     $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
135 135
                         $_aSectionset[ 'tip' ],
136 136
                         $_sSectionTitleTagID
@@ -145,14 +145,14 @@  discard block
 block discarded – undo
145 145
                  */
146 146
                 private function _getDebugInfo( $aSectionset ) {
147 147
                                         
148
-                    if ( ! $aSectionset[ 'show_debug_info' ] ) {
148
+                    if ( !$aSectionset[ 'show_debug_info' ] ) {
149 149
                         return '';
150 150
                     }
151
-                    $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
151
+                    $_oToolTip = new AdminPageFramework_Form_View___ToolTip(
152 152
                         array(
153 153
                             'title'         => $this->oMsg->get( 'section_arguments' ),
154 154
                             'dash-icon'     => 'dashicons-info',
155
-                            'icon_alt_text' => '[' . $this->oMsg->get( 'debug' ) . ' ]',
155
+                            'icon_alt_text' => '['.$this->oMsg->get( 'debug' ).' ]',
156 156
                             'content'       => AdminPageFramework_Debug::get( $aSectionset )
157 157
                                 . '<span class="admin-page-framework-info">'
158 158
                                     . $this->getFrameworkNameVersion()
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
                                 ),
167 167
                             )
168 168
                         ),
169
-                        $aSectionset[ '_section_path' ] . '_debug'
169
+                        $aSectionset[ '_section_path' ].'_debug'
170 170
                     );            
171 171
                     return $_oToolTip->get();                    
172 172
                     
@@ -195,8 +195,8 @@  discard block
 block discarded – undo
195 195
             private function _getFieldsetsOutputInSectionTitleArea( array $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) {   
196 196
 
197 197
                 $_sOutput = '';
198
-                foreach( $this->_getFieldsetsInSectionTitleArea( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) as $_aFieldset ) {
199
-                    if ( empty( $_aFieldset ) )  {
198
+                foreach ( $this->_getFieldsetsInSectionTitleArea( $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) as $_aFieldset ) {
199
+                    if ( empty( $_aFieldset ) ) {
200 200
                         continue;
201 201
                     }
202 202
                     $_sOutput .= $this->getFieldsetOutput( $_aFieldset );
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
                 private function _getFieldsetsInSectionTitleArea( array $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) {
213 213
                     
214 214
                     $_aFieldsetsInSectionTitle = array();
215
-                    foreach( $aFieldsets as $_aFieldset ) {
215
+                    foreach ( $aFieldsets as $_aFieldset ) {
216 216
                         
217 217
                         if ( 'section_title' !== $_aFieldset[ 'placement' ] ) {
218 218
                             continue;
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
                             $iSectionIndex,
224 224
                             $aFieldTypeDefinitions
225 225
                         );         
226
-                        $_aFieldsetsInSectionTitle[] = $_oFieldsetOutputFormatter->get();
226
+                        $_aFieldsetsInSectionTitle[ ] = $_oFieldsetOutputFormatter->get();
227 227
                         
228 228
                     }
229 229
                     return $_aFieldsetsInSectionTitle;
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
                  */
243 243
                 private function _getSectionTitleField( array $aFieldsets, $iSectionIndex, $aFieldTypeDefinitions ) {   
244 244
                 
245
-                    foreach( $aFieldsets as $_aFieldset ) {
245
+                    foreach ( $aFieldsets as $_aFieldset ) {
246 246
                         
247 247
                         if ( 'section_title' !== $_aFieldset[ 'type' ] ) {
248 248
                             continue;
Please login to merge, or discard this patch.
_common/form/_view/sectionset/AdminPageFramework_Form_View___FieldTitle.php 1 patch
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
         
71 71
         $aField = $this->aFieldset;
72 72
         
73
-        if ( ! $aField[ 'show_title_column' ] ) {
73
+        if ( !$aField[ 'show_title_column' ] ) {
74 74
             return '';
75 75
         }          
76 76
             
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
             'for'   => $_oInputTagIDGenerator->get(),
85 85
         );
86 86
         $_sOutput .= $aField[ 'title' ]
87
-            ? "<label " . $this->getAttributes( $_aLabelAttributes ) . "'>"
87
+            ? "<label ".$this->getAttributes( $_aLabelAttributes )."'>"
88 88
                     . "<a id='{$aField[ 'field_id' ]}'></a>"  // to allow the browser to link to the element.
89 89
                     . "<span title='" 
90 90
                             . esc_attr( 
@@ -115,12 +115,12 @@  discard block
 block discarded – undo
115 115
          */
116 116
         private function _getFieldOutputsInFieldTitleAreaFromNestedFields( $aField ) {
117 117
             
118
-            if ( ! $this->hasNestedFields( $aField ) ) {
118
+            if ( !$this->hasNestedFields( $aField ) ) {
119 119
                 return '';
120 120
             }
121 121
             
122 122
             $_sOutput = '';
123
-            foreach( $aField[ 'content' ] as $_aNestedField ) {
123
+            foreach ( $aField[ 'content' ] as $_aNestedField ) {
124 124
                 
125 125
                 if ( 'field_title' !== $_aNestedField[ 'placement' ] ) {
126 126
                     continue;
@@ -128,13 +128,13 @@  discard block
 block discarded – undo
128 128
 
129 129
                 $_oFieldset = new AdminPageFramework_Form_View___Fieldset( 
130 130
                     $_aNestedField, 
131
-                    $this->aSavedData,    // passed by reference. @todo: examine why it needs to be passed by reference.
131
+                    $this->aSavedData, // passed by reference. @todo: examine why it needs to be passed by reference.
132 132
                     $this->aFieldErrors, 
133 133
                     $this->aFieldTypeDefinitions,
134 134
                     $this->oMsg,
135 135
                     $this->aCallbacks // field output element callables.
136 136
                 );
137
-                $_sOutput   .= $_oFieldset->get(); // field output                
137
+                $_sOutput .= $_oFieldset->get(); // field output                
138 138
 
139 139
             }
140 140
             return $_sOutput;
@@ -146,7 +146,7 @@  discard block
 block discarded – undo
146 146
          * @since       3.7.0
147 147
          */
148 148
         private function _getToolTip( $asTip, $sElementID ) {
149
-            $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
149
+            $_oToolTip = new AdminPageFramework_Form_View___ToolTip(
150 150
                 $asTip,
151 151
                 $sElementID
152 152
             );            
@@ -160,14 +160,14 @@  discard block
 block discarded – undo
160 160
          */
161 161
         private function _getDebugInfo( $aField ) {
162 162
             
163
-            if ( ! $this->_shouldShowDebugInfo( $aField ) ) {
163
+            if ( !$this->_shouldShowDebugInfo( $aField ) ) {
164 164
                 return '';
165 165
             }
166
-            $_oToolTip           = new AdminPageFramework_Form_View___ToolTip(
166
+            $_oToolTip = new AdminPageFramework_Form_View___ToolTip(
167 167
                 array(
168 168
                     'title'         => $this->oMsg->get( 'field_arguments' ),
169 169
                     'dash-icon'     => 'dashicons-info',
170
-                    'icon_alt_text' => '[' . $this->oMsg->get( 'debug' ) . ' ]',
170
+                    'icon_alt_text' => '['.$this->oMsg->get( 'debug' ).' ]',
171 171
                     'content'       => AdminPageFramework_Debug::get( $aField )
172 172
                         . '<span class="admin-page-framework-info">'
173 173
                             . $this->getFrameworkNameVersion()
@@ -181,7 +181,7 @@  discard block
 block discarded – undo
181 181
                         ),
182 182
                     )
183 183
                 ),
184
-                $aField[ 'field_id' ] . '_debug'
184
+                $aField[ 'field_id' ].'_debug'
185 185
             );            
186 186
             return $_oToolTip->get();                    
187 187
             
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
              */
193 193
             private function _shouldShowDebugInfo( $aField ) {
194 194
                 
195
-                if ( ! $aField[ 'show_debug_info' ] ) {
195
+                if ( !$aField[ 'show_debug_info' ] ) {
196 196
                     return false;
197 197
                 }
198 198
                 if ( strlen( $aField[ '_parent_field_path' ] ) ) {
@@ -208,7 +208,7 @@  discard block
 block discarded – undo
208 208
          */
209 209
         private function _getTitleColon( $aField ) {
210 210
             
211
-            if ( ! isset( $aField[ 'title' ] ) || '' === $aField[ 'title' ] ) {
211
+            if ( !isset( $aField[ 'title' ] ) || '' === $aField[ 'title' ] ) {
212 212
                 return '';
213 213
             }                    
214 214
             if ( 
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
                     $aField[ '_structure_type' ], 
217 217
                     array( 'widget', 'post_meta_box', 'page_meta_box' ) 
218 218
                 ) 
219
-            ){
220
-                return "<span class='title-colon'>:</span>" ;
219
+            ) {
220
+                return "<span class='title-colon'>:</span>";
221 221
             }                                                 
222 222
             
223 223
         }
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___FormatSectionsets.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -64,9 +64,9 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         $_aSectionsets = $this->_getSectionsetsFormatted(
67
-            array(),                // section-sets array to modify - new formatted items will be stored here
68
-            $this->aSectionsets,    // parsing section-sets
69
-            array(),                // section path - empty for root 
67
+            array(), // section-sets array to modify - new formatted items will be stored here
68
+            $this->aSectionsets, // parsing section-sets
69
+            array(), // section path - empty for root 
70 70
             $this->sCapability      // capability
71 71
         );
72 72
 
@@ -83,10 +83,10 @@  discard block
 block discarded – undo
83 83
          */
84 84
         private function _getSectionsetsFormatted( $_aNewSectionsets, $aSectionsetsToParse, $aSectionPath, $sCapability ) {
85 85
 
86
-            foreach( $aSectionsetsToParse as $_sSectionPath => $_aSectionset ) {
86
+            foreach ( $aSectionsetsToParse as $_sSectionPath => $_aSectionset ) {
87 87
 
88 88
                 // The '_default' section can be empty so do not check `if ( empty( $_aSectionset ) )` here.
89
-                if ( ! is_array( $_aSectionset ) ) { 
89
+                if ( !is_array( $_aSectionset ) ) { 
90 90
                     continue; 
91 91
                 }
92 92
                 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
                 
118 118
                 // 3.7.0+ For nested sections         
119 119
                 $_aNewSectionsets = $this->_getNestedSections( 
120
-                    $_aNewSectionsets,  // sectionset array to modify
120
+                    $_aNewSectionsets, // sectionset array to modify
121 121
                     $_aSectionset, 
122 122
                     $_aSectionPath, // section path
123 123
                     $_aSectionset[ 'capability' ]
@@ -134,15 +134,15 @@  discard block
 block discarded – undo
134 134
              */
135 135
             private function _getNestedSections( $aSectionsetsToEdit, $aSectionset, $aSectionPath, $sCapability ) {
136 136
 
137
-                if ( ! $this->_hasNestedSections( $aSectionset ) ) {
137
+                if ( !$this->_hasNestedSections( $aSectionset ) ) {
138 138
                     return $aSectionsetsToEdit;
139 139
                 }
140 140
 
141 141
                 // Recursive call
142 142
                 return $this->_getSectionsetsFormatted(
143
-                        $aSectionsetsToEdit,          // section-sets array to modify - new formatted items will be stored here
144
-                        $aSectionset[ 'content' ],    // parsing section-sets
145
-                        $aSectionPath,                // section path - empty for root 
143
+                        $aSectionsetsToEdit, // section-sets array to modify - new formatted items will be stored here
144
+                        $aSectionset[ 'content' ], // parsing section-sets
145
+                        $aSectionPath, // section path - empty for root 
146 146
                         $sCapability                  // capability
147 147
                     );                          
148 148
 
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 private function _hasNestedSections( $aSectionset ) {
156 156
                     
157 157
                     $aSectionset = $aSectionset + array( 'content' => null );
158
-                    if ( ! is_array( $aSectionset[ 'content' ] ) ) {
158
+                    if ( !is_array( $aSectionset[ 'content' ] ) ) {
159 159
                         return false;
160 160
                     }
161 161
                     $_aContents  = $aSectionset[ 'content' ];
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___Format_Fieldset.php 1 patch
Spacing   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -29,38 +29,38 @@  discard block
 block discarded – undo
29 29
     static public $aStructure = array(
30 30
     
31 31
         // Required Keys
32
-        'field_id'                  => null,    // (string)
33
-        'section_id'                => null,    // (string)
32
+        'field_id'                  => null, // (string)
33
+        'section_id'                => null, // (string)
34 34
 
35 35
         // Optional Keys        
36
-        'type'                      => null,    // (string) (3.8.0+ Became okay to omit.)
37
-        'section_title'             => null,    // This will be assigned automatically in the formatting method.
38
-        'page_slug'                 => null,    // This will be assigned automatically in the formatting method.
39
-        'tab_slug'                  => null,    // This will be assigned automatically in the formatting method.
40
-        'option_key'                => null,    // This will be assigned automatically in the formatting method.
41
-        'class_name'                => null,    // Stores the instantiated class name. Used by the export field type. Also a third party custom field type uses it.
36
+        'type'                      => null, // (string) (3.8.0+ Became okay to omit.)
37
+        'section_title'             => null, // This will be assigned automatically in the formatting method.
38
+        'page_slug'                 => null, // This will be assigned automatically in the formatting method.
39
+        'tab_slug'                  => null, // This will be assigned automatically in the formatting method.
40
+        'option_key'                => null, // This will be assigned automatically in the formatting method.
41
+        'class_name'                => null, // Stores the instantiated class name. Used by the export field type. Also a third party custom field type uses it.
42 42
         'capability'                => null,        
43 43
         'title'                     => null,    
44 44
         'tip'                       => null,    
45 45
         'description'               => null,    
46
-        'error_message'             => null,    // error message for the field
46
+        'error_message'             => null, // error message for the field
47 47
         'before_label'              => null,    
48 48
         'after_label'               => null,    
49 49
         'if'                        => true,    
50
-        'order'                     => null,    // do not set the default number here for this key.     
50
+        'order'                     => null, // do not set the default number here for this key.     
51 51
         'default'                   => null,
52 52
         'value'                     => null,
53
-        'help'                      => null,    // 2.1.0
54
-        'help_aside'                => null,    // 2.1.0
55
-        'repeatable'                => null,    // 2.1.3
56
-        'sortable'                  => null,    // 2.1.3
57
-        'show_title_column'         => true,    // 3.0.0
58
-        'hidden'                    => null,    // 3.0.0
53
+        'help'                      => null, // 2.1.0
54
+        'help_aside'                => null, // 2.1.0
55
+        'repeatable'                => null, // 2.1.3
56
+        'sortable'                  => null, // 2.1.3
57
+        'show_title_column'         => true, // 3.0.0
58
+        'hidden'                    => null, // 3.0.0
59 59
         
60
-        'placement'                 => 'normal',    // 3.8.0 (string) accepts either 'section_title', 'field_title', or 'normal'
60
+        'placement'                 => 'normal', // 3.8.0 (string) accepts either 'section_title', 'field_title', or 'normal'
61 61
         
62 62
         // @todo    Examine why an array is not set but null here for the attributes argument.
63
-        'attributes'                => null,    // 3.0.0 - the array represents the attributes of input tag
63
+        'attributes'                => null, // 3.0.0 - the array represents the attributes of input tag
64 64
         'class'                     => array(   // 3.3.1
65 65
             'fieldrow'  =>  array(),
66 66
             'fieldset'  =>  array(),
@@ -68,29 +68,29 @@  discard block
 block discarded – undo
68 68
             'field'     =>  array(),
69 69
         ), 
70 70
 
71
-        'save'                      => true,    // 3.6.0
72
-        'content'                   => null,    // 3.6.1 - (string) An overriding field-set output.
71
+        'save'                      => true, // 3.6.0
72
+        'content'                   => null, // 3.6.1 - (string) An overriding field-set output.
73 73
         
74
-        'show_debug_info'           => null,    // 3.8.8+  (boolean) whether to show debug information such as field definition tool-tips. This value is inherited from the section definition argument of the same name. Not setting a value here as it is determined with another calculated value.
74
+        'show_debug_info'           => null, // 3.8.8+  (boolean) whether to show debug information such as field definition tool-tips. This value is inherited from the section definition argument of the same name. Not setting a value here as it is determined with another calculated value.
75 75
         
76 76
         // Internal Keys
77
-        '_fields_type'              => null,    // @deprecated  3.7.0, 3.0.0 - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy.
78
-        '_structure_type'           => null,    // 3.7.0
79
-        '_caller_object'            => null,    // 3.4.0 (object) stores the object of the caller class. The object is referenced when creating nested fields.
77
+        '_fields_type'              => null, // @deprecated  3.7.0, 3.0.0 - an internal key that indicates the fields type such as page, meta box for pages, meta box for posts, or taxonomy.
78
+        '_structure_type'           => null, // 3.7.0
79
+        '_caller_object'            => null, // 3.4.0 (object) stores the object of the caller class. The object is referenced when creating nested fields.
80 80
                                                          
81
-        '_section_path'             => '',      // 3.7.0 (string) Stores the section path that indicates the structural address of the nested section. e.g. my_section|nested_one
82
-        '_section_path_array'       => '',      // 3.7.0 (array) An array version of the above section path.
83
-        '_nested_depth'             => 0,       // 3.4.0 (integer) stores the level of the nesting depth. This is mostly used for debugging by checking if the field is a nested field or not.        
84
-        '_subsection_index'         => null,    // 3.7.0 Passed to the `field_definition_{...}` filter hook callbacks.
85
-        '_section_repeatable'       => false,   // @deprecated
86
-        '_is_section_repeatable'    => false,   // 3.8.0 (boolean) Whether the belonging section is repeatable or not.
81
+        '_section_path'             => '', // 3.7.0 (string) Stores the section path that indicates the structural address of the nested section. e.g. my_section|nested_one
82
+        '_section_path_array'       => '', // 3.7.0 (array) An array version of the above section path.
83
+        '_nested_depth'             => 0, // 3.4.0 (integer) stores the level of the nesting depth. This is mostly used for debugging by checking if the field is a nested field or not.        
84
+        '_subsection_index'         => null, // 3.7.0 Passed to the `field_definition_{...}` filter hook callbacks.
85
+        '_section_repeatable'       => false, // @deprecated
86
+        '_is_section_repeatable'    => false, // 3.8.0 (boolean) Whether the belonging section is repeatable or not.
87 87
                
88
-        '_field_path'               => '',      // 3.7.0 (string) Stores the field path that indicates the structural location of the field. This is relative to the belonging section.
88
+        '_field_path'               => '', // 3.7.0 (string) Stores the field path that indicates the structural location of the field. This is relative to the belonging section.
89 89
         '_field_path_array'         => array(), // 3.7.0 (array) An array version of the above field path.
90
-        '_parent_field_path'        => '',      // 3.8.0 (string)
90
+        '_parent_field_path'        => '', // 3.8.0 (string)
91 91
         '_parent_field_path_array'  => array(), // 3.8.0 (array)
92 92
         
93
-        '_is_title_embedded'        => false,   // 3.8.0 (boolean) whether the field title is in the fieldset element, not in the table th element. This becomes `true` for `section_title` fields and fields with the `placement` argument with the value of `section_title` or `field_title`.
93
+        '_is_title_embedded'        => false, // 3.8.0 (boolean) whether the field title is in the fieldset element, not in the table th element. This becomes `true` for `section_title` fields and fields with the `placement` argument with the value of `section_title` or `field_title`.
94 94
         
95 95
     );        
96 96
     
@@ -167,14 +167,14 @@  discard block
 block discarded – undo
167 167
             array( 
168 168
                 '_fields_type'           => $this->sStructureType, // @deprecated 3.7.0 backward-compatibility
169 169
                 '_structure_type'        => $this->sStructureType,  
170
-                '_caller_object'         => $this->oCallerObject,  // 3.4.1+ Stores the caller form object. 
171
-                '_subsection_index'      => $this->iSubSectionIndex,  // 3.7.0+
170
+                '_caller_object'         => $this->oCallerObject, // 3.4.1+ Stores the caller form object. 
171
+                '_subsection_index'      => $this->iSubSectionIndex, // 3.7.0+
172 172
             )
173 173
             + $this->aFieldset,
174 174
             array( 
175 175
                 'capability'             => $this->sCapability,
176 176
                 'section_id'             => '_default',             
177
-                '_section_repeatable'    => $this->bIsSectionRepeatable,   // @deprecated  3.8.0   This was not used.
177
+                '_section_repeatable'    => $this->bIsSectionRepeatable, // @deprecated  3.8.0   This was not used.
178 178
                 '_is_section_repeatable' => $this->bIsSectionRepeatable,
179 179
             )
180 180
             + self::$aStructure
@@ -295,12 +295,12 @@  discard block
 block discarded – undo
295 295
           
296 296
             );
297 297
 
298
-            foreach( $aNestedFieldsets as $_isIndex => &$_aNestedFieldset ) {
298
+            foreach ( $aNestedFieldsets as $_isIndex => &$_aNestedFieldset ) {
299 299
                 
300 300
                 // The inline-mixed type has a string element.
301 301
                 if ( is_scalar( $_aNestedFieldset ) ) {                    
302 302
                     $_aNestedFieldset = array( 
303
-                        'field_id'              => $aParentFieldset[ 'field_id' ] . '_' . uniqid(),
303
+                        'field_id'              => $aParentFieldset[ 'field_id' ].'_'.uniqid(),
304 304
                         'content'               => $_aNestedFieldset,
305 305
                     );                    
306 306
                 }
Please login to merge, or discard this patch.
form/_model/formatter/AdminPageFramework_Form_Model___FormatSectionset.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -35,47 +35,47 @@  discard block
 block discarded – undo
35 35
         // Optional
36 36
         'page_slug'         => null,
37 37
         'tab_slug'          => null,
38
-        'section_tab_slug'  => null,    // 3.0.0+
38
+        'section_tab_slug'  => null, // 3.0.0+
39 39
         'title'             => null,
40 40
         'description'       => null,
41 41
         'capability'        => null,
42 42
         'if'                => true,    
43
-        'order'             => null,    // do not set the default number here because incremented numbers will be added when registering the sections.
43
+        'order'             => null, // do not set the default number here because incremented numbers will be added when registering the sections.
44 44
         'help'              => null,
45 45
         'help_aside'        => null,
46
-        'repeatable'        => false,   // (boolean|array) 3.0.0+
47
-        'sortable'          => false,   // (boolean|array) 3.6.0+
46
+        'repeatable'        => false, // (boolean|array) 3.0.0+
47
+        'sortable'          => false, // (boolean|array) 3.6.0+
48 48
         'attributes'        => array(   // 3.3.1+
49
-            'class'         => null,    // set null to avoid undefined index warnings.
50
-            'style'         => null,    // set null to avoid undefined index warnings.
49
+            'class'         => null, // set null to avoid undefined index warnings.
50
+            'style'         => null, // set null to avoid undefined index warnings.
51 51
             'tab'           => array(),
52 52
         ),
53 53
         'class'             => array(    // 3.3.1+
54 54
             'tab'           => array(),
55 55
         ),
56
-        'hidden'            => false,    // 3.3.1+
57
-        'collapsible'       => false,    // 3.4.0+ (boolean|array) For the array structure see the $aStructure_CollapsibleArguments property.
58
-        'save'              => true,     // 3.6.0+
56
+        'hidden'            => false, // 3.3.1+
57
+        'collapsible'       => false, // 3.4.0+ (boolean|array) For the array structure see the $aStructure_CollapsibleArguments property.
58
+        'save'              => true, // 3.6.0+
59 59
         
60
-        'content'           => null,     // 3.6.1+  (string) An overriding section-set output.
60
+        'content'           => null, // 3.6.1+  (string) An overriding section-set output.
61 61
         
62
-        'tip'               => null,     // 3.7.0  (string) Tool tip HTML strings. 
62
+        'tip'               => null, // 3.7.0  (string) Tool tip HTML strings. 
63 63
         
64 64
         // Internal
65
-        '_fields_type'      => null,     // @deprecated 3.7.0+ Use the `_structure_type` instead. 3.0.0+ - same as the one of the field definition array. Used to insert debug info at the bottom of sections.        
66
-        '_structure_type'   => null,     // 3.7.0+
67
-        '_is_first_index'   => false,    // 3.4.0+ (boolean) indicates whether it is the first item of the sub-sections (for repeatable sections).
68
-        '_is_last_index'    => false,    // 3.4.0+ (boolean) indicates whether it is the last item of the sub-sections (for repeatable sections).
65
+        '_fields_type'      => null, // @deprecated 3.7.0+ Use the `_structure_type` instead. 3.0.0+ - same as the one of the field definition array. Used to insert debug info at the bottom of sections.        
66
+        '_structure_type'   => null, // 3.7.0+
67
+        '_is_first_index'   => false, // 3.4.0+ (boolean) indicates whether it is the first item of the sub-sections (for repeatable sections).
68
+        '_is_last_index'    => false, // 3.4.0+ (boolean) indicates whether it is the last item of the sub-sections (for repeatable sections).
69 69
         
70
-        '_section_path'         => '',       // 3.7.0+ (string) e.g. my_section|nested_section       
71
-        '_section_path_array'   => '',       // 3.7.0+ (array) an array version of the above section_path argument. Numerically indexed.
72
-        '_nested_depth'         => 0,        // 3.7.0+ (integer) the nested level of the section
70
+        '_section_path'         => '', // 3.7.0+ (string) e.g. my_section|nested_section       
71
+        '_section_path_array'   => '', // 3.7.0+ (array) an array version of the above section_path argument. Numerically indexed.
72
+        '_nested_depth'         => 0, // 3.7.0+ (integer) the nested level of the section
73 73
         
74 74
         // 3.6.0+ - (object) the caller framework factory object. This allows the framework to access the factory property when rendering the section.
75 75
         // 3.7.0+  It no longer stores a factory object but a form object.
76 76
         '_caller_object'    => null,     
77 77
         
78
-        'show_debug_info'   => null,    // 3.8.8+ (boolean) Whether to display debug information. Inherits the page/in-page-tab setting (actually the factory property value of `$bShowDebugInfo` which gets updated by the page/tab setting).
78
+        'show_debug_info'   => null, // 3.8.8+ (boolean) Whether to display debug information. Inherits the page/in-page-tab setting (actually the factory property value of `$bShowDebugInfo` which gets updated by the page/tab setting).
79 79
         
80 80
     );        
81 81
     
@@ -94,7 +94,7 @@  discard block
 block discarded – undo
94 94
     
95 95
     public $oCaller             = null;
96 96
     
97
-    public $bShowDebugInfo      = true;     // 3.8.8+
97
+    public $bShowDebugInfo      = true; // 3.8.8+
98 98
     
99 99
     /**
100 100
      * Sets up properties.
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
             $this->sCapability, 
109 109
             $this->iCountOfElements,
110 110
             $this->oCaller,
111
-            $this->bShowDebugInfo,      // 3.8.8+
111
+            $this->bShowDebugInfo, // 3.8.8+
112 112
         );
113 113
         $this->aSectionset          = $_aParameters[ 0 ];
114 114
         $this->sSectionPath         = $_aParameters[ 1 ];
@@ -116,7 +116,7 @@  discard block
 block discarded – undo
116 116
         $this->sCapability          = $_aParameters[ 3 ];
117 117
         $this->iCountOfElements     = $_aParameters[ 4 ];
118 118
         $this->oCaller              = $_aParameters[ 5 ];
119
-        $this->bShowDebugInfo       = $_aParameters[ 6 ];   // 3.8.8+
119
+        $this->bShowDebugInfo       = $_aParameters[ 6 ]; // 3.8.8+
120 120
 
121 121
     }
122 122
     
@@ -131,16 +131,16 @@  discard block
 block discarded – undo
131 131
         $_aSectionPath = explode( '|', $this->sSectionPath );
132 132
         $_aSectionset  = $this->uniteArrays(
133 133
             array( 
134
-                '_fields_type'          => $this->sStructureType,   // @deprecated  3.7.0+
135
-                '_structure_type'       => $this->sStructureType,   // 3.7.0+
136
-                '_section_path'         => $this->sSectionPath,     // 3.7.0+
134
+                '_fields_type'          => $this->sStructureType, // @deprecated  3.7.0+
135
+                '_structure_type'       => $this->sStructureType, // 3.7.0+
136
+                '_section_path'         => $this->sSectionPath, // 3.7.0+
137 137
                 '_section_path_array'   => $_aSectionPath,
138
-                '_nested_depth'         => count( $_aSectionPath ) - 1,    // 3.7.0+ - zero base
138
+                '_nested_depth'         => count( $_aSectionPath ) - 1, // 3.7.0+ - zero base
139 139
             ) 
140 140
             + $this->aSectionset
141 141
             + array(
142 142
                 'capability'        => $this->sCapability,
143
-                'show_debug_info'   => $this->bShowDebugInfo,   // 3.8.8+
143
+                'show_debug_info'   => $this->bShowDebugInfo, // 3.8.8+
144 144
             ),
145 145
             self::$aStructure
146 146
         );
Please login to merge, or discard this patch.
_common/form/field_type/AdminPageFramework_FieldType_inline_mixed.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -218,8 +218,8 @@
 block discarded – undo
218 218
      * @remark $_aDefaultKeys holds shared default key-values defined in the base class.
219 219
      */
220 220
     protected $aDefaultKeys = array(
221
-        'label_min_width'  => '',       // disabled as the embedded elements are all inline.
222
-        'show_debug_info'  => false,    // 3.8.8+ @todo Examine why this value does not override the default value of field definition arguments and if possible and appropriate, override it.
221
+        'label_min_width'  => '', // disabled as the embedded elements are all inline.
222
+        'show_debug_info'  => false, // 3.8.8+ @todo Examine why this value does not override the default value of field definition arguments and if possible and appropriate, override it.
223 223
     );
224 224
 
225 225
     
Please login to merge, or discard this patch.
factory/_common/utility/base_utility/AdminPageFramework_Utility.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
      * @return      void
29 29
      * @since       3.8.8
30 30
      */
31
-    static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='Admin Page Framework' ) {
31
+    static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = 'Admin Page Framework' ) {
32 32
         trigger_error(
33
-            $sProgramName . ': ' . sprintf(
33
+            $sProgramName.': '.sprintf(
34 34
                 $sAlternative
35 35
                     ? '<code>%1$s</code> has been deprecated. Use <code>%2$s</code> instead.'
36 36
                     : '<code>%1$s</code> has been deprecated.',
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
      * @param       callable            $oCallable
53 53
      * @param       string|array        $asParameters       Parameters to pass to the callback function.
54 54
      */
55
-    public function callBack( $oCallable, $asParameters=array() ) {
56
-        $_aParameters   = self::getAsArray( 
55
+    public function callBack( $oCallable, $asParameters = array() ) {
56
+        $_aParameters = self::getAsArray( 
57 57
             $asParameters, 
58 58
             true // preserve empty
59 59
         );
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @since       3.6.3
90 90
      * @return      string      The captured output buffer.
91 91
      */
92
-    static public function getOutputBuffer( $oCallable, array $aParameters=array() ) {
92
+    static public function getOutputBuffer( $oCallable, array $aParameters = array() ) {
93 93
         
94 94
         ob_start(); 
95 95
         echo call_user_func_array( $oCallable, $aParameters );
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         
111 111
         $_iCount     = count( get_object_vars( $oInstance ) );
112 112
         $_sClassName = get_class( $oInstance );
113
-        return '(object) ' . $_sClassName . ': ' . $_iCount . ' properties.';
113
+        return '(object) '.$_sClassName.': '.$_iCount.' properties.';
114 114
         
115 115
     }
116 116
                    
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param       boolean|integer|double|string|array|object|resource|NULL        $mTrue      The value to return when the first parameter value yields false.
128 128
      * @return      mixed
129 129
      */
130
-    static public function getAOrB( $mValue, $mTrue=null, $mFalse=null ) {
130
+    static public function getAOrB( $mValue, $mTrue = null, $mFalse = null ) {
131 131
         return $mValue ? $mTrue : $mFalse;
132 132
     }    
133 133
     
Please login to merge, or discard this patch.