original_string: public function modules()
      {
          $modules = new Collection;
  
          // Make meta module
          $modules->push(
              $this->makeMetaModuleInstance()
          );
  
          // Make model modules
          foreach ($this->repository->getAll() as $modelInformation) {
              $modules->push(
                  $this->makeModuleInstance($modelInformation)
              );
          }
  
          return $modules;
      }
code: public function modules()
      {
          $modules = new Collection;
  
          // Make meta module
          $modules->push(
              $this->makeMetaModuleInstance()
          );
  
          // Make model modules
          foreach ($this->repository->getAll() as $modelInformation) {
              $modules->push(
                  $this->makeModuleInstance($modelInformation)
              );
          }
  
          return $modules;
      }
code_tokens: public function modules ( ) { $ modules = new Collection ; // Make meta module $ modules -> push ( $ this -> makeMetaModuleInstance ( ) ) ; // Make model modules foreach ( $ this -> repository -> getAll ( ) as $ modelInformation ) { $ modules -> push ( $ this -> makeModuleInstance ( $ modelInformation ) ) ; } return $ modules ; }
docstring: Generates and returns module instances.
  
  @return Collection|ModuleInterface[]
docstring_tokens: Generates and returns module instances .