Completed
Branch master (acc4ae)
by
unknown
03:44
created
form/_view/script/AdminPageFramework_Form_View___Script_SortableSection.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -105,7 +105,7 @@
 block discarded – undo
105 105
         new self( $oMsg ); 
106 106
         
107 107
         // $aSettings              = $this->getAsArray( $aSettings );        
108
-        $_sScript       = <<<JAVASCRIPTS
108
+        $_sScript = <<<JAVASCRIPTS
109 109
 jQuery( document ).ready( function() {    
110 110
     jQuery( '#{$sContainerTagID}' ).enableAdminPageFrameworkSortableSections( '{$sContainerTagID}' ); 
111 111
 });            
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -94,10 +94,10 @@
 block discarded – undo
94 94
      */
95 95
     static public function getEnabler( $sContainerTagID, $aSettings, $oMsg ) {
96 96
         
97
-        if ( empty( $aSettings ) ) { 
97
+        if ( empty( $aSettings ) ) {
98 98
             return ''; 
99 99
         }
100
-        if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForSortableSections ) ) { 
100
+        if ( in_array( $sContainerTagID, self::$_aSetContainerIDsForSortableSections ) ) {
101 101
             return ''; 
102 102
         }
103 103
         self::$_aSetContainerIDsForSortableSections[ $sContainerTagID ] = $sContainerTagID;        
Please login to merge, or discard this patch.
form/_view/script/AdminPageFramework_Form_View___Script_MediaUploader.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      */
28 28
     public function construct() {
29 29
         
30
-        if ( ! function_exists( 'wp_enqueue_media' ) ) {
30
+        if ( !function_exists( 'wp_enqueue_media' ) ) {
31 31
             return;
32 32
         }
33 33
         wp_enqueue_script( 'jquery' );    
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         $_oMsg      = $_aParams[ 0 ];                
66 66
         
67 67
         // means the WordPress version is 3.4.x or below
68
-        if ( ! function_exists( 'wp_enqueue_media' ) ) { 
68
+        if ( !function_exists( 'wp_enqueue_media' ) ) { 
69 69
             return ""; 
70 70
         } 
71 71
 
Please login to merge, or discard this patch.
generator/field/AdminPageFramework_Form_View___Generate_FieldInputID.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
      * @return      string       The generated string value.
50 50
      */
51 51
     public function get() {
52
-        return $this->_getFiltered( $this->_getBaseFieldTagID() . '__' . $this->isIndex );
52
+        return $this->_getFiltered( $this->_getBaseFieldTagID().'__'.$this->isIndex );
53 53
     }
54 54
            
55 55
 }
Please login to merge, or discard this patch.
generator/field/AdminPageFramework_Form_View___Generate_FieldTagID.php 2 patches
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.
Spacing   +4 added lines, -4 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
@@ -50,17 +50,17 @@  discard block
 block discarded – undo
50 50
             
51 51
             // 3.8.0+
52 52
             if ( $this->aArguments[ '_parent_tag_id' ] ) {
53
-                return $this->aArguments[ '_parent_tag_id' ] . '_' . $this->aArguments[ 'field_id' ];
53
+                return $this->aArguments[ '_parent_tag_id' ].'_'.$this->aArguments[ 'field_id' ];
54 54
             }
55 55
         
56 56
             $_sSectionIndex = isset( $this->aArguments[ '_section_index' ] )
57
-                ? '__' . $this->aArguments[ '_section_index' ] 
57
+                ? '__'.$this->aArguments[ '_section_index' ] 
58 58
                 : '';
59 59
             $_sSectionPart = implode( '_', $this->aArguments[ '_section_path_array' ] );
60 60
             $_sFieldPart   = implode( '_', $this->aArguments[ '_field_path_array' ] );
61 61
 
62 62
             return $this->_isSectionSet()
63
-                ? $_sSectionPart . $_sSectionIndex . '_' . $_sFieldPart
63
+                ? $_sSectionPart.$_sSectionIndex.'_'.$_sFieldPart
64 64
                 : $_sFieldPart;
65 65
             
66 66
         }
Please login to merge, or discard this patch.
generator/field/AdminPageFramework_Form_View___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.
field/AdminPageFramework_Form_View___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.
generator/section/AdminPageFramework_Form_View___Generate_SectionName.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -25,26 +25,26 @@
 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
     }
31 31
         
32 32
         /**
33 33
          * @return      string
34 34
          */
35
-        protected function _getSectionName( $isIndex=null ) {
35
+        protected function _getSectionName( $isIndex = null ) {
36 36
 
37 37
             $this->aArguments = $this->aArguments + array(
38 38
                 'section_id' => null,
39 39
                 '_index'     => null,
40 40
             );
41
-            if( isset( $isIndex ) ) {
41
+            if ( isset( $isIndex ) ) {
42 42
                 $this->aArguments[ '_index' ] = $isIndex;
43 43
             }
44 44
             
45 45
             $_aNameParts = $this->aArguments[ '_section_path_array' ];
46 46
             if ( isset( $this->aArguments[ 'section_id' ], $this->aArguments[ '_index' ] ) ) {
47
-                $_aNameParts[] = $this->aArguments[ '_index' ];
47
+                $_aNameParts[ ] = $this->aArguments[ '_index' ];
48 48
             }
49 49
             $_sResult = $this->_getInputNameConstructed( $_aNameParts );
50 50
             return $_sResult;
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/_common/form/notice/AdminPageFramework_Form___SubmitNotice.php 2 patches
Spacing   +9 added lines, -9 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
         private function _getTransientKey() {
43
-            return 'apf_ntc_' . get_current_user_id();
43
+            return 'apf_ntc_'.get_current_user_id();
44 44
         }
45 45
     
46 46
     /**
@@ -52,14 +52,14 @@  discard block
 block discarded – undo
52 52
      * @param       string      $sType If empty, the method will check if a message exists in all types. Otherwise, it checks the existence of a message of the specified type.
53 53
      * @return      boolean     True if a setting notice is set; otherwise, false.
54 54
      */
55
-    public function hasNotice( $sType='' ) {
55
+    public function hasNotice( $sType = '' ) {
56 56
                 
57
-        if ( ! $sType ) {
57
+        if ( !$sType ) {
58 58
             return ( boolean ) count( self::$_aNotices );
59 59
         }
60 60
         
61 61
         // Check if there is a message of the type.
62
-        foreach( self::$_aNotices as $_aNotice ) {
62
+        foreach ( self::$_aNotices as $_aNotice ) {
63 63
             $_sClassAttribute = $this->getElement( 
64 64
                 $_aNotice, 
65 65
                 array( 
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
      * @param        boolean     $bOverride      (optional) If true, only one message will be shown in the next page load. false: do not override when there is a message of the same id. true: override the previous one.
99 99
      * @return       void
100 100
      */
101
-    public function set( $sMessage, $sType='error', $asAttributes=array(), $bOverride=true ) {
101
+    public function set( $sMessage, $sType = 'error', $asAttributes = array(), $bOverride = true ) {
102 102
         
103 103
         // If the array is empty, schedule the task of saving the array at shutdown.
104 104
         if ( empty( self::$_aNotices ) ) {
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
         $_sID = md5( trim( $sMessage ) );
109 109
             
110 110
         // If the override is false and a message is already set, do not add.
111
-        if ( ! $bOverride && isset( self::$_aNotices[ $_sID ] ) ) {
111
+        if ( !$bOverride && isset( self::$_aNotices[ $_sID ] ) ) {
112 112
             return;
113 113
         }
114 114
 
@@ -118,14 +118,14 @@  discard block
 block discarded – undo
118 118
         }
119 119
         
120 120
         $_aAttributes = $this->getAsArray( $asAttributes );
121
-        if ( is_string( $asAttributes ) && ! empty( $asAttributes ) ) {
121
+        if ( is_string( $asAttributes ) && !empty( $asAttributes ) ) {
122 122
             $_aAttributes[ 'id' ] = $asAttributes;
123 123
         }
124 124
         self::$_aNotices[ $_sID ] = array(
125 125
             'sMessage'      => $sMessage,
126 126
             'aAttributes'   => $_aAttributes + array(
127 127
                 'class'     => $sType,
128
-                'id'        => 'form_submit_notice_' . $_sID,
128
+                'id'        => 'form_submit_notice_'.$_sID,
129 129
             ),
130 130
         );
131 131
 
@@ -166,7 +166,7 @@  discard block
 block discarded – undo
166 166
         }
167 167
             
168 168
         // By setting false to the 'settings-notice' key, it's possible to disable the notifications set with the framework.
169
-        if ( isset( $_GET[ 'settings-notice' ] ) && ! $_GET[ 'settings-notice' ] ) { 
169
+        if ( isset( $_GET[ 'settings-notice' ] ) && !$_GET[ 'settings-notice' ] ) { 
170 170
             return; 
171 171
         }
172 172
             
Please login to merge, or discard this patch.
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
          * @return      void
142 142
          */
143 143
         public function _replyToSaveNotices() {
144
-            if ( empty( self::$_aNotices ) ) { 
144
+            if ( empty( self::$_aNotices ) ) {
145 145
                 return; 
146 146
             }            
147 147
             $_bResult = $this->setTransient( 
@@ -161,12 +161,12 @@  discard block
 block discarded – undo
161 161
         
162 162
         // Retrieve the notifications set in a transient.
163 163
         $_aNotices = $this->_getNotices();
164
-        if ( false === $_aNotices ) { 
164
+        if ( false === $_aNotices ) {
165 165
             return; 
166 166
         }
167 167
             
168 168
         // By setting false to the 'settings-notice' key, it's possible to disable the notifications set with the framework.
169
-        if ( isset( $_GET[ 'settings-notice' ] ) && ! $_GET[ 'settings-notice' ] ) { 
169
+        if ( isset( $_GET[ 'settings-notice' ] ) && ! $_GET[ 'settings-notice' ] ) {
170 170
             return; 
171 171
         }
172 172
             
Please login to merge, or discard this patch.
development/factory/_common/utility/AdminPageFramework_ErrorReporting.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
 
39 39
     private $_iLevel;
40 40
 
41
-    public function __construct( $iLevel=null ) {
41
+    public function __construct( $iLevel = null ) {
42 42
         $this->_iLevel = null !== $iLevel 
43 43
             ? $iLeevl
44 44
             : error_reporting();
@@ -57,11 +57,11 @@  discard block
 block discarded – undo
57 57
         private function _getIncluded() {
58 58
             
59 59
             $_aIncluded = array();
60
-            foreach( $this->_aLevels as $_iLevel => $iLevelText ) {
60
+            foreach ( $this->_aLevels as $_iLevel => $iLevelText ) {
61 61
                 
62 62
                 // This is where we check if a level was used or not
63 63
                 if ( $this->_iLevel & $_iLevel ) {
64
-                    $_aIncluded[] = $_iLevel;
64
+                    $_aIncluded[ ] = $_iLevel;
65 65
                 }
66 66
                 
67 67
             }
@@ -75,16 +75,16 @@  discard block
 block discarded – undo
75 75
             $_aValues       = array();
76 76
             
77 77
             if ( count( $aIncluded ) > $_iAll / 2 ) {
78
-                $_aValues[] = 'E_ALL';
79
-                foreach( $this->_aLevels as $_iLevel => $iLevelText ) {
80
-                    if ( ! in_array( $_iLevel, $aIncluded ) ) {
81
-                        $_aValues[] = $iLevelText;
78
+                $_aValues[ ] = 'E_ALL';
79
+                foreach ( $this->_aLevels as $_iLevel => $iLevelText ) {
80
+                    if ( !in_array( $_iLevel, $aIncluded ) ) {
81
+                        $_aValues[ ] = $iLevelText;
82 82
                     }
83 83
                 }
84 84
                 return implode( ' & ~', $_aValues );
85 85
             } 
86
-            foreach( $aIncluded as $_iLevel ) {
87
-                $_aValues[] = $this->_aLevels[ $_iLevel ];
86
+            foreach ( $aIncluded as $_iLevel ) {
87
+                $_aValues[ ] = $this->_aLevels[ $_iLevel ];
88 88
             }
89 89
             return implode( ' | ', $_aValues );
90 90
 
Please login to merge, or discard this patch.