original_string: private function configureSourceLocale()
      {
          $em = $this->app->make(EntityManager::class);
          /* @var EntityManager $em */
          $repo = $this->app->make(LocaleRepository::class);
          if ($repo->findOneBy(['isSource' => true]) === null) {
              $locale = LocaleEntity::create('en_US');
              $locale
                  ->setIsApproved(true)
                  ->setIsSource(true)
              ;
              $em->persist($locale);
              $em->flush($locale);
          }
      }
code: private function configureSourceLocale()
      {
          $em = $this->app->make(EntityManager::class);
          /* @var EntityManager $em */
          $repo = $this->app->make(LocaleRepository::class);
          if ($repo->findOneBy(['isSource' => true]) === null) {
              $locale = LocaleEntity::create('en_US');
              $locale
                  ->setIsApproved(true)
                  ->setIsSource(true)
              ;
              $em->persist($locale);
              $em->flush($locale);
          }
      }
code_tokens: private function configureSourceLocale ( ) { $ em = $ this -> app -> make ( EntityManager :: class ) ; /* @var EntityManager $em */ $ repo = $ this -> app -> make ( LocaleRepository :: class ) ; if ( $ repo -> findOneBy ( [ 'isSource' => true ] ) === null ) { $ locale = LocaleEntity :: create ( 'en_US' ) ; $ locale -> setIsApproved ( true ) -> setIsSource ( true ) ; $ em -> persist ( $ locale ) ; $ em -> flush ( $ locale ) ; } }
docstring: Configure the source locale.
docstring_tokens: Configure the source locale .