original_string: protected function _includeComponents(): void
      {
          // for now, we just include all components
          $appComponentFolder = WWW_ROOT . 'js/app/components/';
          $folder = new Folder($appComponentFolder);
          $files = $folder->find('.*\.js');
          if (!empty($files)) {
              foreach ($files as $file) {
                  $this->_dependencies[] = 'app/components/' . $file;
              }
          }
  
          // Add Plugin Components
          foreach (Plugin::loaded() as $pluginName) {
              $pluginJsComponentsFolder = Plugin::path($pluginName) . '/webroot/js/app/components/';
              if (is_dir($pluginJsComponentsFolder)) {
                  $folder = new Folder($pluginJsComponentsFolder);
                  $files = $folder->find('.*\.js');
                  foreach ($files as $file) {
                      $this->_dependencies[] = '/' . Inflector::underscore($pluginName) . '/js/app/components/' . $file;
                  }
              }
          }
      }
code: protected function _includeComponents(): void
      {
          // for now, we just include all components
          $appComponentFolder = WWW_ROOT . 'js/app/components/';
          $folder = new Folder($appComponentFolder);
          $files = $folder->find('.*\.js');
          if (!empty($files)) {
              foreach ($files as $file) {
                  $this->_dependencies[] = 'app/components/' . $file;
              }
          }
  
          // Add Plugin Components
          foreach (Plugin::loaded() as $pluginName) {
              $pluginJsComponentsFolder = Plugin::path($pluginName) . '/webroot/js/app/components/';
              if (is_dir($pluginJsComponentsFolder)) {
                  $folder = new Folder($pluginJsComponentsFolder);
                  $files = $folder->find('.*\.js');
                  foreach ($files as $file) {
                      $this->_dependencies[] = '/' . Inflector::underscore($pluginName) . '/js/app/components/' . $file;
                  }
              }
          }
      }
code_tokens: protected function _includeComponents ( ) : void { // for now, we just include all components $ appComponentFolder = WWW_ROOT . 'js/app/components/' ; $ folder = new Folder ( $ appComponentFolder ) ; $ files = $ folder -> find ( '.*\.js' ) ; if ( ! empty ( $ files ) ) { foreach ( $ files as $ file ) { $ this -> _dependencies [ ] = 'app/components/' . $ file ; } } // Add Plugin Components foreach ( Plugin :: loaded ( ) as $ pluginName ) { $ pluginJsComponentsFolder = Plugin :: path ( $ pluginName ) . '/webroot/js/app/components/' ; if ( is_dir ( $ pluginJsComponentsFolder ) ) { $ folder = new Folder ( $ pluginJsComponentsFolder ) ; $ files = $ folder -> find ( '.*\.js' ) ; foreach ( $ files as $ file ) { $ this -> _dependencies [ ] = '/' . Inflector :: underscore ( $ pluginName ) . '/js/app/components/' . $ file ; } } } }
docstring: Includes the needed components
  
  @return void
docstring_tokens: Includes the needed components