original_string: public static function run()
      {
          if (! session_id()) {
              session_start();
          }
  
          $complementType = self::getType('strtoupper');
  
          $path = App::$complementType();
  
          if ($paths = File::getFilesFromDir($path)) {
              foreach ($paths as $path) {
                  if (! $path->isDot() && $path->isDir()) {
                      $_path = Url::addBackSlash($path->getPath());
                      $slug = $path->getBasename();
                      $file = $_path . $slug . '/' . $slug . '.json';
                      if (! File::exists($file)) {
                          continue;
                      }
                      self::load($file);
                  }
              }
          }
  
          self::requestHandler(self::getType('strtolower', false));
      }
code: public static function run()
      {
          if (! session_id()) {
              session_start();
          }
  
          $complementType = self::getType('strtoupper');
  
          $path = App::$complementType();
  
          if ($paths = File::getFilesFromDir($path)) {
              foreach ($paths as $path) {
                  if (! $path->isDot() && $path->isDir()) {
                      $_path = Url::addBackSlash($path->getPath());
                      $slug = $path->getBasename();
                      $file = $_path . $slug . '/' . $slug . '.json';
                      if (! File::exists($file)) {
                          continue;
                      }
                      self::load($file);
                  }
              }
          }
  
          self::requestHandler(self::getType('strtolower', false));
      }
code_tokens: public static function run ( ) { if ( ! session_id ( ) ) { session_start ( ) ; } $ complementType = self :: getType ( 'strtoupper' ) ; $ path = App :: $ complementType ( ) ; if ( $ paths = File :: getFilesFromDir ( $ path ) ) { foreach ( $ paths as $ path ) { if ( ! $ path -> isDot ( ) && $ path -> isDir ( ) ) { $ _path = Url :: addBackSlash ( $ path -> getPath ( ) ) ; $ slug = $ path -> getBasename ( ) ; $ file = $ _path . $ slug . '/' . $ slug . '.json' ; if ( ! File :: exists ( $ file ) ) { continue ; } self :: load ( $ file ) ; } } } self :: requestHandler ( self :: getType ( 'strtolower' , false ) ) ; }
docstring: Load all complements found in the directory.
  
  @uses \Eliasis\Complement\ComplementRequest::requestHandler()
  @uses \Eliasis\Complement\ComplementHandler::getType()
docstring_tokens: Load all complements found in the directory .