Completed
Branch master (a559c4)
by
unknown
04:34
created
_abstract/view/generator/field/AdminPageFramework_Generate_FieldName.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -25,8 +25,8 @@  discard block
 block discarded – undo
25 25
         return $this->_getFiltered( $this->_getFieldName() );
26 26
     }
27 27
         
28
-    public function getModel()     {
29
-        return $this->get() . '[' . $this->sIndexMark . ']';
28
+    public function getModel() {
29
+        return $this->get().'['.$this->sIndexMark.']';
30 30
     }
31 31
         
32 32
         /**
@@ -39,7 +39,7 @@  discard block
 block discarded – undo
39 39
                 : "";
40 40
             return $this->getAOrB(
41 41
                 $this->_isSectionSet(),
42
-                $this->aArguments[ 'section_id' ] . $_sSectionIndex . "[" . $this->aArguments[ 'field_id' ] . "]",
42
+                $this->aArguments[ 'section_id' ].$_sSectionIndex."[".$this->aArguments[ 'field_id' ]."]",
43 43
                 $this->aArguments[ 'field_id' ]
44 44
             );
45 45
             
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         return $this->_getFiltered( $this->_getSectionName() );
26 26
     }
27 27
         
28
-    public function getModel()     {
28
+    public function getModel() {
29 29
         return $this->get() . '[' . $this->sIndexMark . ']';
30 30
     }
31 31
         
Please login to merge, or discard this patch.
_abstract/view/generator/field/AdminPageFramework_Generate_FieldTagID.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
      * @return      string
41 41
      */
42 42
     public function getModel() {
43
-        return $this->get() . '__' . $this->sIndexMark;
43
+        return $this->get().'__'.$this->sIndexMark;
44 44
     }
45 45
         /**
46 46
          * @since       3.6.0
@@ -51,11 +51,11 @@  discard block
 block discarded – undo
51 51
 // @todo if a parent field object exists, use the parent object value and append the dimension of this field level.
52 52
 
53 53
             $_sSectionIndex = isset( $this->aArguments[ '_section_index' ] )
54
-                ? '__' . $this->aArguments[ '_section_index' ] 
54
+                ? '__'.$this->aArguments[ '_section_index' ] 
55 55
                 : '';
56 56
                 
57 57
             return $this->_isSectionSet()
58
-                ? $this->aArguments[ 'section_id' ] . $_sSectionIndex . '_' . $this->aArguments[ 'field_id' ]
58
+                ? $this->aArguments[ 'section_id' ].$_sSectionIndex.'_'.$this->aArguments[ 'field_id' ]
59 59
                 : $this->aArguments[ 'field_id' ];            
60 60
             
61 61
         }
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
      * @since       3.6.0       Moved from `AdminPageFramework_FormField`.
31 31
      * @return      string      The generated string value.
32 32
      */
33
-    public function get() {            
33
+    public function get() {
34 34
         return $this->_getFiltered( $this->_getBaseFieldTagID() );
35 35
     }
36 36
     
Please login to merge, or discard this patch.
view/generator/field/AdminPageFramework_Generate_FlatFieldInputName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
             '',
39 39
             "|{$this->sIndex}"
40 40
         );                
41
-        return $this->_getFiltered( $this->_getFlatFieldName() . $_sIndex );
41
+        return $this->_getFiltered( $this->_getFlatFieldName().$_sIndex );
42 42
         
43 43
     }
44 44
  
Please login to merge, or discard this patch.
view/generator/field/AdminPageFramework_Generate_FlatFieldName.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
      * @return      string      The generated field name model.
32 32
      */
33 33
     public function getModel() {
34
-        return $this->get() . '|' . $this->sIndexMark;
34
+        return $this->get().'|'.$this->sIndexMark;
35 35
     }
36 36
         
37 37
         /**
Please login to merge, or discard this patch.
view/generator/section/AdminPageFramework_Generate_SectionName.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,27 +25,27 @@
 block discarded – undo
25 25
         return $this->_getFiltered( $this->_getSectionName() );
26 26
     }
27 27
         
28
-    public function getModel()     {
29
-        return $this->get() . '[' . $this->sIndexMark . ']';
28
+    public function getModel() {
29
+        return $this->get().'['.$this->sIndexMark.']';
30 30
         // return $this->_getSectionName( $this->sIndexMark );
31 31
     }
32 32
         
33 33
         /**
34 34
          * @return      string
35 35
          */
