Completed
Pull Request — dev (#281)
by
unknown
02:00
created
form/_view/sectionset/AdminPageFramework_Form_View___FieldsetRows.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
      * @return      string
59 59
      * @since       3.7.0
60 60
      */
61
-    public function get( $bTableRow=true ) {
61
+    public function get( $bTableRow = true ) {
62 62
 
63 63
         $_sMethodName = $this->getAOrB(
64 64
             $bTableRow,
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
         );
68 68
 
69 69
         $_sOutput = '';
70
-        foreach( $this->aFieldsetsPerSection as $_aFieldset ) {
70
+        foreach ( $this->aFieldsetsPerSection as $_aFieldset ) {
71 71
 
72 72
             $_oFieldsetOutputFormatter = new AdminPageFramework_Form_Model___Format_FieldsetOutput(
73 73
                 $_aFieldset,
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
             );
77 77
 
78 78
             $_aFieldset = $_oFieldsetOutputFormatter->get();
79
-            if ( ! $_aFieldset[ 'if' ] ) {
79
+            if ( !$_aFieldset[ 'if' ] ) {
80 80
                 continue;
81 81
             }
82 82
 
Please login to merge, or discard this patch.
field/AdminPageFramework_Form_View___Generate_FlatFieldInputName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
             '',
38 38
             "|{$this->sIndex}"
39 39
         );
40
-        return $this->_getFiltered( $this->_getFlatFieldName() . $_sIndex );
40
+        return $this->_getFiltered( $this->_getFlatFieldName().$_sIndex );
41 41
 
42 42
     }
43 43
 
Please login to merge, or discard this patch.
generator/field/AdminPageFramework_Form_View___Generate_FieldTagID.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
      * @return      string
40 40
      */
41 41
     public function getModel() {
42
-        return $this->get() . '__' . $this->sIndexMark;
42
+        return $this->get().'__'.$this->sIndexMark;
43 43
     }
44 44
         /**
45 45
          * @since       3.6.0
@@ -49,17 +49,17 @@  discard block
 block discarded – undo
49 49
 
50 50
             // 3.8.0+
51 51
             if ( $this->aArguments[ '_parent_tag_id' ] ) {
52
-                return $this->aArguments[ '_parent_tag_id' ] . '_' . $this->aArguments[ 'field_id' ];
52
+                return $this->aArguments[ '_parent_tag_id' ].'_'.$this->aArguments[ 'field_id' ];
53 53
             }
54 54
 
55 55
             $_sSectionIndex = isset( $this->aArguments[ '_section_index' ] )
56
-                ? '__' . $this->aArguments[ '_section_index' ]
56
+                ? '__'.$this->aArguments[ '_section_index' ]
57 57
                 : '';
58 58
             $_sSectionPart = implode( '_', $this->aArguments[ '_section_path_array' ] );
59 59
             $_sFieldPart   = implode( '_', $this->aArguments[ '_field_path_array' ] );
60 60
 
61 61
             return $this->_isSectionSet()
62
-                ? $_sSectionPart . $_sSectionIndex . '_' . $_sFieldPart
62
+                ? $_sSectionPart.$_sSectionIndex.'_'.$_sFieldPart
63 63
                 : $_sFieldPart;
64 64
 
65 65
         }
Please login to merge, or discard this patch.
factory/_common/_abstract/_controller/AdminPageFramework_HelpPane_Base.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
      * @since 2.1.0
54 54
      * @internal
55 55
      */
56
-    protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents=array() ) {
56
+    protected function _setHelpTab( $sID, $sTitle, $aContents, $aSideBarContents = array() ) {
57 57
 
58 58
         if ( empty( $aContents ) ) {
59 59
             return;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
             )
71 71
         );
72 72
 
73
-        if ( ! empty( $aSideBarContents ) ) {
73
+        if ( !empty( $aSideBarContents ) ) {
74 74
             $this->_oScreen->set_help_sidebar( implode( PHP_EOL, $aSideBarContents ) );
75 75
         }
76 76
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @internal
83 83
      */
84 84
     protected function _formatHelpDescription( $sHelpDescription ) {
85
-        return "<div class='contextual-help-description'>" . $sHelpDescription . "</div>";
85
+        return "<div class='contextual-help-description'>".$sHelpDescription."</div>";
86 86
     }
87 87
 
88 88
 
@@ -106,10 +106,10 @@  discard block
 block discarded – undo
106 106
      * @remark      This method just adds the given text into the class property. The actual registration will be performed with the <em>replyToRegisterHelpTabTextForMetaBox()</em> method.
107 107
      * @internal
108 108
      */
109
-    public function _addHelpText( $sHTMLContent, $sHTMLSidebarContent="" ) {
109
+    public function _addHelpText( $sHTMLContent, $sHTMLSidebarContent = "" ) {
110 110
 
111
-        $this->oProp->aHelpTabText[]        = "<div class='contextual-help-description'>" . $sHTMLContent . "</div>";
112
-        $this->oProp->aHelpTabTextSide[]    = "<div class='contextual-help-description'>" . $sHTMLSidebarContent . "</div>";
111
+        $this->oProp->aHelpTabText[ ]        = "<div class='contextual-help-description'>".$sHTMLContent."</div>";
112
+        $this->oProp->aHelpTabTextSide[ ]    = "<div class='contextual-help-description'>".$sHTMLSidebarContent."</div>";
113 113
 
114 114
     }
115 115
 
@@ -125,9 +125,9 @@  discard block
 block discarded – undo
125 125
      * @remark      This method just adds the given text into the class property. The actual registration will be performed with the `replyToRegisterHelpTabTextForMetaBox()` method.
126 126
      * @internal
127 127
      */
128
-    public function _addHelpTextForFormFields( $sFieldTitle, $sHelpText, $sHelpTextSidebar="" ) {
128
+    public function _addHelpTextForFormFields( $sFieldTitle, $sHelpText, $sHelpTextSidebar = "" ) {
129 129
         $this->_addHelpText(
130
-            "<span class='contextual-help-tab-title'>" . $sFieldTitle . "</span> - " . PHP_EOL
130
+            "<span class='contextual-help-tab-title'>".$sFieldTitle."</span> - ".PHP_EOL
131 131
                 . $sHelpText,
132 132
             $sHelpTextSidebar
133 133
         );
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
     public function _replyToRegisterHelpTabText() {
146 146
 
147 147
         // Check if the currently loaded page is of meta box page.
148
-        if ( ! $this->oProp->oCaller->isInThePage() ) {
148
+        if ( !$this->oProp->oCaller->isInThePage() ) {
149 149
             return false;
150 150
         }
151 151
 
Please login to merge, or discard this patch.
factory/_common/_abstract/_controller/AdminPageFramework_Link_Base.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -25,9 +25,9 @@  discard block
 block discarded – undo
25 25
     /**
26 26
      * Sets up hooks and properties.
27 27
      */
28
-    public function __construct( $oProp, $oMsg=null ) {
28
+    public function __construct( $oProp, $oMsg = null ) {
29 29
 
30
-        if ( ! $this->_isLoadable( $oProp ) ) {
30
+        if ( !$this->_isLoadable( $oProp ) ) {
31 31
             return;
32 32
         }
33 33
 
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
         // Add an action link in the plugin listing page
40 40
         if ( $this->_shouldSetPluginActionLinks() ) {
41 41
             add_filter(
42
-                'plugin_action_links_' . plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
42
+                'plugin_action_links_'.plugin_basename( $this->oProp->aScriptInfo[ 'sPath' ] ),
43 43
                 array( $this, '_replyToAddSettingsLinkInPluginListingPage' ),
44 44
                 20     // set a lower priority so that the link will be embedded at the beginning ( the most left hand side ).
45 45
             );
@@ -54,13 +54,13 @@  discard block
 block discarded – undo
54 54
          * @return      boolean
55 55
          */
56 56
         private function _isLoadable( $oProp ) {
57
-            if ( ! $oProp->bIsAdmin ) {
57
+            if ( !$oProp->bIsAdmin ) {
58 58
                 return false;
59 59
             }
60 60
             if ( $oProp->bIsAdminAjax ) {
61 61
                 return false;
62 62
             }
63
-            return ! $this->hasBeenCalled( 'links_' . $oProp->sClassName );
63
+            return !$this->hasBeenCalled( 'links_'.$oProp->sClassName );
64 64
         }
65 65
 
66 66
     /**
@@ -84,11 +84,11 @@  discard block
 block discarded – undo
84 84
     protected function _shouldSetPluginActionLinks() {
85 85
 
86 86
         // It is possible that the sub-objects are not set when the class is considered not loadable.
87
-        if ( ! isset( $this->oProp ) ) {
87
+        if ( !isset( $this->oProp ) ) {
88 88
             return false;
89 89
         }
90 90
 
91
-        if ( ! in_array( $this->oProp->sPageNow, array( 'plugins.php' ) ) ) {
91
+        if ( !in_array( $this->oProp->sPageNow, array( 'plugins.php' ) ) ) {
92 92
             return false;
93 93
         }
94 94
         return 'plugin' === $this->oProp->aScriptInfo[ 'sType' ];
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                         array(
156 156
                             'href'      => $aScriptInfo[ 'sURI' ],
157 157
                             'target'    => '_blank',
158
-                            'title'     => $aScriptInfo[ 'sName' ] . $_sVersion . $_sDescription
158
+                            'title'     => $aScriptInfo[ 'sName' ].$_sVersion.$_sDescription
159 159
                         ),
160 160
                         $aScriptInfo[ 'sName' ]
161 161
                     )
@@ -177,13 +177,13 @@  discard block
 block discarded – undo
177 177
                 $_sAuthorInfo = $this->getAOrB(
178 178
                     empty( $aScriptInfo[ 'sAuthor' ] ),
179 179
                     $_sAuthorInfo,
180
-                    ' by ' . $_sAuthorInfo
180
+                    ' by '.$_sAuthorInfo
181 181
                 );
182 182
 
183 183
                 // Enclosing the output in a span tag as the outer element is a '<p>' tag. So this cannot be div.
184 184
                 // 3.5.7+ Added the class attribute for acceptance testing
185 185
                 return "<span class='apf-script-info'>"
186
-                        . $_sPluginInfo . $_sAuthorInfo
186
+                        . $_sPluginInfo.$_sAuthorInfo
187 187
                     . "</span>";
188 188
 
189 189
             }
@@ -214,7 +214,7 @@  discard block
 block discarded – undo
214 214
                         array(
215 215
                             'href'      => $aScriptInfo[ 'sURI' ],
216 216
                             'target'    => '_blank',
217
-                            'title'     => $aScriptInfo[ 'sName' ] . $_sVersion . $_sDescription,
217
+                            'title'     => $aScriptInfo[ 'sName' ].$_sVersion.$_sDescription,
218 218
                         ),
219 219
                         $aScriptInfo[ 'sName' ]
220 220
                     )
@@ -224,16 +224,16 @@  discard block
 block discarded – undo
224 224
                 // 3.5.7+ added the 'apf-credit' class attribute for acceptance testing
225 225
                 // 3.7.0+  added the footer-thankyou id attribute.
226 226
                 return "<span class='apf-credit' id='footer-thankyou'>"
227
-                    . $this->oMsg->get( 'powered_by' ) . '&nbsp;'
227
+                    . $this->oMsg->get( 'powered_by' ).'&nbsp;'
228 228
                     . $_sLibraryInfo
229 229
                     . ",&nbsp;"
230
-                    . $this->oMsg->get( 'and' ) . '&nbsp;'
230
+                    . $this->oMsg->get( 'and' ).'&nbsp;'
231 231
                     . $this->getHTMLTag(
232 232
                         'a',
233 233
                         array(
234 234
                             'href'      => 'https://wordpress.org',
235 235
                             'target'    => '_blank',
236
-                            'title'     => 'WordPress ' . $GLOBALS[ 'wp_version' ]
236
+                            'title'     => 'WordPress '.$GLOBALS[ 'wp_version' ]
237 237
                         ),
238 238
                         'WordPress'
239 239
                     )
@@ -249,7 +249,7 @@  discard block
 block discarded – undo
249 249
          */
250 250
         protected function _setFooterHooks() {
251 251
 
252
-            add_filter( 'admin_footer_text' , array( $this, '_replyToAddInfoInFooterLeft' ) );
252
+            add_filter( 'admin_footer_text', array( $this, '_replyToAddInfoInFooterLeft' ) );
253 253
             add_filter( 'update_footer', array( $this, '_replyToAddInfoInFooterRight' ), 11 );
254 254
 
255 255
         }
@@ -261,7 +261,7 @@  discard block
 block discarded – undo
261 261
              * @callback    filter      admin_footer_text
262 262
              * @internal
263 263
              */
264
-            public function _replyToAddInfoInFooterLeft( $sLinkHTML='' ) {
264
+            public function _replyToAddInfoInFooterLeft( $sLinkHTML = '' ) {
265 265
 
266 266
                 $sLinkHTML = empty( $this->oProp->aScriptInfo[ 'sName' ] )
267 267
                     ? $sLinkHTML
@@ -269,7 +269,7 @@  discard block
 block discarded – undo
269 269
 
270 270
                 return $this->addAndApplyFilters(
271 271
                     $this->oProp->oCaller,
272
-                    'footer_left_' . $this->oProp->sClassName,
272
+                    'footer_left_'.$this->oProp->sClassName,
273 273
                     $sLinkHTML
274 274
                 );
275 275
 
@@ -282,10 +282,10 @@  discard block
 block discarded – undo
282 282
              * @callback    filter      admin_footer_text
283 283
              * @internal
284 284
              */
285
-            public function _replyToAddInfoInFooterRight( $sLinkHTML='' ) {
285
+            public function _replyToAddInfoInFooterRight( $sLinkHTML = '' ) {
286 286
                 return $this->addAndApplyFilters(
287 287
                     $this->oProp->oCaller,
288
-                    'footer_right_' . $this->oProp->sClassName,
288
+                    'footer_right_'.$this->oProp->sClassName,
289 289
                     $this->oProp->aFooterInfo[ 'sRight' ]
290 290
                 );
291 291
             }
Please login to merge, or discard this patch.
development/factory/_common/_abstract/AdminPageFramework_Factory_Router.php 1 patch
Spacing   +19 added lines, -19 removed lines patch added patch discarded remove patch
@@ -162,8 +162,8 @@  discard block
 block discarded – undo
162 162
         }
163 163
 
164 164
         // Call the user constructor.
165
-        $this->start();     // defined in the controller class.
166
-        $this->oUtil->addAndDoAction( $this, 'start_' . $this->oProp->sClassName, $this );
165
+        $this->start(); // defined in the controller class.
166
+        $this->oUtil->addAndDoAction( $this, 'start_'.$this->oProp->sClassName, $this );
167 167
 
168 168
     }
169 169
         /**
@@ -172,8 +172,8 @@  discard block
 block discarded – undo
172 172
          * @return      array
173 173
          */
174 174
         private function ___getSubClassNames() {
175
-            foreach( $this->_aSubClassPrefixes as $_sObjectVariableName => $_sPrefix ) {
176
-                $this->aSubClassNames[ $_sObjectVariableName ] = $_sPrefix . $this->_sStructureType;
175
+            foreach ( $this->_aSubClassPrefixes as $_sObjectVariableName => $_sPrefix ) {
176
+                $this->aSubClassNames[ $_sObjectVariableName ] = $_sPrefix.$this->_sStructureType;
177 177
             }
178 178
             return $this->aSubClassNames + $this->_aSubClassNames;
179 179
         }
@@ -187,15 +187,15 @@  discard block
 block discarded – undo
187 187
      */
188 188
     public function _replyToLoadComponents( /* $oScreen */ ) {
189 189
 
190
-        if ( ! $this->_isInThePage() ) {
190
+        if ( !$this->_isInThePage() ) {
191 191
             return;
192 192
         }
193 193
 
194
-        if ( ! isset( $this->oResource ) ) {
194
+        if ( !isset( $this->oResource ) ) {
195 195
             $this->oResource = $this->_replyTpSetAndGetInstance_oResource();
196 196
         }
197 197
 
198
-        if ( ! isset(  $this->oLink ) ) {
198
+        if ( !isset( $this->oLink ) ) {
199 199
             $this->oLink = $this->_replyTpSetAndGetInstance_oLink();
200 200
         }
201 201
 
@@ -209,10 +209,10 @@  discard block
 block discarded – undo
209 209
      * Calls the load method and callbacks.
210 210
      * @since       3.8.14
211 211
      */
212
-    protected function _load( $aActions=array() ) {
212
+    protected function _load( $aActions = array() ) {
213 213
         $aActions = empty( $aActions )
214 214
             ? array(
215
-                'load_' . $this->oProp->sClassName,
215
+                'load_'.$this->oProp->sClassName,
216 216
             )
217 217
             : $aActions;
218 218
         $this->load();
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
      */
225 225
     protected function _setUp() {
226 226
         $aActions = array(
227
-            'set_up_' . $this->oProp->sClassName,
227
+            'set_up_'.$this->oProp->sClassName,
228 228
         );
229 229
         $this->setUp();
230 230
         $this->oUtil->addAndDoActions( $this, $aActions, $this );
@@ -251,7 +251,7 @@  discard block
 block discarded – undo
251 251
          * @since   3.8.19
252 252
          */
253 253
         protected function _isWordPressCoreAjaxRequest() {
254
-            if ( ! isset( $GLOBALS[ 'pagenow' ] ) ) {
254
+            if ( !isset( $GLOBALS[ 'pagenow' ] ) ) {
255 255
                 return false;
256 256
             }
257 257
             if ( 'admin-ajax.php' !== $GLOBALS[ 'pagenow' ] ) {
@@ -283,7 +283,7 @@  discard block
 block discarded – undo
283 283
      * @return  boolean
284 284
      */
285 285
     protected function _isValidAjaxReferrer() {
286
-        if ( ! $this->oProp->bIsAdminAjax ) {
286
+        if ( !$this->oProp->bIsAdminAjax ) {
287 287
             return false;
288 288
         }
289 289
         return true;
@@ -299,7 +299,7 @@  discard block
 block discarded – undo
299 299
      */
300 300
     public function _replyToDetermineToLoad() {
301 301
 
302
-        if ( ! $this->_isInThePage() ) {
302
+        if ( !$this->_isInThePage() ) {
303 303
             return;
304 304
         }
305 305
 
@@ -363,7 +363,7 @@  discard block
 block discarded – undo
363 363
         // Set and return the sub class object instance.
364 364
         if ( isset( $this->aSubClassNames[ $sPropertyName ] ) ) {
365 365
             return call_user_func(
366
-                array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}"  )
366
+                array( $this, "_replyTpSetAndGetInstance_{$sPropertyName}" )
367 367
             );
368 368
         }
369 369
 
@@ -397,7 +397,7 @@  discard block
 block discarded – undo
397 397
          */
398 398
         public function _replyTpSetAndGetInstance_oMsg() {
399 399
             $this->oMsg = call_user_func_array(
400
-                array( $this->aSubClassNames[ 'oMsg' ], 'getInstance'),
400
+                array( $this->aSubClassNames[ 'oMsg' ], 'getInstance' ),
401 401
                 array( $this->oProp->sTextDomain )  // parameters
402 402
             );
403 403
             return $this->oMsg;
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
      *
463 463
      * @internal
464 464
      */
465
-    public function __call( $sMethodName, $aArguments=null ) {
465
+    public function __call( $sMethodName, $aArguments = null ) {
466 466
 
467 467
         $_mFirstArg = $this->oUtil->getElement( $aArguments, 0 );
468 468
 
@@ -492,7 +492,7 @@  discard block
 block discarded – undo
492 492
 
493 493
             // Check if the method name does not contain a backslash.
494 494
             if ( false === strpos( $sMethodName, "\\" ) ) {
495
-                return $this->oUtil->getElement( $aArguments, 0 );  // the first element - the filter value
495
+                return $this->oUtil->getElement( $aArguments, 0 ); // the first element - the filter value
496 496
             }
497 497
 
498 498
             // If the method name contains a backslash, the user may be using a name space.
@@ -503,7 +503,7 @@  discard block
 block discarded – undo
503 503
                     array( $this, $_sAutoCallbackMethodName ),
504 504
                     $aArguments
505 505
                 )
506
-                : $this->oUtil->getElement( $aArguments, 0 );   // the first argument
506
+                : $this->oUtil->getElement( $aArguments, 0 ); // the first argument
507 507
 
508 508
         }
509 509
 
@@ -513,7 +513,7 @@  discard block
 block discarded – undo
513 513
          */
514 514
         private function _triggerUndefinedMethodWarning( $sMethodName ) {
515 515
             trigger_error(
516
-                AdminPageFramework_Registry::NAME . ': '
516
+                AdminPageFramework_Registry::NAME.': '
517 517
                     . sprintf(
518 518
                         __( 'The method is not defined: %1$s', $this->oProp->sTextDomain ),
519 519
                         $sMethodName
Please login to merge, or discard this patch.
development/factory/_common/_abstract/AdminPageFramework_Factory_View.php 2 patches
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
          * @return      string      the input id attribute
41 41
          */
42 42
         public function _replyToGetSectionName( /* $sSectionName, $aSectionset */ ) {
43
-            $_aParams = func_get_args() + array( null, null, );
43
+            $_aParams = func_get_args() + array( null, null,);
44 44
             return $_aParams[ 0 ];
45 45
         }
46 46
 
@@ -68,8 +68,8 @@  discard block
 block discarded – undo
68 68
          * @since       3.6.0
69 69
          * @return      string
70 70
          */
71
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {
72
-            $_aParams = func_get_args() + array( null, null, );
71
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {
72
+            $_aParams = func_get_args() + array( null, null,);
73 73
             return $_aParams[ 0 ];
74 74
         }
75 75
         /**
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
          * @return      string
80 80
          */
81 81
         public function _replyToGetFlatFieldName( /* $sFieldName, $aFieldset */ ) {
82
-            $_aParams = func_get_args() + array( null, null, );
82
+            $_aParams = func_get_args() + array( null, null,);
83 83
             return $_aParams[ 0 ];
84 84
         }
85 85
 
@@ -101,7 +101,7 @@  discard block
 block discarded – undo
101 101
          * @return      string      the flat input name attribute
102 102
          */
103 103
         public function _replyToGetFlatInputName( /* $sFlatNameAttribute, $aField, $sKey */ ) {
104
-            $_aParams   = func_get_args() + array( null, null, null );
104
+            $_aParams = func_get_args() + array( null, null, null );
105 105
             return $_aParams[ 0 ];
106 106
         }
107 107
 
@@ -143,14 +143,14 @@  discard block
 block discarded – undo
143 143
                 'if'            => true,
144 144
                 'capability'    => '',
145 145
             );
146
-            if ( ! $aElementDefinition[ 'if' ] ) {
146
+            if ( !$aElementDefinition[ 'if' ] ) {
147 147
                 return false;
148 148
             }
149 149
             // For front-end forms that allow guests, the capability level can be empty. In that case, return true.
150
-            if ( ! $aElementDefinition[ 'capability' ] ) {
150
+            if ( !$aElementDefinition[ 'capability' ] ) {
151 151
                 return true;
152 152
             }
153
-            if ( ! current_user_can( $aElementDefinition[ 'capability' ] ) ) {
153
+            if ( !current_user_can( $aElementDefinition[ 'capability' ] ) ) {
154 154
                 return false;
155 155
             }
156 156
             return $bDefault;
@@ -186,7 +186,7 @@  discard block
 block discarded – undo
186 186
             $this,
187 187
             array(
188 188
                 // section_{instantiated class name}_{section id}
189
-                'section_head_' . $this->oProp->sClassName . '_' . $aSectionset[ 'section_id' ]
189
+                'section_head_'.$this->oProp->sClassName.'_'.$aSectionset[ 'section_id' ]
190 190
             ),
191 191
             $sSectionDescription
192 192
         );
@@ -203,15 +203,15 @@  discard block
 block discarded – undo
203 203
      */
204 204
     public function _replyToGetFieldOutput( $sFieldOutput, $aFieldset ) {
205 205
 
206
-        $_sSectionPart  = $this->oUtil->getAOrB(
206
+        $_sSectionPart = $this->oUtil->getAOrB(
207 207
             isset( $aFieldset[ 'section_id' ] ) && '_default' !== $aFieldset[ 'section_id' ],
208
-            '_' . $aFieldset[ 'section_id' ],
208
+            '_'.$aFieldset[ 'section_id' ],
209 209
             ''
210 210
         );
211 211
         return $this->oUtil->addAndApplyFilters(
212 212
             $this,
213 213
             array(
214
-                'field_' . $this->oProp->sClassName . $_sSectionPart . '_' . $aFieldset[ 'field_id' ]
214
+                'field_'.$this->oProp->sClassName.$_sSectionPart.'_'.$aFieldset[ 'field_id' ]
215 215
             ),
216 216
             $sFieldOutput,
217 217
             $aFieldset // the field array
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@
 block discarded – undo
68 68
          * @since       3.6.0
69 69
          * @return      string
70 70
          */
71
-        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ )  {
71
+        public function _replyToGetFieldNameAttribute( /* $sFieldName, $aFieldset */ ) {
72 72
             $_aParams = func_get_args() + array( null, null, );
73 73
             return $_aParams[ 0 ];
74 74
         }
Please login to merge, or discard this patch.
development/factory/_common/_abstract/_model/AdminPageFramework_Message.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -81,11 +81,11 @@  discard block
 block discarded – undo
81 81
         'confirm_perform_task'                  => 'Please confirm your action.',
82 82
         'specified_option_been_deleted'         => 'The specified options have been deleted.',
83 83
         'nonce_verification_failed'             => 'A problem occurred while processing the form data. Please try again.',
84
-        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s',  // 3.5.11+
85
-        'send_email'                            => 'Is it okay to send the email?',     // 3.3.0+
86
-        'email_sent'                            => 'The email has been sent.',  // 3.3.0+, 3.3.5+ deprecated
84
+        'check_max_input_vars'                  => 'Not all form fields could not be sent. Please check your server settings of PHP <code>max_input_vars</code> and consult the server administrator to increase the value. <code>max input vars</code>: %1$s. <code>$_POST</code> count: %2$s', // 3.5.11+
85
+        'send_email'                            => 'Is it okay to send the email?', // 3.3.0+
86
+        'email_sent'                            => 'The email has been sent.', // 3.3.0+, 3.3.5+ deprecated
87 87
         'email_scheduled'                       => 'The email has been scheduled.', // 3.3.5+
88
-        'email_could_not_send'                  => 'There was a problem sending the email',     // 3.3.0+
88
+        'email_could_not_send'                  => 'There was a problem sending the email', // 3.3.0+
89 89
 
90 90
         // AdminPageFramework_PostType
91 91
         'title'                                 => 'Title',
@@ -112,14 +112,14 @@  discard block
 block discarded – undo
112 112
         'upload_file'                           => 'Upload File',
113 113
         'use_this_file'                         => 'Use This File',
114 114
         'select_file'                           => 'Select File',
115
-        'remove_value'                          => 'Remove Value',  // 3.2.0+
116
-        'select_all'                            => 'Select All',    // 3.3.0+
117
-        'select_none'                           => 'Select None',   // 3.3.0+
115
+        'remove_value'                          => 'Remove Value', // 3.2.0+
116
+        'select_all'                            => 'Select All', // 3.3.0+
117
+        'select_none'                           => 'Select None', // 3.3.0+
118 118
         'no_term_found'                         => 'No term found.', // 3.3.2+
119 119
 
120 120
         // AdminPageFramework_Form_View___Script_{...}
121 121
         'select'                                => 'Select', // 3.4.2+
122
-        'insert'                                => 'Insert',  // 3.4.2+
122
+        'insert'                                => 'Insert', // 3.4.2+
123 123
         'use_this'                              => 'Use This', // 3.4.2+
124 124
         'return_to_library'                     => 'Return to Library', // 3.4.2+
125 125
 
@@ -131,8 +131,8 @@  discard block
 block discarded – undo
131 131
 
132 132
         // Repeatable sections & fields
133 133
         'repeatable_section_is_disabled'        => 'The ability to repeat sections is disabled.', // 3.8.13+
134
-        'repeatable_field_is_disabled'          => 'The ability to repeat fields is disabled.',   // 3.8.13+
135
-        'warning_caption'                       => 'Warning',   // 3.8.13+
134
+        'repeatable_field_is_disabled'          => 'The ability to repeat fields is disabled.', // 3.8.13+
135
+        'warning_caption'                       => 'Warning', // 3.8.13+
136 136
 
137 137
         // AdminPageFramework_FormField
138 138
         'allowed_maximum_number_of_fields'      => 'The allowed maximum number of fields is {0}.',
@@ -209,7 +209,7 @@  discard block
 block discarded – undo
209 209
      * @since       3.2.0       Changed it to create an instance per text domain basis.
210 210
      * @remark      This class should be instantiated via this method.
211 211
      */
212
-    public static function getInstance( $sTextDomain='admin-page-framework' ) {
212
+    public static function getInstance( $sTextDomain = 'admin-page-framework' ) {
213 213
 
214 214
         $_oInstance = isset( self::$_aInstancesByTextDomain[ $sTextDomain ] ) && ( self::$_aInstancesByTextDomain[ $sTextDomain ] instanceof AdminPageFramework_Message )
215 215
             ? self::$_aInstancesByTextDomain[ $sTextDomain ]
@@ -222,21 +222,21 @@  discard block
 block discarded – undo
222 222
          * Ensures that only one instance of this class object exists. ( no multiple instances of this object )
223 223
          * @deprecated  3.2.0
224 224
          */
225
-        public static function instantiate( $sTextDomain='admin-page-framework' ) {
225
+        public static function instantiate( $sTextDomain = 'admin-page-framework' ) {
226 226
             return self::getInstance( $sTextDomain );
227 227
         }
228 228
 
229 229
     /**
230 230
      * Sets up properties.
231 231
      */
232
-    public function __construct( $sTextDomain='admin-page-framework' ) {
232
+    public function __construct( $sTextDomain = 'admin-page-framework' ) {
233 233
 
234 234
         $this->_sTextDomain = $sTextDomain;
235 235
 
236 236
         // Fill the $aMessages property with the keys extracted from the $aDefaults property
237 237
         // with the value of null.  The null is set to let it trigger the __get() method
238 238
         // so that each translation item gets processed individually.
239
-        $this->aMessages    = array_fill_keys(
239
+        $this->aMessages = array_fill_keys(
240 240
             array_keys( $this->aDefaults ),
241 241
             null
242 242
         );
@@ -270,13 +270,13 @@  discard block
 block discarded – undo
270 270
      * @since       3.7.0      If no key is specified, return the entire mesage array.
271 271
      * @return      string|array
272 272
      */
273
-    public function get( $sKey='' ) {
274
-        if ( ! $sKey ) {
273
+    public function get( $sKey = '' ) {
274
+        if ( !$sKey ) {
275 275
             return $this->_getAllMessages();
276 276
         }
277 277
         return isset( $this->aMessages[ $sKey ] )
278 278
             ? __( $this->aMessages[ $sKey ], $this->_sTextDomain )
279
-            : __( $this->{$sKey}, $this->_sTextDomain );     // triggers __get()
279
+            : __( $this->{$sKey}, $this->_sTextDomain ); // triggers __get()
280 280
     }
281 281
         /**
282 282
          * Returns the all registered messag items.
Please login to merge, or discard this patch.
_common/_abstract/_view/AdminPageFramework_Factory_View__SettingNotice.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @since       3.7.9       Added the second parameter to accept an action hook name.
27 27
      */
28 28
 
29
-    public function __construct( $oFactory, $sActionHookName='admin_notices' ) {
29
+    public function __construct( $oFactory, $sActionHookName = 'admin_notices' ) {
30 30
 
31 31
         $this->oFactory = $oFactory;
32 32
 
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      */
46 46
     public function _replyToPrintSettingNotice() {
47 47
 
48
-        if ( ! $this->_shouldProceed() ) {
48
+        if ( !$this->_shouldProceed() ) {
49 49
             return;
50 50
         }
51 51
         $this->oFactory->oForm->printSubmitNotices();
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
          */
60 60
         private function _shouldProceed() {
61 61
 
62
-            if ( ! $this->oFactory->isInThePage() ) {
62
+            if ( !$this->oFactory->isInThePage() ) {
63 63
                 return false;
64 64
             }
65 65
 
Please login to merge, or discard this patch.