Completed
Branch master (478c6b)
by
unknown
02:10
created
development/factory/user_meta/AdminPageFramework_UserMeta_Router.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
 
27 27
         parent::__construct( $oProp );
28 28
 
29
-        if ( ! $this->oProp->bIsAdmin ) {
29
+        if ( !$this->oProp->bIsAdmin ) {
30 30
             return;
31 31
         }
32 32
 
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         );
39 39
 
40 40
         // 3.7.10+
41
-        add_action( 'set_up_' . $this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) );
41
+        add_action( 'set_up_'.$this->oProp->sClassName, array( $this, '_replyToSetUpHooks' ) );
42 42
 
43 43
     }
44 44
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
      */
53 53
     protected function _isInThePage() {
54 54
 
55
-        if ( ! $this->oProp->bIsAdmin ) {
55
+        if ( !$this->oProp->bIsAdmin ) {
56 56
             return false;
57 57
         }
58 58
 
@@ -94,14 +94,14 @@  discard block
 block discarded – undo
94 94
     public function _replyToSetUpHooks( $oFactory ) {
95 95
 
96 96
         // Hooks to display fields.
97
-        add_action( 'show_user_profile', array( $this, '_replyToPrintFields' ) );   // profile.php
98
-        add_action( 'edit_user_profile', array( $this, '_replyToPrintFields' ) );   // profile.php
99
-        add_action( 'user_new_form', array( $this, '_replyToPrintFields' ) );       // user-new.php
97
+        add_action( 'show_user_profile', array( $this, '_replyToPrintFields' ) ); // profile.php
98
+        add_action( 'edit_user_profile', array( $this, '_replyToPrintFields' ) ); // profile.php
99
+        add_action( 'user_new_form', array( $this, '_replyToPrintFields' ) ); // user-new.php
100 100
 
101 101
         // Hooks to save field values.
102
-        add_action( 'personal_options_update', array( $this, '_replyToSaveFieldValues' ) );     // profile.php
103
-        add_action( 'edit_user_profile_update', array( $this, '_replyToSaveFieldValues' ) );    // profile.php
104
-        add_action('user_register', array( $this, '_replyToSaveFieldValues' ) );                // user-new.php
102
+        add_action( 'personal_options_update', array( $this, '_replyToSaveFieldValues' ) ); // profile.php
103
+        add_action( 'edit_user_profile_update', array( $this, '_replyToSaveFieldValues' ) ); // profile.php
104
+        add_action( 'user_register', array( $this, '_replyToSaveFieldValues' ) ); // user-new.php
105 105
 
106 106
         $this->_load(); // 3.8.14+
107 107
 
Please login to merge, or discard this patch.
development/factory/user_meta/AdminPageFramework_UserMeta_View.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,17 +44,17 @@
 block discarded – undo
44 44
         $_aOutput = array();
45 45
 
46 46
         // Get the field outputs
47
-        $_aOutput[] = $this->oForm->get();
47
+        $_aOutput[ ] = $this->oForm->get();
48 48
 
49 49
         // Filter the output
50 50
         $_sOutput = $this->oUtil->addAndApplyFilters(
51 51
             $this,
52
-            'content_' . $this->oProp->sClassName,
52
+            'content_'.$this->oProp->sClassName,
53 53
             $this->content( implode( PHP_EOL, $_aOutput ) )
54 54
         );
55 55
 
56 56
         // Do action
57
-        $this->oUtil->addAndDoActions( $this, 'do_' . $this->oProp->sClassName, $this );
57
+        $this->oUtil->addAndDoActions( $this, 'do_'.$this->oProp->sClassName, $this );
58 58
 
59 59
         // Output
60 60
         echo $_sOutput;
Please login to merge, or discard this patch.
factory/_common/utility/base_utility/AdminPageFramework_Utility_Array.php 1 patch
Spacing   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -24,10 +24,10 @@  discard block
 block discarded – undo
24 24
      * @return      numeric
25 25
      * @since       3.7.4
26 26
      */
27
-    static public function getUnusedNumericIndex( $aArray, $nIndex, $iOffset=1 ) {
27
+    static public function getUnusedNumericIndex( $aArray, $nIndex, $iOffset = 1 ) {
28 28
 
29 29
         // Check if the order value is not used.
30
-        if ( ! isset( $aArray[ $nIndex ] ) ) {
30
+        if ( !isset( $aArray[ $nIndex ] ) ) {
31 31
             return $nIndex;
32 32
         }
33 33
 
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @return      boolean
43 43
      */
44 44
     static public function isAssociative( array $aArray ) {
45
-        return array_keys ( $aArray ) !== range( 0, count( $aArray ) - 1 );
45
+        return array_keys( $aArray ) !== range( 0, count( $aArray ) - 1 );
46 46
     }
47 47
 
48 48
     /**
@@ -75,9 +75,9 @@  discard block
 block discarded – undo
75 75
      */
76 76
     static public function getReadableListOfArray( array $aArray ) {
77 77
 
78
-        $_aOutput   = array();
79
-        foreach( $aArray as $_sKey => $_vValue ) {
80
-            $_aOutput[] = self::getReadableArrayContents( $_sKey, $_vValue, 32 ) . PHP_EOL;
78
+        $_aOutput = array();
79
+        foreach ( $aArray as $_sKey => $_vValue ) {
80
+            $_aOutput[ ] = self::getReadableArrayContents( $_sKey, $_vValue, 32 ).PHP_EOL;
81 81
         }
82 82
         return implode( PHP_EOL, $_aOutput );
83 83
 
@@ -88,37 +88,37 @@  discard block
 block discarded – undo
88 88
      * @since       3.3.0
89 89
      * @return      string      The generated human readable array contents.
90 90
      */
91
-    static public function getReadableArrayContents( $sKey, $vValue, $sLabelCharLengths=16, $iOffset=0 ) {
91
+    static public function getReadableArrayContents( $sKey, $vValue, $sLabelCharLengths = 16, $iOffset = 0 ) {
92 92
 
93 93
         $_aOutput   = array();
94
-        $_aOutput[] = ( $iOffset
95
-                ? str_pad( ' ', $iOffset  )
94
+        $_aOutput[ ] = ( $iOffset
95
+                ? str_pad( ' ', $iOffset )
96 96
                 : ''
97 97
             )
98 98
             . ( $sKey
99
-                ? '[' . $sKey . ']'
99
+                ? '['.$sKey.']'
100 100
                 : ''
101 101
             );
102 102
 
103
-        if ( ! in_array( gettype( $vValue ), array( 'array', 'object' ) ) ) {
104
-            $_aOutput[] = $vValue;
103
+        if ( !in_array( gettype( $vValue ), array( 'array', 'object' ) ) ) {
104
+            $_aOutput[ ] = $vValue;
105 105
             return implode( PHP_EOL, $_aOutput );
106 106
         }
107 107
 
108 108
         foreach ( $vValue as $_sTitle => $_asDescription ) {
109
-            if ( ! in_array( gettype( $_asDescription ), array( 'array', 'object' ) ) ) {
110
-                $_aOutput[] = str_pad( ' ', $iOffset )
109
+            if ( !in_array( gettype( $_asDescription ), array( 'array', 'object' ) ) ) {
110
+                $_aOutput[ ] = str_pad( ' ', $iOffset )
111 111
                     . $_sTitle
112 112
                     . str_pad( ':', $sLabelCharLengths - self::getStringLength( $_sTitle ) )
113 113
                     . $_asDescription;
114 114
                 continue;
115 115
             }
116
-            $_aOutput[] = str_pad( ' ', $iOffset )
116
+            $_aOutput[ ] = str_pad( ' ', $iOffset )
117 117
                 . $_sTitle
118 118
                 . ": {"
119 119
                 . self::getReadableArrayContents( '', $_asDescription, 16, $iOffset + 4 )
120 120
                 . PHP_EOL
121
-                . str_pad( ' ', $iOffset ) . "}";
121
+                . str_pad( ' ', $iOffset )."}";
122 122
         }
123 123
         return implode( PHP_EOL, $_aOutput );
124 124
 
@@ -131,11 +131,11 @@  discard block
 block discarded – undo
131 131
      */
132 132
     static public function getReadableListOfArrayAsHTML( array $aArray ) {
133 133
 
134
-        $_aOutput   = array();
135
-        foreach( $aArray as $_sKey => $_vValue ) {
136
-            $_aOutput[] = "<ul class='array-contents'>"
134
+        $_aOutput = array();
135
+        foreach ( $aArray as $_sKey => $_vValue ) {
136
+            $_aOutput[ ] = "<ul class='array-contents'>"
137 137
                     .  self::getReadableArrayContentsHTML( $_sKey, $_vValue )
138
-                . "</ul>" . PHP_EOL;
138
+                . "</ul>".PHP_EOL;
139 139
         }
140 140
         return implode( PHP_EOL, $_aOutput );
141 141
 
@@ -152,25 +152,25 @@  discard block
 block discarded – undo
152 152
             $_aOutput   = array();
153 153
 
154 154
             // Title - array key
155
-            $_aOutput[] = $sKey
156
-                ? "<h3 class='array-key'>" . $sKey . "</h3>"
155
+            $_aOutput[ ] = $sKey
156
+                ? "<h3 class='array-key'>".$sKey."</h3>"
157 157
                 : "";
158 158
 
159 159
             // If it does not have a nested array or object,
160
-            if ( ! in_array( gettype( $vValue ), array( 'array', 'object' ) ) ) {
161
-                $_aOutput[] = "<div class='array-value'>"
160
+            if ( !in_array( gettype( $vValue ), array( 'array', 'object' ) ) ) {
161
+                $_aOutput[ ] = "<div class='array-value'>"
162 162
                         . html_entity_decode( nl2br( str_replace( ' ', '&nbsp;', $vValue ) ), ENT_QUOTES )
163 163
                     . "</div>";
164
-                return "<li>" . implode( PHP_EOL, $_aOutput ) . "</li>";
164
+                return "<li>".implode( PHP_EOL, $_aOutput )."</li>";
165 165
             }
166 166
 
167 167
             // Now it is a nested item.
168 168
             foreach ( $vValue as $_sKey => $_vValue ) {
169
-                $_aOutput[] =  "<ul class='array-contents'>"
169
+                $_aOutput[ ] = "<ul class='array-contents'>"
170 170
                         . self::getReadableArrayContentsHTML( $_sKey, $_vValue )
171 171
                     . "</ul>";
172 172
             }
173
-            return implode( PHP_EOL, $_aOutput ) ;
173
+            return implode( PHP_EOL, $_aOutput );
174 174
 
175 175
         }
176 176
 
Please login to merge, or discard this patch.
_common/utility/base_utility/AdminPageFramework_Utility_Deprecated.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
      * @deprecated  3.8.0       Use `getLengthSanitized()` instead.
31 31
      * @since       3.8.8       Moved from `AdminPageFramework_Utility_String`.
32 32
      */
33
-    static public function sanitizeLength( $sLength, $sUnit='px' ) {
33
+    static public function sanitizeLength( $sLength, $sUnit = 'px' ) {
34 34
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getLengthSanitized()' );
35 35
         return AdminPageFramework_Utility_String::getLengthSanitized( $sLength, $sUnit );
36 36
     }
@@ -49,12 +49,12 @@  discard block
 block discarded – undo
49 49
      * @since       3.5.3           Moved from `AdminPageFramework_Utility_Array`.
50 50
      * @deprecated  3.5.3           Use `getElement()`.
51 51
      */
52
-    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault='', $bBlankToDefault=false ) {
52
+    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault = '', $bBlankToDefault = false ) {
53 53
 
54 54
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
55 55
 
56 56
         // If $vSubject is null,
57
-        if ( ! isset( $vSubject ) ) {
57
+        if ( !isset( $vSubject ) ) {
58 58
             return $sDefault;
59 59
         }
60 60
 
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
         }
65 65
 
66 66
         // If $vSubject is not an array,
67
-        if ( ! is_array( $vSubject ) ) {
67
+        if ( !is_array( $vSubject ) ) {
68 68
             return ( string ) $vSubject;
69 69
         } // consider it as string.
70 70
 
@@ -115,11 +115,11 @@  discard block
 block discarded – undo
115 115
      * @since       3.5.3       Moved from `AdminPageFramework_FieldType_Base`.
116 116
      * @deprecated  3.5.3       Use the `getElement()` method.
117 117
      */
118
-    protected function getFieldElementByKey( $asElement, $sKey, $asDefault='' ) {
118
+    protected function getFieldElementByKey( $asElement, $sKey, $asDefault = '' ) {
119 119
 
120 120
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
121 121
 
122
-        if ( ! is_array( $asElement ) || ! isset( $sKey ) ) {
122
+        if ( !is_array( $asElement ) || !isset( $sKey ) ) {
123 123
             return $asElement;
124 124
         }
125 125
 
@@ -142,7 +142,7 @@  discard block
 block discarded – undo
142 142
 
143 143
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__ );
144 144
 
145
-        foreach( $aArray as &$vElem ) {
145
+        foreach ( $aArray as &$vElem ) {
146 146
 
147 147
             if ( $vElem ) { break; }
148 148
             unset( $vElem );
@@ -176,15 +176,15 @@  discard block
 block discarded – undo
176 176
 
177 177
         AdminPageFramework_Utility::showDeprecationNotice( __METHOD__, 'AdminPageFramework_WPUtility::getAttributes()' );
178 178
 
179
-        $_sQuoteCharactor   ="'";
179
+        $_sQuoteCharactor   = "'";
180 180
         $_aOutput           = array();
181
-        foreach( $aAttributes as $sAttribute => $sProperty ) {
181
+        foreach ( $aAttributes as $sAttribute => $sProperty ) {
182 182
 
183 183
             // Must be resolved as a string.
184 184
             if ( in_array( gettype( $sProperty ), array( 'array', 'object' ) ) ) {
185 185
                 continue;
186 186
             }
187
-            $_aOutput[] = "{$sAttribute}={$_sQuoteCharactor}{$sProperty}{$_sQuoteCharactor}";
187
+            $_aOutput[ ] = "{$sAttribute}={$_sQuoteCharactor}{$sProperty}{$_sQuoteCharactor}";
188 188
 
189 189
         }
190 190
         return implode( ' ', $_aOutput );
Please login to merge, or discard this patch.
_common/utility/base_utility/AdminPageFramework_Utility_ArrayGetter.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
      * @since       3.7.0       Moved from `AdminPageFramework_Utility_Array`.
26 26
      */
27 27
     static public function getFirstElement( array $aArray ) {
28
-        foreach( $aArray as $_mElement ) {
28
+        foreach ( $aArray as $_mElement ) {
29 29
             return $_mElement;
30 30
         }
31 31
     }
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @param       string|array                $asToDefault    When the returning value matches oen of the set values here, the value(s) will be discarded and the default value will be applied.
45 45
      * @return      mixed       The set value or the default value.
46 46
      */
47
-    static public function getElement( $aSubject, $aisKey, $mDefault=null, $asToDefault=array( null ) ) {
47
+    static public function getElement( $aSubject, $aisKey, $mDefault = null, $asToDefault = array( null ) ) {
48 48
 
49 49
         $_aToDefault = is_null( $asToDefault )
50 50
             ? array( null )
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
      * @since       3.7.0       Moved from `AdminPageFramework_Utility_Array`.
72 72
      * @return      array       The cast retrieved element value.
73 73
      */
74
-    static public function getElementAsArray( $aSubject, $aisKey, $mDefault=null, $asToDefault=array( null ) ) {
74
+    static public function getElementAsArray( $aSubject, $aisKey, $mDefault = null, $asToDefault = array( null ) ) {
75 75
         return self::getAsArray(
76 76
             self::getElement( $aSubject, $aisKey, $mDefault, $asToDefault ),
77 77
             true       // preserve an empty value
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
         foreach ( $aParse as $_isKey => $_v ) {
92 92
 
93
-            if ( ! is_numeric( $_isKey ) ) {
93
+            if ( !is_numeric( $_isKey ) ) {
94 94
                 unset( $aParse[ $_isKey ] );
95 95
                 continue;
96 96
             }
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
             // Convert string numeric value to integer or float.
99 99
             $_isKey = $_isKey + 0;
100 100
 
101
-            if ( ! is_int( $_isKey ) ) {
101
+            if ( !is_int( $_isKey ) ) {
102 102
                 unset( $aParse[ $_isKey ] );
103 103
             }
104 104
 
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
     static public function getNonIntegerKeyElements( array $aParse ) {
118 118
 
119 119
         foreach ( $aParse as $_isKey => $_v ) {
120
-            if ( is_numeric( $_isKey ) && is_int( $_isKey+ 0 ) ) {
120
+            if ( is_numeric( $_isKey ) && is_int( $_isKey + 0 ) ) {
121 121
                 unset( $aParse[ $_isKey ] );
122 122
             }
123 123
         }
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @since       3.7.0       Moved from `AdminPageFramework_Utility_Array`.
151 151
      * @return      mixed
152 152
      */
153
-    static public function getArrayValueByArrayKeys( $aArray, $aKeys, $vDefault=null ) {
153
+    static public function getArrayValueByArrayKeys( $aArray, $aKeys, $vDefault = null ) {
154 154
 
155 155
         $_sKey = array_shift( $aKeys );
156 156
 
@@ -189,7 +189,7 @@  discard block
 block discarded – undo
189 189
      * @param       boolean     bPreserveEmpty      If `false` is given, a value that yields `false` such as `false`, an empty sttring `''`, or `0` will not create an element such as `array( false )`. It will be just `array()`.
190 190
      * @return      array       The cast array.
191 191
      */
192
-    static public function getAsArray( $mValue, $bPreserveEmpty=false ) {
192
+    static public function getAsArray( $mValue, $bPreserveEmpty = false ) {
193 193
 
194 194
         if ( is_array( $mValue ) ) {
195 195
             return $mValue;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -157,7 +157,8 @@
 block discarded – undo
157 157
         // array_key_exists( $_sKey, $aArray ) caused warnings in some occasions
158 158
         if ( isset( $aArray[ $_sKey ] ) ) {
159 159
 
160
-            if ( empty( $aKeys ) ) { // no more keys
160
+            if ( empty( $aKeys ) ) {
161
+// no more keys
161 162
                 return $aArray[ $_sKey ];
162 163
             }
163 164
 
Please login to merge, or discard this patch.
factory/_common/utility/base_utility/AdminPageFramework_Utility_File.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -27,10 +27,10 @@  discard block
 block discarded – undo
27 27
      * @param       integer             $iLines         The number of lines to read.
28 28
      * @return      string
29 29
      */
30
-    static public function getFileTailContents( $asPath=array(), $iLines=1 ) {
30
+    static public function getFileTailContents( $asPath = array(), $iLines = 1 ) {
31 31
 
32
-        $_sPath  = self::_getFirstItem( $asPath );
33
-        if ( ! @is_readable( $_sPath ) ) {
32
+        $_sPath = self::_getFirstItem( $asPath );
33
+        if ( !@is_readable( $_sPath ) ) {
34 34
             return '';
35 35
         }
36 36
         return trim(
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
      * @since       3.4.6
61 61
      * @return      string
62 62
      */
63
-    static public function sanitizeFileName( $sFileName, $sReplacement='_' ) {
63
+    static public function sanitizeFileName( $sFileName, $sReplacement = '_' ) {
64 64
 
65 65
         // Remove anything which isn't a word, white space, number
66 66
         // or any of the following characters -_~,;:[]().
Please login to merge, or discard this patch.
_common/utility/base_utility/AdminPageFramework_Utility_HTMLAttribute.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -36,11 +36,11 @@  discard block
 block discarded – undo
36 36
      */
37 37
     static public function getInlineCSS( array $aCSSRules ) {
38 38
         $_aOutput = array();
39
-        foreach( $aCSSRules as $_sProperty => $_sValue ) {
39
+        foreach ( $aCSSRules as $_sProperty => $_sValue ) {
40 40
             if ( is_null( $_sValue ) ) {
41 41
                 continue;
42 42
             }
43
-            $_aOutput[] = $_sProperty . ': ' . $_sValue;
43
+            $_aOutput[ ] = $_sProperty.': '.$_sValue;
44 44
         }
45 45
         return implode( '; ', $_aOutput );
46 46
     }
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     static public function getStyleAttribute( $asInlineCSSes ) {
72 72
 
73 73
         $_aCSSRules = array();
74
-        foreach( array_reverse( func_get_args() ) as $_asCSSRules ) {
74
+        foreach ( array_reverse( func_get_args() ) as $_asCSSRules ) {
75 75
 
76 76
             // For array, store in the container.
77 77
             if ( is_array( $_asCSSRules ) ) {
@@ -81,9 +81,9 @@  discard block
 block discarded – undo
81 81
 
82 82
             // At this point, it is a string. Break them down to array elements.
83 83
             $__aCSSRules = explode( ';', $_asCSSRules );
84
-            foreach( $__aCSSRules as $_sPair ) {
84
+            foreach ( $__aCSSRules as $_sPair ) {
85 85
                 $_aCSSPair = explode( ':', $_sPair );
86
-                if ( ! isset( $_aCSSPair[ 0 ], $_aCSSPair[ 1 ] ) ) {
86
+                if ( !isset( $_aCSSPair[ 0 ], $_aCSSPair[ 1 ] ) ) {
87 87
                     continue;
88 88
                 }
89 89
                 $_aCSSRules[ $_aCSSPair[ 0 ] ] = $_aCSSPair[ 1 ];
@@ -120,9 +120,9 @@  discard block
 block discarded – undo
120 120
      */
121 121
     static public function getClassAttribute( /* $asClassSelectors1, $asClassSelectors12, ... */ ) {
122 122
 
123
-        $_aClasses  = array();
124
-        foreach( func_get_args() as $_asClasses ) {
125
-            if ( ! in_array( gettype( $_asClasses ), array( 'array', 'string' ) ) ) {
123
+        $_aClasses = array();
124
+        foreach ( func_get_args() as $_asClasses ) {
125
+            if ( !in_array( gettype( $_asClasses ), array( 'array', 'string' ) ) ) {
126 126
                 continue;
127 127
             }
128 128
             $_aClasses = array_merge(
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
                     : explode( ' ', $_asClasses )
133 133
             );
134 134
         }
135
-        $_aClasses  = array_unique( array_filter( $_aClasses ) );
135
+        $_aClasses = array_unique( array_filter( $_aClasses ) );
136 136
 
137 137
         // @todo examine if it is okay to remove the trim() function below.
138 138
         return trim( implode( ' ', $_aClasses ) );
@@ -148,7 +148,7 @@  discard block
 block discarded – undo
148 148
         static public function generateClassAttribute( /* $asClassSelectors1, $asClassSelectors12 ... */ ) {
149 149
             $_aParams = func_get_args();
150 150
             return call_user_func_array(
151
-                array( __CLASS__ , 'getClassAttribute' ),
151
+                array( __CLASS__, 'getClassAttribute' ),
152 152
                 $_aParams
153 153
             );
154 154
         }
@@ -165,7 +165,7 @@  discard block
 block discarded – undo
165 165
     static public function getDataAttributeArray( array $aArray ) {
166 166
 
167 167
         $_aNewArray = array();
168
-        foreach( $aArray as $sKey => $v ) {
168
+        foreach ( $aArray as $sKey => $v ) {
169 169
 
170 170
             if ( in_array( gettype( $v ), array( 'object', 'NULL' ) ) ) {
171 171
                 continue;
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
@@ -27,9 +27,9 @@  discard block
 block discarded – undo
27 27
      * @return      void
28 28
      * @since       3.8.8
29 29
      */
30
-    static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='Admin Page Framework' ) {
30
+    static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = 'Admin Page Framework' ) {
31 31
         trigger_error(
32
-            $sProgramName . ': ' . sprintf(
32
+            $sProgramName.': '.sprintf(
33 33
                 $sAlternative
34 34
                     ? '<code>%1$s</code> has been deprecated. Use <code>%2$s</code> instead.'
35 35
                     : '<code>%1$s</code> has been deprecated.',
@@ -51,8 +51,8 @@  discard block
 block discarded – undo
51 51
      * @param       callable            $oCallable
52 52
      * @param       string|array        $asParameters       Parameters to pass to the callback function.
53 53
      */
54
-    public function callBack( $oCallable, $asParameters=array() ) {
55
-        $_aParameters   = self::getAsArray(
54
+    public function callBack( $oCallable, $asParameters = array() ) {
55
+        $_aParameters = self::getAsArray(
56 56
             $asParameters,
57 57
             true // preserve empty
58 58
         );
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
      * @since       3.6.3
89 89
      * @return      string      The captured output buffer.
90 90
      */
91
-    static public function getOutputBuffer( $oCallable, array $aParameters=array() ) {
91
+    static public function getOutputBuffer( $oCallable, array $aParameters = array() ) {
92 92
 
93 93
         ob_start();
94 94
         echo call_user_func_array( $oCallable, $aParameters );
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
         $_iCount     = count( get_object_vars( $oInstance ) );
111 111
         $_sClassName = get_class( $oInstance );
112
-        return '(object) ' . $_sClassName . ': ' . $_iCount . ' properties.';
112
+        return '(object) '.$_sClassName.': '.$_iCount.' properties.';
113 113
 
114 114
     }
115 115
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
      * @param       boolean|integer|double|string|array|object|resource|NULL        $mTrue      The value to return when the first parameter value yields false.
127 127
      * @return      mixed
128 128
      */
129
-    static public function getAOrB( $mValue, $mTrue=null, $mFalse=null ) {
129
+    static public function getAOrB( $mValue, $mTrue = null, $mFalse = null ) {
130 130
         return $mValue ? $mTrue : $mFalse;
131 131
     }
132 132
 
Please login to merge, or discard this patch.
_common/utility/base_utility/AdminPageFramework_Utility_VariableType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
      * @since       3.6.3
48 48
      * @return      boolean     If the passed value is not null, true; otherwise, false.
49 49
      */
50
-    static public function isNotNull( $mValue=null ) {
51
-        return ! is_null( $mValue );
50
+    static public function isNotNull( $mValue = null ) {
51
+        return !is_null( $mValue );
52 52
     }
53 53
 
54 54
     /**
Please login to merge, or discard this patch.