Completed
Branch master (7ff82b)
by
unknown
01:54
created
development/factory/meta_box/AdminPageFramework_MetaBox_Model.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
          * @internal
155 155
          * @return      integer     The found post ID. `0` if not found.
156 156
          */
157
-        private function ___getPostID()  {
157
+        private function ___getPostID() {
158 158
 
159 159
             // for an editing post page.
160 160
             if ( isset( $GLOBALS[ 'post' ]->ID ) ) {
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_submit.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
          * @return      array   The label container attribute array.
389 389
          * @internal
390 390
          */        
391
-        private function _getLabelContainerAttributes( array $aField ) {           
391
+        private function _getLabelContainerAttributes( array $aField ) {
392 392
             return array(
393 393
                 'style' => $aField[ 'label_min_width' ] || '0' === ( string ) $aField[ 'label_min_width' ]
394 394
                     ? "min-width:" . $this->getLengthSanitized( $aField[ 'label_min_width' ] ) . ";" 
@@ -636,19 +636,19 @@  discard block
 block discarded – undo
636 636
      * @internal
637 637
      * @param       array   $aField
638 638
      */ 
639
-    protected function _getInputFieldValueFromLabel( $aField ) {    
639
+    protected function _getInputFieldValueFromLabel( $aField ) {
640 640
         
641 641
         // If the value key is explicitly set, use it. But the empty string will be ignored.
642
-        if ( isset( $aField[ 'value' ] ) && $aField[ 'value' ] != '' ) { 
642
+        if ( isset( $aField[ 'value' ] ) && $aField[ 'value' ] != '' ) {
643 643
             return $aField[ 'value' ]; 
644 644
         }
645 645
         
646
-        if ( isset( $aField[ 'label' ] ) ) { 
646
+        if ( isset( $aField[ 'label' ] ) ) {
647 647
             return $aField[ 'label' ]; 
648 648
         }
649 649
         
650 650
         // If the default value is set,
651
-        if ( isset( $aField[ 'default' ] ) ) { 
651
+        if ( isset( $aField[ 'default' ] ) ) {
652 652
             return $aField[ 'default' ]; 
653 653
         }
654 654
         
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_Base.php 1 patch
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -337,14 +337,14 @@  discard block
 block discarded – undo
337 337
         wp_enqueue_script( 'thickbox' );
338 338
         wp_enqueue_style( 'thickbox' );
339 339
     
340
-        if ( function_exists( 'wp_enqueue_media' ) ) {     
340
+        if ( function_exists( 'wp_enqueue_media' ) ) {
341 341
             // If the WordPress version is 3.5 or above,
342 342
             new AdminPageFramework_Form_View___Script_MediaUploader( $this->oMsg );
343 343
         } else {
344 344
             wp_enqueue_script( 'media-upload' );    
345 345
         }
346 346
 
347
-        if ( in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php', ) ) ) {     
347
+        if ( in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php', ) ) ) {
348 348
             add_filter( 'gettext', array( $this, '_replyToReplaceThickBoxText' ) , 1, 2 );     
349 349
         }
350 350
         
@@ -363,13 +363,13 @@  discard block
 block discarded – undo
363 363
         public function _replyToReplaceThickBoxText( $sTranslated, $sText ) {
364 364
 
365 365
             // Replace the button label in the media thick box.
366
-            if ( ! in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php' ) ) ) { 
366
+            if ( ! in_array( $this->getPageNow(), array( 'media-upload.php', 'async-upload.php' ) ) ) {
367 367
                 return $sTranslated; 
368 368
             }
369
-            if ( $sText !== 'Insert into Post' ) { 
369
+            if ( $sText !== 'Insert into Post' ) {
370 370
                 return $sTranslated; 
371 371
             }
372
-            if ( $this->getQueryValueInURLByKey( wp_get_referer(), 'referrer' ) !== 'admin_page_framework' ) { 
372
+            if ( $this->getQueryValueInURLByKey( wp_get_referer(), 'referrer' ) !== 'admin_page_framework' ) {
373 373
                 return $sTranslated; 
374 374
             }
375 375
             
Please login to merge, or discard this patch.