@@ -43,7 +43,6 @@ class LoaderHelper {
4343 protected function loadIndex ($ classname , $ filepath ) {
4444
4545 $ classname = (string ) trim (mb_substr ($ classname , 0 , strpos ($ classname , ' ' )));
46-
4746 if ($ classname AND ! in_array ($ classname , array_keys ($ this ->loader ))) {
4847 $ this ->loader [$ classname ] = $ filepath ;
4948 }
@@ -112,7 +111,6 @@ protected function getNamespace($line, $arr) {
112111
113112 // Get actually namespace
114113 $ namespaceRegEx = '/((namespace)+\s*( ' . preg_quote ($ this ->splitInsatnce (true )) . ');)/ ' ;
115-
116114 if (preg_match_all ($ namespaceRegEx , $ line , $ arr )) {
117115 // Debug information
118116 $ this ->debugInfo [] = '<b>Namespace:</b> <span style="color:blue;"> ' . $ arr [0 ][0 ] . '</span> ' ;
@@ -134,12 +132,10 @@ protected function getClass($filepath, $line, $arr, $lineNum) {
134132 // Get actually class
135133 $ classRegEx = '/((interface|abstract\s+class|class|trait)+\s+( ' . preg_quote ($ this ->splitInsatnce ()) . ')(.*)\{?)/ ' ;
136134 if (preg_match_all ($ classRegEx , trim ($ line ), $ arr )) {
137-
138135 // Founded class
139136 $ class = $ arr [3 ][0 ];
140137 // Get pathinfo
141138 $ info = pathinfo ($ filepath );
142-
143139 if (!isset ($ this ->loader [$ class ]) && file_exists ($ filepath ) && $ info ["extension " ] == "php " ) {
144140 // Hold loader class and filepath
145141 $ this ->loader [$ class ] = $ filepath ;
@@ -172,7 +168,6 @@ protected function splitInsatnce($namespaceORclass = false) {
172168 $ getLastForName = count ($ this ->namespace ) - 1 ;
173169 $ classname = $ this ->namespace [$ getLastForName ];
174170 unset($ this ->namespace [$ getLastForName ]);
175-
176171 if ($ namespaceORclass == true ) {
177172 $ return = implode ('\\' , $ this ->namespace );
178173 } else {
@@ -196,19 +191,13 @@ public function logInfo() {
196191 $ output .= '<th>Namespace as Foldername (Instance) </th> ' ;
197192 $ output .= '<th>Load Time</th> ' ;
198193 $ output .= '</tr> ' ;
199-
200194 if (file_exists (MBT_CORE_AUTOLOAD_LOG_LOGS )) {
201-
202195 $ debugInfo = unserialize (file_get_contents (MBT_CORE_AUTOLOAD_LOG_LOGS ));
203-
204196 if ($ debugInfo ) {
205-
206197 $ counter = 0 ;
207198 foreach ($ debugInfo as $ key => $ value ) {
208-
209199 // $output .= '</tr><tr>';
210200 // $output .= '<td colspan="2" style="text-align:center;"><strong>' . $key . ' (' . count($value) . ')</strong></td>';
211-
212201 $ i = 0 ;
213202 if (is_array ($ value )) {
214203 foreach ($ value as $ val => $ v ) {
@@ -218,7 +207,6 @@ public function logInfo() {
218207 $ i ++;
219208 }
220209 }
221-
222210 $ counter ++;
223211 }
224212 }
@@ -240,7 +228,6 @@ public function getDebug() {
240228 $ output .= '<tr> ' ;
241229 $ output .= '<th>Debugging</th> ' ;
242230 $ output .= '</tr> ' ;
243-
244231 if ($ this ->debugInfo ) {
245232 $ i = 0 ;
246233 foreach ($ this ->debugInfo as $ key => $ value ) {
0 commit comments