original_string: private function superior_sctrl($tab, $path=''){
      if ( ($pos = strpos($tab, '_ctrl')) ){
        // Fix the right path
        $bits = explode('/', $path);
        $count = \strlen(substr($tab, 0, $pos));
        if ( !empty($bits) ){
          while ( $count >= 0 ){
            array_pop($bits);
            $count--;
          }
          $path = implode('/', $bits).(!empty($bits) ? '/' : '');
        }
        // Fix the tab's name
        $tab = '_ctrl';
      }
      return [
        'tab' => $tab,
        'path' => $path
      ];
    }
code: private function superior_sctrl($tab, $path=''){
      if ( ($pos = strpos($tab, '_ctrl')) ){
        // Fix the right path
        $bits = explode('/', $path);
        $count = \strlen(substr($tab, 0, $pos));
        if ( !empty($bits) ){
          while ( $count >= 0 ){
            array_pop($bits);
            $count--;
          }
          $path = implode('/', $bits).(!empty($bits) ? '/' : '');
        }
        // Fix the tab's name
        $tab = '_ctrl';
      }
      return [
        'tab' => $tab,
        'path' => $path
      ];
    }
code_tokens: private function superior_sctrl ( $ tab , $ path = '' ) { if ( ( $ pos = strpos ( $ tab , '_ctrl' ) ) ) { // Fix the right path $ bits = explode ( '/' , $ path ) ; $ count = \ strlen ( substr ( $ tab , 0 , $ pos ) ) ; if ( ! empty ( $ bits ) ) { while ( $ count >= 0 ) { array_pop ( $ bits ) ; $ count -- ; } $ path = implode ( '/' , $ bits ) . ( ! empty ( $ bits ) ? '/' : '' ) ; } // Fix the tab's name $ tab = '_ctrl' ; } return [ 'tab' => $ tab , 'path' => $ path ] ; }
docstring: Checks if the file is a superior super-controller and returns the corrected name and path
  @param string $tab The tab'name from file's URL
  @param string $path The file's path from file's URL
  @return array
docstring_tokens: Checks if the file is a superior super - controller and returns the corrected name and path