36
-        protected function _getSectionName( $isIndex=null ) {
36
+        protected function _getSectionName( $isIndex = null ) {
37 37
 // @todo if a parent field object exists, use the parent object value and append the dimension of this field level.
38 38
             $this->aArguments = $this->aArguments + array(
39 39
                 'section_id' => null,
40 40
                 '_index'     => null,
41 41
             );
42
-            if( isset( $isIndex ) ) {
42
+            if ( isset( $isIndex ) ) {
43 43
                 $this->aArguments[ '_index' ] = $isIndex;
44 44
             }
45 45
             $_sSectionIndex = isset( $this->aArguments[ 'section_id' ], $this->aArguments[ '_index' ] )
46 46
                 ? "[{$this->aArguments[ '_index' ]}]" 
47 47
                 : "";
48
-            return $this->aArguments[ 'section_id' ] . $_sSectionIndex;            
48
+            return $this->aArguments[ 'section_id' ].$_sSectionIndex;            
49 49
         }
50 50
 
51 51
 }
52 52
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
         return $this->_getFiltered( $this->_getSectionName() );
26 26
     }
27 27
         
28
-    public function getModel()     {
28
+    public function getModel() {
29 29
         return $this->get() . '[' . $this->sIndexMark . ']';
30 30
     }
31 31
         
Please login to merge, or discard this patch.
factory/_abstract/view/script/AdminPageFramework_Script_Base.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
      * 
37 37
      * @since       3.3.0
38 38
      */
39
-    public function __construct( $oMsg=null ) {
39
+    public function __construct( $oMsg = null ) {
40 40
         
41 41
         $_sClassName = get_class( $this );
42 42
         if ( in_array( $_sClassName, self::$_aEnqueued ) ) {
@@ -74,10 +74,10 @@  discard block
 block discarded – undo
74 74
      */
75 75
     public function _replyToPrintScript() {
76 76
         $_sScript = $this->getScript( $this->oMsg );
77
-        if ( ! $_sScript ) {
77
+        if ( !$_sScript ) {
78 78
             return;
79 79
         }
80
-        echo "<script type='text/javascript' class='" . strtolower( get_class( $this ) ) . "'>"
80
+        echo "<script type='text/javascript' class='".strtolower( get_class( $this ) )."'>"
81 81
                 . $_sScript
82 82
             . "</script>";
83 83
     }
Please login to merge, or discard this patch.
_abstract/view/script/AdminPageFramework_Script_CollapsibleSection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
         
43 43
         $_aParams               = func_get_args() + array( null );
44 44
         $_oMsg                  = $_aParams[ 0 ];        
45
-        $_sToggleAllButtonHTML  = '"' . self::_getToggleAllButtonHTML( $_oMsg ) . '"';                
45
+        $_sToggleAllButtonHTML  = '"'.self::_getToggleAllButtonHTML( $_oMsg ).'"';                
46 46
            
47 47
         return <<<JAVASCRIPTS
48 48
 ( function( $ ) {
@@ -192,18 +192,18 @@  discard block
 block discarded – undo
192 192
             $_sLabelToggleAll           = $oMsg->get( 'toggle_all' );
193 193
             $_sLabelToggleAllSections   = $oMsg->get( 'toggle_all_collapsible_sections' );
194 194
             $_sDashIconSort             = self::getAOrB( 
195
-                version_compare( $GLOBALS['wp_version'], '3.8', '<' ),  // evaluate
195
+                version_compare( $GLOBALS[ 'wp_version' ], '3.8', '<' ), // evaluate
196 196
                 '', // true
197 197
                 'dashicons dashicons-sort' // false
198 198
             );         
199
-            $_sText                     = self::getAOrB( 
199
+            $_sText = self::getAOrB( 
200 200
                 $_sDashIconSort, // evaluate
201 201
                 '', // true
202 202
                 $_sLabelToggleAll // false
203 203
             );
204 204
             return "<div class='admin-page-framework-collapsible-toggle-all-button-container'>"
205
-                    . "<span class='admin-page-framework-collapsible-toggle-all-button button " . $_sDashIconSort . "'"
206
-                        . " title='" . esc_attr( $_sLabelToggleAllSections ) 
205
+                    . "<span class='admin-page-framework-collapsible-toggle-all-button button ".$_sDashIconSort."'"
206
+                        . " title='".esc_attr( $_sLabelToggleAllSections ) 
207 207
                     . "'>"
208 208
                         . $_sText
209 209
                     . "</span>"
Please login to merge, or discard this patch.
factory/_abstract/view/script/AdminPageFramework_Script_MediaUploader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $_oMsg      = $_aParams[ 0 ];                
58 58
         
59 59
         // means the WordPress version is 3.4.x or below
60
-        if ( ! function_exists( 'wp_enqueue_media' ) ) { 
60
+        if ( !function_exists( 'wp_enqueue_media' ) ) { 
61 61
             return ""; 
62 62
         } 
63 63
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
         $_oMsg      = $_aParams[ 0 ];                
58 58
         
59 59
         // means the WordPress version is 3.4.x or below
60
-        if ( ! function_exists( 'wp_enqueue_media' ) ) { 
60
+        if ( ! function_exists( 'wp_enqueue_media' ) ) {
61 61
             return ""; 
62 62
         } 
63 63
 
Please login to merge, or discard this patch.
_abstract/view/script/AdminPageFramework_Script_RepeatableSection.php 3 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -399,12 +399,12 @@
 block discarded – undo
399 399
     
400 400
     
401 401
         /**
402
-     * Stores the set container IDs to prevent multiple calls.
403
-     * 
404
-     * Collapsible and tabbed sections can call this method multiple times with the same container ID.
405
-     * 
406
-     * @since       3.4.0
407
-     */
402
+         * Stores the set container IDs to prevent multiple calls.
403
+         * 
404
+         * Collapsible and tabbed sections can call this method multiple times with the same container ID.
405
+         * 
406
+         * @since       3.4.0
407
+         */
408 408
     static private $_aSetContainerIDsForRepeatableSections = array();
409 409
     /**
410 410
      * Returns the enabler script of repeatable sections.
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -436,7 +436,7 @@  discard block
 block discarded – undo
436 436
                 . "<a class='repeatable-section-remove-button button-secondary repeatable-section-button button button-large' href='#' title='{$_sRemove}' {$_sVisibility} data-id='{$sContainerTagID}'>-</a>"
437 437
                 . "<a class='repeatable-section-add-button button-secondary repeatable-section-button button button-large' href='#' title='{$_sAdd}' data-id='{$sContainerTagID}'>+</a>"
438 438
             . "</div>";
439
-        $_sButtonsHTML  = '"' . $_sButtons . '"';
439
+        $_sButtonsHTML  = '"'.$_sButtons.'"';
440 440
         $_aJSArray      = json_encode( $aSettings );
441 441
         $_sScript       = <<<JAVASCRIPTS
442 442
 jQuery( document ).ready( function() {
@@ -462,7 +462,7 @@  discard block
 block discarded – undo
462 462
     jQuery( '#{$sContainerTagID}' ).updateAdminPageFrameworkRepeatableSections( $_aJSArray ); 
463 463
 });            
464 464
 JAVASCRIPTS;
465
-        return "<script type='text/javascript' class='admin-page-framework-section-repeatable-script'>" . $_sScript . "</script>";
465
+        return "<script type='text/javascript' class='admin-page-framework-section-repeatable-script'>".$_sScript."</script>";
466 466
             
467 467
     }
468 468
     
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -415,10 +415,10 @@
 block discarded – undo
415 415
      */
416 416
     static public function getEnabler( $sContainerTagID, $iSectionCount, $aSettings, $oMsg ) {
417 417
         
418
-        if ( empty( $aSettings ) ) { 
418
+        if ( empty( $aSettings ) ) {
419 419
             return ''; 
420 420
         }
421
-        if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForRepeatableSections ) ) { 
421
+        if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForRepeatableSections ) ) {
422 422
             return ''; 
423 423
         }
424 424
         self::$_aSetContainerIDsForRepeatableSections[ $sContainerTagID ] = $sContainerTagID;
Please login to merge, or discard this patch.