original_string: public function createViews($config)
      {
          $this->fileService->mkdir($config['_path_views_'].'/'.$config['_lower_casePlural_'], 0777, true);
  
          $viewTemplates = 'Views';
  
          if ($config['bootstrap']) {
              $viewTemplates = 'BootstrapViews';
          }
  
          if ($config['semantic']) {
              $viewTemplates = 'SemanticViews';
          }
  
          $createdView = false;
  
          foreach (glob($config['template_source'].'/'.$viewTemplates.'/*') as $file) {
              $viewContents = $this->fileService->get($file);
              $basename = str_replace('txt', 'php', basename($file));
              foreach ($config as $key => $value) {
                  $viewContents = str_replace($key, $value, $viewContents);
              }
              $createdView = $this->putIfNotExists($config['_path_views_'].'/'.$config['_lower_casePlural_'].'/'.$basename, $viewContents);
          }
  
          return $createdView;
      }
code: public function createViews($config)
      {
          $this->fileService->mkdir($config['_path_views_'].'/'.$config['_lower_casePlural_'], 0777, true);
  
          $viewTemplates = 'Views';
  
          if ($config['bootstrap']) {
              $viewTemplates = 'BootstrapViews';
          }
  
          if ($config['semantic']) {
              $viewTemplates = 'SemanticViews';
          }
  
          $createdView = false;
  
          foreach (glob($config['template_source'].'/'.$viewTemplates.'/*') as $file) {
              $viewContents = $this->fileService->get($file);
              $basename = str_replace('txt', 'php', basename($file));
              foreach ($config as $key => $value) {
                  $viewContents = str_replace($key, $value, $viewContents);
              }
              $createdView = $this->putIfNotExists($config['_path_views_'].'/'.$config['_lower_casePlural_'].'/'.$basename, $viewContents);
          }
  
          return $createdView;
      }
code_tokens: public function createViews ( $ config ) { $ this -> fileService -> mkdir ( $ config [ '_path_views_' ] . '/' . $ config [ '_lower_casePlural_' ] , 0777 , true ) ; $ viewTemplates = 'Views' ; if ( $ config [ 'bootstrap' ] ) { $ viewTemplates = 'BootstrapViews' ; } if ( $ config [ 'semantic' ] ) { $ viewTemplates = 'SemanticViews' ; } $ createdView = false ; foreach ( glob ( $ config [ 'template_source' ] . '/' . $ viewTemplates . '/*' ) as $ file ) { $ viewContents = $ this -> fileService -> get ( $ file ) ; $ basename = str_replace ( 'txt' , 'php' , basename ( $ file ) ) ; foreach ( $ config as $ key => $ value ) { $ viewContents = str_replace ( $ key , $ value , $ viewContents ) ; } $ createdView = $ this -> putIfNotExists ( $ config [ '_path_views_' ] . '/' . $ config [ '_lower_casePlural_' ] . '/' . $ basename , $ viewContents ) ; } return $ createdView ; }
docstring: Create the views.
  
  @param array $config
  
  @return bool
docstring_tokens: Create the views .