original_string: protected function getModuleByModel(Model $model)
      {
          /** @var ModuleManagerInterface $modules */
          $modules = app(ModuleManagerInterface::class);
  
          return $modules->getByAssociatedClass(get_class($model));
      }
code: protected function getModuleByModel(Model $model)
      {
          /** @var ModuleManagerInterface $modules */
          $modules = app(ModuleManagerInterface::class);
  
          return $modules->getByAssociatedClass(get_class($model));
      }
code_tokens: protected function getModuleByModel ( Model $ model ) { /** @var ModuleManagerInterface $modules */ $ modules = app ( ModuleManagerInterface :: class ) ; return $ modules -> getByAssociatedClass ( get_class ( $ model ) ) ; }
docstring: Returns the module for a given model.
  
  @param Model $model
  @return ModuleInterface|false
docstring_tokens: Returns the module for a given model .