original_string: protected function _buildPrefixes()
      {
          $routes = Router::routes();
          foreach ($routes as $key => $route) {
              if (isset($route->defaults['prefix'])) {
                  $prefix = Inflector::camelize($route->defaults['prefix']);
                  if (!isset($route->defaults['plugin'])) {
                      $this->prefixes[$prefix] = true;
                  } else {
                      $this->pluginPrefixes[$route->defaults['plugin']][$prefix] = true;
                  }
              }
          }
      }
code: protected function _buildPrefixes()
      {
          $routes = Router::routes();
          foreach ($routes as $key => $route) {
              if (isset($route->defaults['prefix'])) {
                  $prefix = Inflector::camelize($route->defaults['prefix']);
                  if (!isset($route->defaults['plugin'])) {
                      $this->prefixes[$prefix] = true;
                  } else {
                      $this->pluginPrefixes[$route->defaults['plugin']][$prefix] = true;
                  }
              }
          }
      }
code_tokens: protected function _buildPrefixes ( ) { $ routes = Router :: routes ( ) ; foreach ( $ routes as $ key => $ route ) { if ( isset ( $ route -> defaults [ 'prefix' ] ) ) { $ prefix = Inflector :: camelize ( $ route -> defaults [ 'prefix' ] ) ; if ( ! isset ( $ route -> defaults [ 'plugin' ] ) ) { $ this -> prefixes [ $ prefix ] = true ; } else { $ this -> pluginPrefixes [ $ route -> defaults [ 'plugin' ] ] [ $ prefix ] = true ; } } } }
docstring: Build prefixes for App and Plugins based on configured routes
  
  @return void
docstring_tokens: Build prefixes for App and Plugins based on configured routes