original_string: public function getAllRoutes()
      {
          $routes = [];
          foreach ($this->getRoutes() as $path => $route) {
              if (array_key_exists('slug', $route)) {
                  $routes[$route['slug']] = $path;
              }
          }
          return $routes;
      }
code: public function getAllRoutes()
      {
          $routes = [];
          foreach ($this->getRoutes() as $path => $route) {
              if (array_key_exists('slug', $route)) {
                  $routes[$route['slug']] = $path;
              }
          }
          return $routes;
      }
code_tokens: public function getAllRoutes ( ) { $ routes = [ ] ; foreach ( $ this -> getRoutes ( ) as $ path => $ route ) { if ( array_key_exists ( 'slug' , $ route ) ) { $ routes [ $ route [ 'slug' ] ] = $ path ; } } return $ routes ; }
docstring: Method that extract all routes in the platform
  @return array
docstring_tokens: Method that extract all routes in the platform