Completed
Pull Request — dev (#237)
by
unknown
10:59
created
factory/_common/utility/base_utility/AdminPageFramework_Utility.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -44,7 +44,7 @@  discard block
 block discarded – undo
44 44
      * @since       3.6.3
45 45
      * @return      string      The captured output buffer.
46 46
      */
47
-    static public function getOutputBuffer( $oCallable, array $aParameters=array() ) {
47
+    static public function getOutputBuffer( $oCallable, array $aParameters = array() ) {
48 48
         
49 49
         ob_start(); 
50 50
         echo call_user_func_array( $oCallable, $aParameters );
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         
66 66
         $_iCount     = count( get_object_vars( $oInstance ) );
67 67
         $_sClassName = get_class( $oInstance );
68
-        return '(object) ' . $_sClassName . ': ' . $_iCount . ' properties.';
68
+        return '(object) '.$_sClassName.': '.$_iCount.' properties.';
69 69
         
70 70
     }
71 71
                    
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
      * @param       boolean|integer|double|string|array|object|resource|NULL        $mTrue      The value to return when the first parameter value yields false.
83 83
      * @return      mixed
84 84
      */
85
-    static public function getAOrB( $mValue, $mTrue=null, $mFalse=null ) {
85
+    static public function getAOrB( $mValue, $mTrue = null, $mFalse = null ) {
86 86
         return $mValue ? $mTrue : $mFalse;
87 87
     }    
88 88
     
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
@@ -28,10 +28,10 @@  discard block
 block discarded – undo
28 28
      * @param       integer             $iLines         The number of lines to read.
29 29
      * @return      string
30 30
      */
31
-    static public function getFileTailContents( $asPath=array(), $iLines=1 ) {
31
+    static public function getFileTailContents( $asPath = array(), $iLines = 1 ) {
32 32
         
33
-        $_sPath  = self::_getFirstItem( $asPath );
34
-        if ( ! @is_readable( $_sPath ) ) {
33
+        $_sPath = self::_getFirstItem( $asPath );
34
+        if ( !@is_readable( $_sPath ) ) {
35 35
             return '';
36 36
         }
37 37
         return trim( 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
      * @since       3.4.6
62 62
      * @return      string
63 63
      */
64
-    static public function sanitizeFileName( $sFileName, $sReplacement='_' ) {
64
+    static public function sanitizeFileName( $sFileName, $sReplacement = '_' ) {
65 65
         
66 66
         // Remove anything which isn't a word, white space, number
67 67
         // or any of the following characters -_~,;:[]().        
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
@@ -48,8 +48,8 @@
 block discarded – undo
48 48
      * @since       3.6.3
49 49
      * @return      boolean     If the passed value is not null, true; otherwise, false.
50 50
      */ 
51
-    static public function isNotNull( $mValue=null ) {
52
-        return ! is_null( $mValue );
51
+    static public function isNotNull( $mValue = null ) {
52
+        return !is_null( $mValue );
53 53
     }    
54 54
  
55 55
     /**
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
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
      * @since       DVVER       Moved from `AdminPageFramework_Utility_Array`.
27 27
      */
28 28
     static public function getFirstElement( array $aArray ) {
29
-        foreach( $aArray as $_mElement ) {
29
+        foreach ( $aArray as $_mElement ) {
30 30
             return $_mElement;
31 31
         }
32 32
     }
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
      * @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.
46 46
      * @return      mixed       The set value or the default value.
47 47
      */
48
-    static public function getElement( $aSubject, $aisKey, $mDefault=null, $asToDefault=array( null ) ) {
48
+    static public function getElement( $aSubject, $aisKey, $mDefault = null, $asToDefault = array( null ) ) {
49 49
         
50 50
         $_aToDefault = is_null( $asToDefault )
51 51
             ? array( null )
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
      * @since       DVVER       Moved from `AdminPageFramework_Utility_Array`.
73 73
      * @return      array       The cast retrieved element value.
74 74
      */
75
-    static public function getElementAsArray( $aSubject, $aisKey, $mDefault=null, $asToDefault=array( null ) ) {
75
+    static public function getElementAsArray( $aSubject, $aisKey, $mDefault = null, $asToDefault = array( null ) ) {
76 76
         return self::getAsArray( 
77 77
             self::getElement( $aSubject, $aisKey, $mDefault, $asToDefault ),
78 78
             true       // preserve an empty value
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
         
92 92
         foreach ( $aParse as $_isKey => $_v ) {
93 93
             
94
-            if ( ! is_numeric( $_isKey ) ) {
94
+            if ( !is_numeric( $_isKey ) ) {
95 95
                 unset( $aParse[ $_isKey ] );
96 96
                 continue;
97 97
             }
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
             // Convert string numeric value to integer or float.
100 100
             $_isKey = $_isKey + 0; 
101 101
             
102
-            if ( ! is_int( $_isKey ) ) {
102
+            if ( !is_int( $_isKey ) ) {
103 103
                 unset( $aParse[ $_isKey ] );
104 104
             }
105 105
                 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
     static public function getNonIntegerKeyElements( array $aParse ) {
119 119
         
120 120
         foreach ( $aParse as $_isKey => $_v ) {
121
-            if ( is_numeric( $_isKey ) && is_int( $_isKey+ 0 ) ) {
121
+            if ( is_numeric( $_isKey ) && is_int( $_isKey + 0 ) ) {
122 122
                 unset( $aParse[ $_isKey ] );     
123 123
             }
124 124
         }
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @since       DVVER       Moved from `AdminPageFramework_Utility_Array`.
152 152
      * @return      mixed
153 153
      */
154
-    static public function getArrayValueByArrayKeys( $aArray, $aKeys, $vDefault=null ) {
154
+    static public function getArrayValueByArrayKeys( $aArray, $aKeys, $vDefault = null ) {
155 155
         
156 156
         $_sKey = array_shift( $aKeys );
157 157
  
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
      * @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()`.
191 191
      * @return      array       The cast array.
192 192
      */
193
-    static public function getAsArray( $mValue, $bPreserveEmpty=false ) {
193
+    static public function getAsArray( $mValue, $bPreserveEmpty = false ) {
194 194
         
195 195
         if ( is_array( $mValue ) ) {
196 196
             return $mValue; 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -158,7 +158,8 @@
 block discarded – undo
158 158
         // array_key_exists( $_sKey, $aArray ) caused warnings in some occasions
159 159
         if ( isset( $aArray[ $_sKey ] ) ) {
160 160
             
161
-            if ( empty( $aKeys ) ) { // no more keys 
161
+            if ( empty( $aKeys ) ) {
162
+// no more keys 
162 163
                 return $aArray[ $_sKey ];
163 164
             }
164 165
             
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_PageMetaBox_Router.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -44,11 +44,11 @@
 block discarded – undo
44 44
      */
45 45
     public function _isInThePage() {
46 46
         
47
-        if ( ! $this->oProp->bIsAdmin ) {
47
+        if ( !$this->oProp->bIsAdmin ) {
48 48
             return false;     
49 49
         }
50 50
                     
51
-        if ( ! isset( $_GET[ 'page' ] ) ) {
51
+        if ( !isset( $_GET[ 'page' ] ) ) {
52 52
             return false;
53 53
         }
54 54
         
Please login to merge, or discard this patch.
taxonomy_field/_controller/AdminPageFramework_Resource_taxonomy_field.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -30,11 +30,11 @@  discard block
 block discarded – undo
30 30
      * @remark      the $_deprecated parameter is just to avoid the PHP strict standards warning.
31 31
      * @internal
32 32
      */
33
-    public function _enqueueStyles( $aSRCs, $aCustomArgs=array(), $_deprecated=null ) {
33
+    public function _enqueueStyles( $aSRCs, $aCustomArgs = array(), $_deprecated = null ) {
34 34
         
35 35
         $_aHandleIDs = array();
36
-        foreach( ( array ) $aSRCs as $_sSRC ) {
37
-            $_aHandleIDs[] = $this->_enqueueStyle( $_sSRC, $aCustomArgs );
36
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
37
+            $_aHandleIDs[ ] = $this->_enqueueStyle( $_sSRC, $aCustomArgs );
38 38
         }
39 39
         return $_aHandleIDs;
40 40
         
@@ -58,9 +58,9 @@  discard block
 block discarded – undo
58 58
      * @return      string      The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
59 59
      * @internal
60 60
      */    
61
-    public function _enqueueStyle( $sSRC, $aCustomArgs=array(), $_deprecated=null ) {
61
+    public function _enqueueStyle( $sSRC, $aCustomArgs = array(), $_deprecated = null ) {
62 62
         
63
-        $sSRC       = trim( $sSRC );
63
+        $sSRC = trim( $sSRC );
64 64
         if ( empty( $sSRC ) ) { 
65 65
             return ''; 
66 66
         }
@@ -77,13 +77,13 @@  discard block
 block discarded – undo
77 77
             array(     
78 78
                 'sSRC'      => $sSRC,
79 79
                 'sType'     => 'style',
80
-                'handle_id' => 'style_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedStyleIndex ),
80
+                'handle_id' => 'style_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedStyleIndex ),
81 81
             ),
82 82
             self::$_aStructure_EnqueuingResources
83 83
         );
84 84
         
85 85
         // Store the attributes in another container by url.
86
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['attributes'];
86
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'attributes' ];
87 87
         
88 88
         return $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ];
89 89
         
@@ -95,11 +95,11 @@  discard block
 block discarded – undo
95 95
      * @since       3.0.0
96 96
      * @remark      the $_deprecated parameter is just to avoid the PHP strict standards warning.
97 97
      */
98
-    public function _enqueueScripts( $aSRCs, $aCustomArgs=array(), $_deprecated=null ) {
98
+    public function _enqueueScripts( $aSRCs, $aCustomArgs = array(), $_deprecated = null ) {
99 99
         
100 100
         $_aHandleIDs = array();
101
-        foreach( ( array ) $aSRCs as $_sSRC ) {
102
-            $_aHandleIDs[] = $this->_enqueueScript( $_sSRC, $aCustomArgs );
101
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
102
+            $_aHandleIDs[ ] = $this->_enqueueScript( $_sSRC, $aCustomArgs );
103 103
         }
104 104
         return $_aHandleIDs;
105 105
         
@@ -124,9 +124,9 @@  discard block
 block discarded – undo
124 124
      * @return      string The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
125 125
      * @internal
126 126
      */
127
-    public function _enqueueScript( $sSRC, $aCustomArgs=array(), $_deprecated=null ) {
127
+    public function _enqueueScript( $sSRC, $aCustomArgs = array(), $_deprecated = null ) {
128 128
         
129
-        $sSRC       = trim( $sSRC );
129
+        $sSRC = trim( $sSRC );
130 130
         if ( empty( $sSRC ) ) { 
131 131
             return ''; 
132 132
         }
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
             array(     
144 144
                 'sSRC'      => $sSRC,
145 145
                 'sType'     => 'script',
146
-                'handle_id' => 'script_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedScriptIndex ),
146
+                'handle_id' => 'script_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedScriptIndex ),
147 147
             ),
148 148
             self::$_aStructure_EnqueuingResources
149 149
         );
150 150
         
151 151
         // Store the attributes in another container by url.
152
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['attributes'];
152
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'attributes' ];
153 153
         
154 154
         return $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ];
155 155
         
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      * @since       3.0.0
162 162
      * @internal
163 163
      */
164
-    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs=array() ) {
164
+    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs = array() ) {
165 165
         return $this->_enqueueStyle( $sSRC, $aCustomArgs );
166 166
     }
167 167
     /**
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
      * @since       3.0.0
171 171
      * @internal
172 172
      */    
173
-    public function _forceToEnqueueScript( $sSRC, $aCustomArgs=array() ) {
173
+    public function _forceToEnqueueScript( $sSRC, $aCustomArgs = array() ) {
174 174
         return $this->_enqueueScript( $sSRC, $aCustomArgs );
175 175
     }
176 176
     
Please login to merge, or discard this patch.
factory/widget/_controller/AdminPageFramework_Resource_widget.php 1 patch
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -29,11 +29,11 @@  discard block
 block discarded – undo
29 29
      * @since       3.2.0
30 30
      * @internal
31 31
      */
32
-    public function _enqueueStyles( $aSRCs, $aCustomArgs=array() ) {
32
+    public function _enqueueStyles( $aSRCs, $aCustomArgs = array() ) {
33 33
         
34 34
         $_aHandleIDs = array();
35
-        foreach( ( array ) $aSRCs as $_sSRC ) {
36
-            $_aHandleIDs[] = $this->_enqueueStyle( $_sSRC, $aCustomArgs );
35
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
36
+            $_aHandleIDs[ ] = $this->_enqueueStyle( $_sSRC, $aCustomArgs );
37 37
         }
38 38
         return $_aHandleIDs;
39 39
         
@@ -48,7 +48,7 @@  discard block
 block discarded – undo
48 48
      * @return      string      The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
49 49
      * @internal
50 50
      */    
51
-    public function _enqueueStyle( $sSRC, $aCustomArgs=array() ) {
51
+    public function _enqueueStyle( $sSRC, $aCustomArgs = array() ) {
52 52
         
53 53
         $sSRC = trim( $sSRC );
54 54
         if ( empty( $sSRC ) ) { 
@@ -67,13 +67,13 @@  discard block
 block discarded – undo
67 67
             array(     
68 68
                 'sSRC'          => $sSRC,
69 69
                 'sType'         => 'style',
70
-                'handle_id'     => 'style_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedStyleIndex ),
70
+                'handle_id'     => 'style_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedStyleIndex ),
71 71
             ),
72 72
             self::$_aStructure_EnqueuingResources
73 73
         );
74 74
         
75 75
         // Store the attributes in another container by url.
76
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ]['attributes'];
76
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'attributes' ];
77 77
         
78 78
         return $this->oProp->aEnqueuingStyles[ $_sSRCHash ][ 'handle_id' ];
79 79
         
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
      * @since       3.2.0
86 86
      * @internal
87 87
      */
88
-    public function _enqueueScripts( $aSRCs, $aCustomArgs=array() ) {
88
+    public function _enqueueScripts( $aSRCs, $aCustomArgs = array() ) {
89 89
         
90 90
         $_aHandleIDs = array();
91
-        foreach( ( array ) $aSRCs as $_sSRC ) {
92
-            $_aHandleIDs[] = $this->_enqueueScript( $_sSRC, $aCustomArgs );
91
+        foreach ( ( array ) $aSRCs as $_sSRC ) {
92
+            $_aHandleIDs[ ] = $this->_enqueueScript( $_sSRC, $aCustomArgs );
93 93
         }
94 94
         return $_aHandleIDs;
95 95
         
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
      * @return      string      The script handle ID. If the passed url is not a valid url string, an empty string will be returned.
105 105
      * @internal
106 106
      */
107
-    public function _enqueueScript( $sSRC, $aCustomArgs=array() ) {
107
+    public function _enqueueScript( $sSRC, $aCustomArgs = array() ) {
108 108
         
109 109
         $sSRC       = trim( $sSRC );
110 110
         if ( empty( $sSRC ) ) { return ''; }
@@ -119,13 +119,13 @@  discard block
 block discarded – undo
119 119
             array(     
120 120
                 'sSRC'      => $sSRC,
121 121
                 'sType'     => 'script',
122
-                'handle_id' => 'script_' . $this->oProp->sClassName . '_' .  ( ++$this->oProp->iEnqueuedScriptIndex ),
122
+                'handle_id' => 'script_'.$this->oProp->sClassName.'_'.( ++$this->oProp->iEnqueuedScriptIndex ),
123 123
             ),
124 124
             self::$_aStructure_EnqueuingResources
125 125
         );
126 126
 
127 127
         // Store the attributes in another container by url.
128
-        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['handle_id'] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ]['attributes'];
128
+        $this->oProp->aResourceAttributes[ $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ] ] = $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'attributes' ];
129 129
         
130 130
         return $this->oProp->aEnqueuingScripts[ $_sSRCHash ][ 'handle_id' ];
131 131
         
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
      * @since       3.2.0
140 140
      * @internal
141 141
      */
142
-    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs=array() ) {
142
+    public function _forceToEnqueueStyle( $sSRC, $aCustomArgs = array() ) {
143 143
         return $this->_enqueueStyle( $sSRC, $aCustomArgs );
144 144
     }
145 145
     /**
@@ -149,7 +149,7 @@  discard block
 block discarded – undo
149 149
      * @since       3.2.0
150 150
      * @internal
151 151
      */    
152
-    public function _forceToEnqueueScript( $sSRC, $aCustomArgs=array() ) {
152
+    public function _forceToEnqueueScript( $sSRC, $aCustomArgs = array() ) {
153 153
         return $this->_enqueueScript( $sSRC, $aCustomArgs );
154 154
     }
155 155
     
Please login to merge, or discard this patch.
factory/post_type/_controller/AdminPageFramework_Link_post_type.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
                 array( $this, '_replyToAddPostTypeQueryInEditPostLink' ), 
34 34
                 10, 
35 35
                 3 
36
-           );
36
+            );
37 37
         }        
38 38
     }
39 39
 
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -22,12 +22,12 @@  discard block
 block discarded – undo
22 22
      * Sets up hooks and properties.
23 23
      * 
24 24
      */
25
-    public function __construct( $oProp, $oMsg=null ) {
25
+    public function __construct( $oProp, $oMsg = null ) {
26 26
         
27 27
         parent::__construct( $oProp, $oMsg );
28 28
                        
29 29
         // For post type posts listing table page ( edit.php )
30
-        if ( isset( $_GET['post_type'] ) && $_GET['post_type'] == $this->oProp->sPostType ) {
30
+        if ( isset( $_GET[ 'post_type' ] ) && $_GET[ 'post_type' ] == $this->oProp->sPostType ) {
31 31
             add_action(
32 32
                 'get_edit_post_link',
33 33
                 array( $this, '_replyToAddPostTypeQueryInEditPostLink' ),
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
         );
61 61
      
62 62
         // If the user explicitly sets an empty string to the label key, do not insert a link.
63
-        if ( ! $_sLinkLabel ) {
63
+        if ( !$_sLinkLabel ) {
64 64
             return $aLinks;
65 65
         }
66 66
 
@@ -68,13 +68,13 @@  discard block
 block discarded – undo
68 68
         array_unshift(
69 69
             $aLinks,
70 70
             // "<a href='" . esc_url( "edit.php?post_type={$this->oProp->sPostType}" ) . "'>" 
71
-            '<a ' . $this->getAttributes(
71
+            '<a '.$this->getAttributes(
72 72
                 array(
73 73
                     'href'      => esc_url( "edit.php?post_type={$this->oProp->sPostType}" ),
74 74
                     // 3.5.7+ Added for acceptance testing
75 75
                     'class'     => 'apf-plugin-title-action-link apf-admin-page',
76 76
                 )
77
-            ) . '>'
77
+            ).'>'
78 78
                 . $_sLinkLabel
79 79
             . "</a>"
80 80
         );
@@ -91,9 +91,9 @@  discard block
 block discarded – undo
91 91
     public function _replyToSetFooterInfo() {
92 92
 
93 93
         if (
94
-            ! $this->isPostDefinitionPage( $this->oProp->sPostType )
95
-            && ! $this->isPostListingPage( $this->oProp->sPostType )
96
-            && ! $this->isCustomTaxonomyPage( $this->oProp->sPostType )
94
+            !$this->isPostDefinitionPage( $this->oProp->sPostType )
95
+            && !$this->isPostListingPage( $this->oProp->sPostType )
96
+            && !$this->isCustomTaxonomyPage( $this->oProp->sPostType )
97 97
         ) {
98 98
             return;
99 99
         }
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
      * @remark      e.g. `http://.../wp-admin/post.php?post=180&action=edit` -> `http://.../wp-admin/post.php?post=180&action=edit&post_type=[...]`
112 112
      * @callback    filter      get_edit_post_link
113 113
      */
114
-    public function _replyToAddPostTypeQueryInEditPostLink( $sURL, $iPostID=null, $sContext=null ) {
114
+    public function _replyToAddPostTypeQueryInEditPostLink( $sURL, $iPostID = null, $sContext = null ) {
115 115
         return add_query_arg(
116 116
             array(
117 117
                 'post'      => $iPostID,
Please login to merge, or discard this patch.
development/factory/post_type/AdminPageFramework_PostType_Model.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
         
39 39
         if ( $this->oProp->bIsAdmin ) {
40 40
             
41
-            add_action( 'load_' . $this->oProp->sPostType, array( $this, '_replyToSetUpHooksForModel' ) );
41
+            add_action( 'load_'.$this->oProp->sPostType, array( $this, '_replyToSetUpHooksForModel' ) );
42 42
             
43 43
             if ( $this->oProp->sCallerPath ) {
44 44
                 new AdminPageFramework_PostType_Model__FlushRewriteRules( $this );
@@ -65,11 +65,11 @@  discard block
 block discarded – undo
65 65
     
66 66
         // Properties - sets translatable labels.
67 67
         $this->oProp->aColumnHeaders = array(
68
-            'cb'        => '<input type="checkbox" />',     // Checkbox for bulk actions. 
69
-            'title'     => $this->oMsg->get( 'title' ),     // Post title. Includes "edit", "quick edit", "trash" and "view" links. If $mode (set from $_REQUEST['mode']) is 'excerpt', a post excerpt is included between the title and links.
70
-            'author'    => $this->oMsg->get( 'author' ),    // Post author.
68
+            'cb'        => '<input type="checkbox" />', // Checkbox for bulk actions. 
69
+            'title'     => $this->oMsg->get( 'title' ), // Post title. Includes "edit", "quick edit", "trash" and "view" links. If $mode (set from $_REQUEST['mode']) is 'excerpt', a post excerpt is included between the title and links.
70
+            'author'    => $this->oMsg->get( 'author' ), // Post author.
71 71
             'comments'  => '<div class="comment-grey-bubble"></div>', // Number of pending comments. 
72
-            'date'      => $this->oMsg->get( 'date' ),      // The date and publish status of the post. 
72
+            'date'      => $this->oMsg->get( 'date' ), // The date and publish status of the post. 
73 73
         );
74 74
         
75 75
     }
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         echo $this->oUtil->addAndApplyFilter( 
132 132
             $this, 
133 133
             "cell_{$this->oProp->sPostType}_{$sColumnKey}", 
134
-            '',  // value to be filtered - cell output
134
+            '', // value to be filtered - cell output
135 135
             $iPostID 
136 136
         );
137 137
     }    
@@ -180,7 +180,7 @@  discard block
 block discarded – undo
180 180
      * @internal
181 181
      */
182 182
     public function _replyToRegisterTaxonomies() {
183
-        foreach( $this->oProp->aTaxonomies as $_sTaxonomySlug => $_aArguments ) {
183
+        foreach ( $this->oProp->aTaxonomies as $_sTaxonomySlug => $_aArguments ) {
184 184
             $this->_registerTaxonomy( 
185 185
                 $_sTaxonomySlug,  
186 186
                 $this->oUtil->getAsArray( $this->oProp->aTaxonomyObjectTypes[ $_sTaxonomySlug ] ), // object types 
@@ -196,8 +196,8 @@  discard block
 block discarded – undo
196 196
      */
197 197
     public function _registerTaxonomy( $sTaxonomySlug, array $aObjectTypes, array $aArguments ) {
198 198
         
199
-        if ( ! in_array( $this->oProp->sPostType, $aObjectTypes ) ) {
200
-            $aObjectTypes[] = $this->oProp->sPostType;
199
+        if ( !in_array( $this->oProp->sPostType, $aObjectTypes ) ) {
200
+            $aObjectTypes[ ] = $this->oProp->sPostType;
201 201
         }
202 202
         register_taxonomy(
203 203
             $sTaxonomySlug,
@@ -235,7 +235,7 @@  discard block
 block discarded – undo
235 235
      */
236 236
     public function _replyToRemoveTexonomySubmenuPages() {
237 237
     
238
-        foreach( $this->oProp->aTaxonomyRemoveSubmenuPages as $sSubmenuPageSlug => $sTopLevelPageSlug ) {
238
+        foreach ( $this->oProp->aTaxonomyRemoveSubmenuPages as $sSubmenuPageSlug => $sTopLevelPageSlug ) {
239 239
             
240 240
             remove_submenu_page( $sTopLevelPageSlug, $sSubmenuPageSlug );
241 241
             
Please login to merge, or discard this patch.