Completed
Branch master (21eef4)
by
unknown
06:35
created
factory/_common/utility/base_utility/AdminPageFramework_Utility.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -28,9 +28,9 @@  discard block
 block discarded – undo
28 28
      * @return      void
29 29
      * @since       3.8.8
30 30
      */
31
-    static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='Admin Page Framework' ) {
31
+    static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = 'Admin Page Framework' ) {
32 32
         trigger_error(
33
-            $sProgramName . ': ' . sprintf(
33
+            $sProgramName.': '.sprintf(
34 34
                 $sAlternative
35 35
                     ? '<code>%1$s</code> has been deprecated. Use <code>%2$s</code> instead.'
36 36
                     : '<code>%1$s</code> has been deprecated.',
@@ -52,8 +52,8 @@  discard block
 block discarded – undo
52 52
      * @param       callable            $oCallable
53 53
      * @param       string|array        $asParameters       Parameters to pass to the callback function.
54 54
      */
55
-    public function callBack( $oCallable, $asParameters=array() ) {
56
-        $_aParameters   = self::getAsArray( 
55
+    public function callBack( $oCallable, $asParameters = array() ) {
56
+        $_aParameters = self::getAsArray( 
57 57
             $asParameters, 
58 58
             true // preserve empty
59 59
         );
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
      * @since       3.6.3
90 90
      * @return      string      The captured output buffer.
91 91
      */
92
-    static public function getOutputBuffer( $oCallable, array $aParameters=array() ) {
92
+    static public function getOutputBuffer( $oCallable, array $aParameters = array() ) {
93 93
         
94 94
         ob_start(); 
95 95
         echo call_user_func_array( $oCallable, $aParameters );
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
         
111 111
         $_iCount     = count( get_object_vars( $oInstance ) );
112 112
         $_sClassName = get_class( $oInstance );
113
-        return '(object) ' . $_sClassName . ': ' . $_iCount . ' properties.';
113
+        return '(object) '.$_sClassName.': '.$_iCount.' properties.';
114 114
         
115 115
     }
116 116
                    
@@ -127,7 +127,7 @@  discard block
 block discarded – undo
127 127
      * @param       boolean|integer|double|string|array|object|resource|NULL        $mTrue      The value to return when the first parameter value yields false.
128 128
      * @return      mixed
129 129
      */
130
-    static public function getAOrB( $mValue, $mTrue=null, $mFalse=null ) {
130
+    static public function getAOrB( $mValue, $mTrue = null, $mFalse = null ) {
131 131
         return $mValue ? $mTrue : $mFalse;
132 132
     }    
133 133
     
Please login to merge, or discard this patch.
_common/utility/base_utility/AdminPageFramework_Utility_Deprecated.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      * @deprecated  3.8.0       Use `getLengthSanitized()` instead.
32 32
      * @since       3.8.8       Moved from `AdminPageFramework_Utility_String`.
33 33
      */
34
-    static public function sanitizeLength( $sLength, $sUnit='px' ) {
34
+    static public function sanitizeLength( $sLength, $sUnit = 'px' ) {
35 35
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getLengthSanitized()' );
36 36
         return AdminPageFramework_Utility_String::getLengthSanitized( $sLength, $sUnit );
37 37
     }    
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
      * @since       3.5.3           Moved from `AdminPageFramework_Utility_Array`.
51 51
      * @deprecated  3.5.3           Use `getElement()`. 
52 52
      */
53
-    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault='', $bBlankToDefault=false ) {    
53
+    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault = '', $bBlankToDefault = false ) {    
54 54
                 
55 55
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
56 56
                 
57 57
         // If $vSubject is null,
58
-        if ( ! isset( $vSubject ) ) { 
58
+        if ( !isset( $vSubject ) ) { 
59 59
             return $sDefault; 
60 60
         }
61 61
             
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
         }
66 66
             
67 67
         // If $vSubject is not an array, 
68
-        if ( ! is_array( $vSubject ) ) { 
68
+        if ( !is_array( $vSubject ) ) { 
69 69
             return ( string ) $vSubject; 
70 70
         } // consider it as string.
71 71
         
@@ -116,11 +116,11 @@  discard block
 block discarded – undo
116 116
      * @since       3.5.3       Moved from `AdminPageFramework_FieldType_Base`.
117 117
      * @deprecated  3.5.3       Use the `getElement()` method.
118 118
      */
119
-    protected function getFieldElementByKey( $asElement, $sKey, $asDefault='' ) {
119
+    protected function getFieldElementByKey( $asElement, $sKey, $asDefault = '' ) {
120 120
         
121 121
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
122 122
         
123
-        if ( ! is_array( $asElement ) || ! isset( $sKey ) ) {
123
+        if ( !is_array( $asElement ) || !isset( $sKey ) ) {
124 124
             return $asElement; 
125 125
         }
126 126
                 
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
         
144 144
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__ );
145 145
         
146
-        foreach( $aArray as &$vElem ) {
146
+        foreach ( $aArray as &$vElem ) {
147 147
             
148 148
             if ( $vElem ) { break; }
149 149
             unset( $vElem );
@@ -177,15 +177,15 @@  discard block
 block discarded – undo
177 177
         
178 178
         AdminPageFramework_Utility::showDeprecationNotice( __METHOD__, 'AdminPageFramework_WPUtility::getAttributes()' );
179 179
         
180
-        $_sQuoteCharactor   ="'";
180
+        $_sQuoteCharactor   = "'";
181 181
         $_aOutput           = array();
182
-        foreach( $aAttributes as $sAttribute => $sProperty ) {
182
+        foreach ( $aAttributes as $sAttribute => $sProperty ) {
183 183
        
184 184
             // Must be resolved as a string.
185 185
             if ( in_array( gettype( $sProperty ), array( 'array', 'object' ) ) ) {
186 186
                 continue;
187 187
             }
188
-            $_aOutput[] = "{$sAttribute}={$_sQuoteCharactor}{$sProperty}{$_sQuoteCharactor}";
188
+            $_aOutput[ ] = "{$sAttribute}={$_sQuoteCharactor}{$sProperty}{$_sQuoteCharactor}";
189 189
             
190 190
         }
191 191
         return implode( ' ', $_aOutput );
Please login to merge, or discard this patch.
Braces   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -50,27 +50,27 @@
 block discarded – undo
50 50
      * @since       3.5.3           Moved from `AdminPageFramework_Utility_Array`.
51 51
      * @deprecated  3.5.3           Use `getElement()`. 
52 52
      */
53
-    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault='', $bBlankToDefault=false ) {    
53
+    public static function getCorrespondingArrayValue( $vSubject, $sKey, $sDefault='', $bBlankToDefault=false ) {
54 54
                 
55 55
         AdminPageFramework_Utility::showDeprecationNotice( __FUNCTION__, 'getElement()' );
56 56
                 
57 57
         // If $vSubject is null,
58
-        if ( ! isset( $vSubject ) ) { 
58
+        if ( ! isset( $vSubject ) ) {
59 59
             return $sDefault; 
60 60
         }
61 61
             
62 62
         // If the $bBlankToDefault flag is set and the subject value is a blank string, return the default value.
63
-        if ( $bBlankToDefault && $vSubject == '' ) { 
63
+        if ( $bBlankToDefault && $vSubject == '' ) {
64 64
             return  $sDefault; 
65 65
         }
66 66
             
67 67
         // If $vSubject is not an array, 
68
-        if ( ! is_array( $vSubject ) ) { 
68
+        if ( ! is_array( $vSubject ) ) {
69 69
             return ( string ) $vSubject; 
70 70
         } // consider it as string.
71 71
         
72 72
         // Consider $vSubject as array.
73
-        if ( isset( $vSubject[ $sKey ] ) ) { 
73
+        if ( isset( $vSubject[ $sKey ] ) ) {
74 74
             return $vSubject[ $sKey ]; 
75 75
         }
76 76
         
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
@@ -23,7 +23,7 @@  discard block
 block discarded – undo
23 23
      * @since       3.8.8
24 24
      * @return      void
25 25
      */
26
-    static public function showDeprecationNotice( $sDeprecated, $sAlternative='', $sProgramName='' ) {
26
+    static public function showDeprecationNotice( $sDeprecated, $sAlternative = '', $sProgramName = '' ) {
27 27
         $sProgramName = $sProgramName ? $sProgramName : self::getFrameworkName();
28 28
         parent::showDeprecationNotice( $sDeprecated, $sAlternative, $sProgramName );
29 29
     }
@@ -42,8 +42,8 @@  discard block
 block discarded – undo
42 42
             return;
43 43
         }
44 44
 
45
-        foreach( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) {
46
-            if ( ! isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) {
45
+        foreach ( ( array ) $GLOBALS[ '_apf_sub_menus_to_sort' ] as $_sIndex => $_sMenuSlug ) {
46
+            if ( !isset( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] ) ) {
47 47
                 continue;
48 48
             }       
49 49
             ksort( $GLOBALS[ 'submenu' ][ $_sMenuSlug ] );
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
      * @param       boolean     $bTrimDevVer           Whether the `.dev` suffix should be removed or not.
69 69
      * @return      string
70 70
      */
71
-    static public function getFrameworkVersion( $bTrimDevVer=false ) {
71
+    static public function getFrameworkVersion( $bTrimDevVer = false ) {
72 72
         $_sVersion = AdminPageFramework_Registry::getVersion();
73 73
         return $bTrimDevVer
74 74
             ? self::getSuffixRemoved( $_sVersion, '.dev' )
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @return      string
97 97
      */
98 98
     static public function getFrameworkNameVersion() {
99
-        return self::getFrameworkName() . ' ' . self::getFrameworkVersion();
99
+        return self::getFrameworkName().' '.self::getFrameworkVersion();
100 100
     }
101 101
         
102 102
 }
Please login to merge, or discard this patch.
factory/admin_page/_view/AdminPageFramework_PageLoadInfo_admin_page.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
      */
29 29
     public static function instantiate( $oProp, $oMsg ) {
30 30
         
31
-        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {            
31
+        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {
32 32
             return self::$_oInstance;
33 33
         }
34 34
         
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
             return self::$_oInstance;
32 32
         }
33 33
         
34
-        self::$aClassNames[] = $oProp->sClassName;
34
+        self::$aClassNames[ ] = $oProp->sClassName;
35 35
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_admin_page( $oProp, $oMsg );
36 36
         
37 37
         return self::$_oInstance;
Please login to merge, or discard this patch.
factory/admin_page/_model/format/AdminPageFramework_Format_InPageTab.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -31,15 +31,15 @@
 block discarded – undo
31 31
         'page_slug'         => null,
32 32
         'tab_slug'          => null,
33 33
         'title'             => null,
34
-        'order'             => 10,      // (integer)
35
-        'show_in_page_tab'  => true,    // 3.6.0+ (boolean)
36
-        'parent_tab_slug'   => null,    // this needs to be set if the above show_in_page_tab is false so that the framework can mark the parent tab to be active when the hidden page is accessed.
37
-        'url'               => null,    // 3.5.0+ This allows the user set custom link.
38
-        'disabled'          => null,    // 3.5.10+ (boolean) If true, the link will be unlinked.
39
-        'attributes'        => null,    // 3.5.10+ (array) Applies to the navigation tab bar element.    
40
-        'capability'        => null,    // 3.6.0+ (string)
41
-        'if'                => true,    // 3.6.0+ (boolean)
42
-        'show_debug_info'   => null,    // 3.8.8+ (boolean, optional) Whether to show debug information. If not set, the existent `bShowDebugInfo` property value will be used. The initial value here is `null` as the default value will be assigned in the formatting method.
34
+        'order'             => 10, // (integer)
35
+        'show_in_page_tab'  => true, // 3.6.0+ (boolean)
36
+        'parent_tab_slug'   => null, // this needs to be set if the above show_in_page_tab is false so that the framework can mark the parent tab to be active when the hidden page is accessed.
37
+        'url'               => null, // 3.5.0+ This allows the user set custom link.
38
+        'disabled'          => null, // 3.5.10+ (boolean) If true, the link will be unlinked.
39
+        'attributes'        => null, // 3.5.10+ (array) Applies to the navigation tab bar element.    
40
+        'capability'        => null, // 3.6.0+ (string)
41
+        'if'                => true, // 3.6.0+ (boolean)
42
+        'show_debug_info'   => null, // 3.8.8+ (boolean, optional) Whether to show debug information. If not set, the existent `bShowDebugInfo` property value will be used. The initial value here is `null` as the default value will be assigned in the formatting method.
43 43
     );
44 44
     
45 45
     /**
Please login to merge, or discard this patch.
_view/AdminPageFramework_PageLoadInfo_network_admin_page.php 2 patches
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,11 +42,11 @@
 block discarded – undo
42 42
      */
43 43
     public static function instantiate( $oProp, $oMsg ) {
44 44
 
45
-        if ( ! is_network_admin() ) { 
45
+        if ( ! is_network_admin() ) {
46 46
             return;
47 47
         }     
48 48
         
49
-        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {            
49
+        if ( in_array( $oProp->sClassName, self::$aClassNames ) ) {
50 50
             return self::$_oInstance;
51 51
         }
52 52
         
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      */
42 42
     public static function instantiate( $oProp, $oMsg ) {
43 43
 
44
-        if ( ! is_network_admin() ) { 
44
+        if ( !is_network_admin() ) { 
45 45
             return;
46 46
         }     
47 47
         
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             return self::$_oInstance;
50 50
         }
51 51
         
52
-        self::$aClassNames[] = $oProp->sClassName;
52
+        self::$aClassNames[ ] = $oProp->sClassName;
53 53
         self::$_oInstance = new AdminPageFramework_PageLoadInfo_network_admin_page( $oProp, $oMsg );
54 54
         
55 55
         return self::$_oInstance;
Please login to merge, or discard this patch.
development/factory/page_meta_box/AdminPageFramework_MetaBox_Page.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,12 +24,12 @@
 block discarded – undo
24 24
      * @since       3.0.0
25 25
      * @deprecated  3.7.0      Use     `AdminPageFramework_PageMetaBox` instead.
26 26
      */
27
-    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs=array(), $sContext='normal', $sPriority='default', $sCapability='manage_options', $sTextDomain='admin-page-framework' ) {
27
+    public function __construct( $sMetaBoxID, $sTitle, $asPageSlugs = array(), $sContext = 'normal', $sPriority = 'default', $sCapability = 'manage_options', $sTextDomain = 'admin-page-framework' ) {
28 28
                         
29 29
         parent::__construct( $sMetaBoxID, $sTitle, $asPageSlugs, $sContext, $sPriority, $sCapability, $sTextDomain );
30 30
         
31 31
         $this->oUtil->showDeprecationNotice( 
32
-            'The class, ' . __CLASS__ . ',', // deprecated item
32
+            'The class, '.__CLASS__.',', // deprecated item
33 33
             'AdminPageFramework_PageMetaBox' // alternative
34 34
         );
35 35
         
Please login to merge, or discard this patch.
development/factory/_common/utility/debug/AdminPageFramework_Debug.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
      * @since       3.8.9
43 43
      * @return      string
44 44
      */
45
-    static public function getDetails( $mValue, $bEscape=true ) {    
45
+    static public function getDetails( $mValue, $bEscape=true ) {
46 46
         $_sValueWithDetails = self::_getArrayRepresentationSanitized(
47 47
             self::_getLegibleDetails( $mValue )
48 48
         );
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
      * @param       string          $sFilePath      The file path for a log file.
34 34
      * @return      void
35 35
      */
36
-    static public function dump( $asArray, $sFilePath=null ) {
36
+    static public function dump( $asArray, $sFilePath = null ) {
37 37
         echo self::get( $asArray, $sFilePath );
38 38
     }    
39 39
     
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      * @since       3.8.9
43 43
      * @return      string
44 44
      */
45
-    static public function getDetails( $mValue, $bEscape=true ) {    
45
+    static public function getDetails( $mValue, $bEscape = true ) {    
46 46
         $_sValueWithDetails = self::_getArrayRepresentationSanitized(
47 47
             self::_getLegibleDetails( $mValue )
48 48
         );
@@ -64,7 +64,7 @@  discard block
 block discarded – undo
64 64
      * @param       string          $sFilePath      The file path for a log file.
65 65
      * @param       boolean         $bEscape        Whether to escape characters.
66 66
      */
67
-    static public function get( $asArray, $sFilePath=null, $bEscape=true ) {
67
+    static public function get( $asArray, $sFilePath = null, $bEscape = true ) {
68 68
 
69 69
         if ( $sFilePath ) {
70 70
             self::log( $asArray, $sFilePath );     
@@ -96,7 +96,7 @@  discard block
 block discarded – undo
96 96
      * @param       string      $sFilePath      The log file path.
97 97
      * @return      void
98 98
      **/
99
-    static public function log( $mValue, $sFilePath=null ) {
99
+    static public function log( $mValue, $sFilePath = null ) {
100 100
         self::_log( $mValue, $sFilePath );
101 101
     }       
102 102
             
@@ -110,8 +110,8 @@  discard block
 block discarded – undo
110 110
      * @since unknown
111 111
      * @deprecated      3.2.0
112 112
      */
113
-    static public function dumpArray( $asArray, $sFilePath=null ) {
114
-        self::showDeprecationNotice( 'AdminPageFramework_Debug::' . __FUNCTION__, 'AdminPageFramework_Debug::dump()' );
113
+    static public function dumpArray( $asArray, $sFilePath = null ) {
114
+        self::showDeprecationNotice( 'AdminPageFramework_Debug::'.__FUNCTION__, 'AdminPageFramework_Debug::dump()' );
115 115
         AdminPageFramework_Debug::dump( $asArray, $sFilePath );
116 116
     }     
117 117
     
@@ -124,8 +124,8 @@  discard block
 block discarded – undo
124 124
      * @since       3.0.0 Changed the $bEncloseInTag parameter to bEscape.
125 125
      * @deprecated  3.2.0
126 126
      */
127
-    static public function getArray( $asArray, $sFilePath=null, $bEscape=true ) {
128
-        self::showDeprecationNotice( 'AdminPageFramework_Debug::' . __FUNCTION__, 'AdminPageFramework_Debug::get()' );
127
+    static public function getArray( $asArray, $sFilePath = null, $bEscape = true ) {
128
+        self::showDeprecationNotice( 'AdminPageFramework_Debug::'.__FUNCTION__, 'AdminPageFramework_Debug::get()' );
129 129
         return AdminPageFramework_Debug::get( $asArray, $sFilePath, $bEscape );
130 130
     }
131 131
 
@@ -136,8 +136,8 @@  discard block
 block discarded – undo
136 136
      * @since       3.0.3   Changed the default log location and file name.
137 137
      * @deprecated  3.1.0   Use the `log()` method instead.
138 138
      */
139
-    static public function logArray( $asArray, $sFilePath=null ) {
140
-        self::showDeprecationNotice( 'AdminPageFramework_Debug::' . __FUNCTION__, 'AdminPageFramework_Debug::log()' );
139
+    static public function logArray( $asArray, $sFilePath = null ) {
140
+        self::showDeprecationNotice( 'AdminPageFramework_Debug::'.__FUNCTION__, 'AdminPageFramework_Debug::log()' );
141 141
         AdminPageFramework_Debug::log( $asArray, $sFilePath );     
142 142
     }
143 143
     
@@ -150,7 +150,7 @@  discard block
 block discarded – undo
150 150
      * @deprecated  3.8.9
151 151
      */
152 152
     static public function getAsString( $mValue ) {
153
-        self::showDeprecationNotice( 'AdminPageFramework_Debug::' . __FUNCTION__ );
153
+        self::showDeprecationNotice( 'AdminPageFramework_Debug::'.__FUNCTION__ );
154 154
         return self::_getLegible( $mValue );
155 155
     }    
156 156
                 
Please login to merge, or discard this patch.
development/factory/_common/utility/debug/AdminPageFramework_Debug_Base.php 2 patches
Braces   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@  discard block
 block discarded – undo
22 22
      * @since       3.8.9
23 23
      * @return      string
24 24
      */
25
-    static protected function _getLegibleDetails( $mValue ) {                
26
-        if ( is_array( $mValue ) ) {            
25
+    static protected function _getLegibleDetails( $mValue ) {
26
+        if ( is_array( $mValue ) ) {
27 27
             return '(array, length: ' . count( $mValue ).') ' 
28 28
                 . print_r( self::_getLegibleArray( $mValue ) , true );
29 29
         }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
          * @return      mixed       A modified value.
263 263
          * @since       3.8.9
264 264
          */
265
-        static private function _getArrayMappedNested( $mItem ) {            
265
+        static private function _getArrayMappedNested( $mItem ) {
266 266
             return is_array( $mItem ) 
267 267
                 ? array_map( array( __CLASS__, '_getArrayMappedNested' ), $mItem ) 
268 268
                 : call_user_func( self::$_oCurrentCallableForArrayMapRecursive, $mItem );            
Please login to merge, or discard this patch.
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -26,8 +26,8 @@  discard block
 block discarded – undo
26 26
      */
27 27
     static protected function _getLegibleDetails( $mValue ) {                
28 28
         if ( is_array( $mValue ) ) {            
29
-            return '(array, length: ' . count( $mValue ).') ' 
30
-                . print_r( self::_getLegibleArray( $mValue ) , true );
29
+            return '(array, length: '.count( $mValue ).') ' 
30
+                . print_r( self::_getLegibleArray( $mValue ), true );
31 31
         }
32 32
         return print_r( self::_getLegibleValue( $mValue ), true );
33 33
     }
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
          */
64 64
         static private function _getObjectName( $mItem ) {
65 65
             if ( is_object( $mItem ) ) {
66
-                return '(object) ' . get_class( $mItem );
66
+                return '(object) '.get_class( $mItem );
67 67
             }
68 68
             return $mItem;
69 69
         }
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
          * @return      string
75 75
          */
76 76
         static private function _getLegibleCallable( $asoCallable ) {
77
-            return '(callable) ' . self::_getCallableName( $asoCallable );    
77
+            return '(callable) '.self::_getCallableName( $asoCallable );    
78 78
         }       
79 79
             /**
80 80
              * @since       3.8.9
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
                     ? get_class( $asoCallable[ 0 ] )
94 94
                     : ( string ) $asoCallable[ 0 ];
95 95
 
96
-                return $_sSubject . '::' . ( string ) $asoCallable[ 1 ];
96
+                return $_sSubject.'::'.( string ) $asoCallable[ 1 ];
97 97
                 
98 98
             }
99 99
             
@@ -107,8 +107,8 @@  discard block
 block discarded – undo
107 107
             if ( method_exists( $oObject, '__toString' ) ) {
108 108
                 return ( string ) $oObject;
109 109
             }
110
-            return '(object) ' . get_class( $oObject ) . ' ' 
111
-                . count( get_object_vars( $oObject ) ) . ' properties.';
110
+            return '(object) '.get_class( $oObject ).' ' 
111
+                . count( get_object_vars( $oObject ) ).' properties.';
112 112
             
113 113
         } 
114 114
         /**
@@ -146,12 +146,12 @@  discard block
 block discarded – undo
146 146
                         return '(null)';
147 147
                     }                    
148 148
                     if ( is_object( $mNonScalar ) ) {
149
-                        return '(' . $_sType . ') ' . get_class( $mNonScalar );
149
+                        return '('.$_sType.') '.get_class( $mNonScalar );
150 150
                     }
151 151
                     if ( is_array( $mNonScalar ) ) {
152
-                        return '(' . $_sType . ') ' . count( $mNonScalar ) . ' elements';
152
+                        return '('.$_sType.') '.count( $mNonScalar ).' elements';
153 153
                     }
154
-                    return '(' . $_sType . ') ' . ( string ) $mNonScalar;
154
+                    return '('.$_sType.') '.( string ) $mNonScalar;
155 155
                     
156 156
                 }
157 157
                 /**
@@ -161,11 +161,11 @@  discard block
 block discarded – undo
161 161
                  */
162 162
                 static private function _getLegibleScalar( $sScalar ) {
163 163
                     if ( is_bool( $sScalar ) ) {
164
-                        return '(boolean) ' . ( $sScalar ? 'true' : 'false' );
164
+                        return '(boolean) '.( $sScalar ? 'true' : 'false' );
165 165
                     }                 
166 166
                     return is_string( $sScalar )
167 167
                         ? self::_getLegibleString( $sScalar )
168
-                        : '(' . gettype( $sScalar ) . ', length: ' . self::_getValueLength( $sScalar ) .  ') ' . $sScalar;
168
+                        : '('.gettype( $sScalar ).', length: '.self::_getValueLength( $sScalar ).') '.$sScalar;
169 169
                 }
170 170
                     /**
171 171
                      * Returns a length of a value.
@@ -198,8 +198,8 @@  discard block
 block discarded – undo
198 198
                         $iCharLimit     = self::$iLegibleStringCharacterLimit;
199 199
                         $_iCharLength   = call_user_func_array( $_aStrLenMethod[ $_iMBSupport ], array( $sString ) );
200 200
                         return $_iCharLength <= $iCharLimit
201
-                            ? '(string, length: ' . $_iCharLength . ') ' . $sString
202
-                            : '(string, length: ' . $_iCharLength . ') ' . call_user_func_array( $_aSubstrMethod[ $_iMBSupport ], array( $sString, 0, $iCharLimit ) )
201
+                            ? '(string, length: '.$_iCharLength.') '.$sString
202
+                            : '(string, length: '.$_iCharLength.') '.call_user_func_array( $_aSubstrMethod[ $_iMBSupport ], array( $sString, 0, $iCharLimit ) )
203 203
                                 . '...';
204 204
                         
205 205
                     }
@@ -242,7 +242,7 @@  discard block
 block discarded – undo
242 242
      * @return      array
243 243
      * @internal
244 244
      */
245
-    static private function _getSlicedByDepth( array $aSubject, $iDepth=0 ) {
245
+    static private function _getSlicedByDepth( array $aSubject, $iDepth = 0 ) {
246 246
 
247 247
         foreach ( $aSubject as $_sKey => $_vValue ) {
248 248
             if ( is_array( $_vValue ) ) {
Please login to merge, or discard this patch.