Completed
Pull Request — dev (#292)
by
unknown
02:41 queued 22s
created
_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.
_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.
factory/_common/utility/wp_utility/AdminPageFramework_WPUtility_File.php 2 patches
Spacing   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
      * @since   3.6.2       Supported a text content to be passed to the first parameter.
28 28
      * @access  public
29 29
      */
30
-    static public function getScriptData( $sPathOrContent, $sType='plugin', $aDefaultHeaderKeys=array() ) {
30
+    static public function getScriptData( $sPathOrContent, $sType = 'plugin', $aDefaultHeaderKeys = array() ) {
31 31
 
32 32
         $_aHeaderKeys = $aDefaultHeaderKeys + array(
33 33
             // storing array key =>    the comment entry header label
@@ -65,19 +65,19 @@  discard block
 block discarded – undo
65 65
 
66 66
         switch ( trim( $sType ) ) {
67 67
             case 'theme':
68
-                $aData['sName'] = $aData['sThemeName'];
69
-                $aData['sURI'] = $aData['sThemeURI'];
68
+                $aData[ 'sName' ] = $aData[ 'sThemeName' ];
69
+                $aData[ 'sURI' ] = $aData[ 'sThemeURI' ];
70 70
                 break;
71 71
             case 'library':
72
-                $aData['sName'] = $aData['sLibraryName'];
73
-                $aData['sURI'] = $aData['sLibraryURI'];
72
+                $aData[ 'sName' ] = $aData[ 'sLibraryName' ];
73
+                $aData[ 'sURI' ] = $aData[ 'sLibraryURI' ];
74 74
                 break;
75 75
             case 'script':
76
-                $aData['sName'] = $aData['sScriptName'];
76
+                $aData[ 'sName' ] = $aData[ 'sScriptName' ];
77 77
                 break;
78 78
             case 'plugin':
79
-                $aData['sName'] = $aData['sPluginName'];
80
-                $aData['sURI'] = $aData['sPluginURI'];
79
+                $aData[ 'sName' ] = $aData[ 'sPluginName' ];
80
+                $aData[ 'sURI' ] = $aData[ 'sPluginURI' ];
81 81
                 break;
82 82
             default:
83 83
                 break;
@@ -92,22 +92,22 @@  discard block
 block discarded – undo
92 92
      * @since       3.6.2
93 93
      * @return      array       The script data
94 94
      */
95
-    static public function getScriptDataFromContents( $sContent, $sType='plugin', $aDefaultHeaderKeys=array() ) {
95
+    static public function getScriptDataFromContents( $sContent, $sType = 'plugin', $aDefaultHeaderKeys = array() ) {
96 96
 
97 97
         // Make sure we catch CR-only line endings.
98 98
         $sContent = str_replace( "\r", "\n", $sContent );
99 99
 
100
-        $_aHeaders      = $aDefaultHeaderKeys;
100
+        $_aHeaders = $aDefaultHeaderKeys;
101 101
         if ( $sType ) {
102 102
             $_aExtraHeaders = apply_filters( "extra_{$sType}_headers", array() );
103
-            if ( ! empty( $_aExtraHeaders ) ) {
103
+            if ( !empty( $_aExtraHeaders ) ) {
104 104
                 $_aExtraHeaders = array_combine( $_aExtraHeaders, $_aExtraHeaders ); // keys equal values
105 105
                 $_aHeaders      = array_merge( $_aExtraHeaders, ( array ) $aDefaultHeaderKeys );
106 106
             }
107 107
         }
108 108
 
109 109
         foreach ( $_aHeaders as $_sHeaderKey => $_sRegex ) {
110
-            $_bFound = preg_match( '/^[ \t\/*#@]*' . preg_quote( $_sRegex, '/' ) . ':(.*)$/mi', $sContent, $_aMatch );
110
+            $_bFound = preg_match( '/^[ \t\/*#@]*'.preg_quote( $_sRegex, '/' ).':(.*)$/mi', $sContent, $_aMatch );
111 111
             $_aHeaders[ $_sHeaderKey ] = $_bFound && $_aMatch[ 1 ]
112 112
                 ? _cleanup_header_comment( $_aMatch[ 1 ] )
113 113
                 : '';
@@ -124,14 +124,14 @@  discard block
 block discarded – undo
124 124
      * @since       3.4.2
125 125
      * @see         download_url() in file.php in core.
126 126
      */
127
-    static public function download( $sURL, $iTimeOut=300 ) {
127
+    static public function download( $sURL, $iTimeOut = 300 ) {
128 128
 
129 129
         if ( false === filter_var( $sURL, FILTER_VALIDATE_URL ) ) {
130 130
             return false;
131 131
         }
132 132
 
133 133
         $_sTmpFileName = self::setTempPath( self::getBaseNameOfURL( $sURL ) );
134
-        if ( ! $_sTmpFileName ) {
134
+        if ( !$_sTmpFileName ) {
135 135
             return false;
136 136
         }
137 137
 
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
             return false;
150 150
         }
151 151
 
152
-        if ( 200 != wp_remote_retrieve_response_code( $_aoResponse ) ){
152
+        if ( 200 != wp_remote_retrieve_response_code( $_aoResponse ) ) {
153 153
             unlink( $_sTmpFileName );
154 154
             return false;
155 155
         }
@@ -174,16 +174,16 @@  discard block
 block discarded – undo
174 174
      * @since       3.4.2
175 175
      * @return      string      The set file path.
176 176
      */
177
-    static public function setTempPath( $sFilePath='' ) {
177
+    static public function setTempPath( $sFilePath = '' ) {
178 178
 
179 179
         $_sDir = get_temp_dir();
180 180
 
181 181
         $sFilePath = basename( $sFilePath );
182 182
         if ( empty( $sFilePath ) ) {
183
-            $sFilePath = time() . '.tmp';
183
+            $sFilePath = time().'.tmp';
184 184
         }
185 185
 
186
-        $sFilePath = $_sDir . wp_unique_filename( $_sDir, $sFilePath );
186
+        $sFilePath = $_sDir.wp_unique_filename( $_sDir, $sFilePath );
187 187
         touch( $sFilePath );
188 188
         return $sFilePath;
189 189
 
Please login to merge, or discard this patch.
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -149,7 +149,7 @@
 block discarded – undo
149 149
             return false;
150 150
         }
151 151
 
152
-        if ( 200 != wp_remote_retrieve_response_code( $_aoResponse ) ){
152
+        if ( 200 != wp_remote_retrieve_response_code( $_aoResponse ) ) {
153 153
             unlink( $_sTmpFileName );
154 154
             return false;
155 155
         }
Please login to merge, or discard this patch.
development/factory/_common/utility/AdminPageFramework_FrameworkUtility.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @since       3.8.8
23 23
      * @return      void
24 24
      */
25
-    static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='' ) {
25
+    static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = '' ) {
26 26
         $sProgramName = $sProgramName ? $sProgramName : self::getFrameworkName();
27 27
         parent::showDeprecationNotice( $sDeprecated, $sAlternative, $sProgramName );
28 28
     }
@@ -41,8 +41,8 @@  discard block
 block discarded – undo
41 41
             return;
42 42
         }
43 43
 
44
-        foreach( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) {
45
-            if ( ! isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) {
44
+        foreach ( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) {
45
+            if ( !isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) {
46 46
                 continue;
47 47
             }
48 48
             ksort( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] );
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
      * @param       boolean     $bTrimDevVer           Whether the `.dev` suffix should be removed or not.
68 68
      * @return      string
69 69
      */
70
-    static public function getFrameworkVersion( $bTrimDevVer=false ) {
70
+    static public function getFrameworkVersion( $bTrimDevVer = false ) {
71 71
         $_sVersion = AdminPageFramework_Registry::getVersion();
72 72
         return $bTrimDevVer
73 73
             ? self::getSuffixRemoved( $_sVersion, '.dev' )
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
      * @return      string
96 96
      */
97 97
     static public function getFrameworkNameVersion() {
98
-        return self::getFrameworkName() . ' ' . self::getFrameworkVersion();
98
+        return self::getFrameworkName().' '.self::getFrameworkVersion();
99 99
     }
100 100
 
101 101
 }
Please login to merge, or discard this patch.
development/factory/_common/form/AdminPageFramework_Form_View.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
             '' // default value
40 40
         );
41 41
 
42
-        if ( ! $this->canUserView( $this->sCapability ) ) {
42
+        if ( !$this->canUserView( $this->sCapability ) ) {
43 43
             return '';
44 44
         }
45 45
 
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_file.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
     /**
37 37
      * Defines the field type slugs used for this field type.
38 38
      */
39
-    public $aFieldTypeSlugs = array( 'file', );
39
+    public $aFieldTypeSlugs = array( 'file',);
40 40
 
41 41
     /**
42 42
      * Defines the default key-values of this field type.
@@ -96,15 +96,15 @@  discard block
 block discarded – undo
96 96
                 array(
97 97
                     'type'  => 'hidden',
98 98
                     'value' => '',
99
-                    'name'  => $aField[ 'attributes' ][ 'name' ] . '[_dummy_value]',
99
+                    'name'  => $aField[ 'attributes' ][ 'name' ].'[_dummy_value]',
100 100
                 )
101 101
             )
102 102
             . $this->getHTMLTag(
103 103
                 'input',
104 104
                 array(
105 105
                     'type'  => 'hidden',
106
-                    'name'  => '__unset_' . $aField[ '_structure_type' ] . '[' . $aField[ '_input_name_flat' ] . '|_dummy_value' . ']',
107
-                    'value' => $aField[ '_input_name_flat' ] . '|_dummy_value',
106
+                    'name'  => '__unset_'.$aField[ '_structure_type' ].'['.$aField[ '_input_name_flat' ].'|_dummy_value'.']',
107
+                    'value' => $aField[ '_input_name_flat' ].'|_dummy_value',
108 108
                     'class' => 'unset-element-names element-address',
109 109
                 )
110 110
             );
Please login to merge, or discard this patch.
factory/_common/form/field_type/AdminPageFramework_FieldType_posttype.php 1 patch
Spacing   +13 added lines, -13 removed lines patch added patch discarded remove patch
@@ -80,7 +80,7 @@  discard block
 block discarded – undo
80 80
     /**
81 81
      * Defines the field type slugs used for this field type.
82 82
      */
83
-    public $aFieldTypeSlugs = array( 'posttype', );
83
+    public $aFieldTypeSlugs = array( 'posttype',);
84 84
 
85 85
     /**
86 86
      * Defines the default key-values of this field type.
@@ -88,20 +88,20 @@  discard block
 block discarded – undo
88 88
      * @remark $_aDefaultKeys holds shared default key-values defined in the base class.
89 89
      */
90 90
     protected $aDefaultKeys = array(
91
-        'slugs_to_remove'       => null,    // the default array will be assigned in the rendering method.
91
+        'slugs_to_remove'       => null, // the default array will be assigned in the rendering method.
92 92
         /**
93 93
          * Accepts query arguments. For the argument specification, see the arg parameter of get_post_types() function.
94 94
          * See: http://codex.wordpress.org/Function_Reference/get_post_types#Parameters
95 95
          */
96
-        'query'                 => array(),  // 3.2.1+
97
-        'operator'              => 'and',    // 3.2.1+ either 'and' or 'or'
96
+        'query'                 => array(), // 3.2.1+
97
+        'operator'              => 'and', // 3.2.1+ either 'and' or 'or'
98 98
         'attributes'            => array(
99 99
             'size'      => 30,
100 100
             'maxlength' => 400,
101 101
         ),
102
-        'select_all_button'     => true,     // 3.3.0+   to change the label, set the label here
103
-        'select_none_button'    => true,     // 3.3.0+   to change the label, set the label here
104
-        'save_unchecked'        => true,     // (optional, boolean) 3.8.8+   Whether to store the values of unchecked items.
102
+        'select_all_button'     => true, // 3.3.0+   to change the label, set the label here
103
+        'select_none_button'    => true, // 3.3.0+   to change the label, set the label here
104
+        'save_unchecked'        => true, // (optional, boolean) 3.8.8+   Whether to store the values of unchecked items.
105 105
     );
106 106
     protected $aDefaultRemovingPostTypeSlugs = array(
107 107
         'revision',
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
      */
119 119
     protected function getStyles() {
120 120
         $_sParentStyles = parent::getStyles();
121
-        return $_sParentStyles . <<<CSSRULES
121
+        return $_sParentStyles.<<<CSSRULES
122 122
 /* Posttype Field Type */
123 123
 .admin-page-framework-field input[type='checkbox'] {
124 124
     margin-right: 0.5em;
@@ -145,11 +145,11 @@  discard block
 block discarded – undo
145 145
      */
146 146
     protected function getField( $aField ) {
147 147
 
148
-        $this->_sCheckboxClassSelector = '';    // disable the checkbox class selector.
148
+        $this->_sCheckboxClassSelector = ''; // disable the checkbox class selector.
149 149
         $aField[ 'label' ] = $this->_getPostTypeArrayForChecklist(
150 150
             isset( $aField[ 'slugs_to_remove' ] )
151 151
                 ? $this->getAsArray( $aField[ 'slugs_to_remove' ] )
152
-                : $this->aDefaultRemovingPostTypeSlugs,    // slugs to remove
152
+                : $this->aDefaultRemovingPostTypeSlugs, // slugs to remove
153 153
             $aField[ 'query' ],
154 154
             $aField[ 'operator' ]
155 155
         );
@@ -170,11 +170,11 @@  discard block
 block discarded – undo
170 170
          * @return  array   The array holding the elements of installed post types' labels and their slugs except the specified expluding post types.
171 171
          * @internal
172 172
          */
173
-        private function _getPostTypeArrayForChecklist( $aSlugsToRemove, $asQueryArgs=array(), $sOperator='and' ) {
173
+        private function _getPostTypeArrayForChecklist( $aSlugsToRemove, $asQueryArgs = array(), $sOperator = 'and' ) {
174 174
 
175 175
             $_aPostTypes = array();
176
-            foreach( get_post_types( $asQueryArgs, 'objects' ) as $_oPostType ) {
177
-                if (  isset( $_oPostType->name, $_oPostType->label ) ) {
176
+            foreach ( get_post_types( $asQueryArgs, 'objects' ) as $_oPostType ) {
177
+                if ( isset( $_oPostType->name, $_oPostType->label ) ) {
178 178
                     $_aPostTypes[ $_oPostType->name ] = $_oPostType->label;
179 179
                 }
180 180
             }
Please login to merge, or discard this patch.