original_string: protected function createPages()
      {
          $this->setCliMessage('Creating pages...');
  
          $pages = array();
  
          $pages[] = array(
              'title' => 'Contact us',
              'description' => 'Contact information',
          );
  
          $pages[] = array(
              'title' => 'Help',
              'description' => 'Help information. Coming soon...',
          );
  
          foreach ($pages as $page) {
  
              $page += array(
                  'status' => 1,
                  'user_id' => $this->context['user_id'],
                  'store_id' => $this->context['store_id']
              );
  
              $this->getPageModel()->add($page);
          }
      }
code: protected function createPages()
      {
          $this->setCliMessage('Creating pages...');
  
          $pages = array();
  
          $pages[] = array(
              'title' => 'Contact us',
              'description' => 'Contact information',
          );
  
          $pages[] = array(
              'title' => 'Help',
              'description' => 'Help information. Coming soon...',
          );
  
          foreach ($pages as $page) {
  
              $page += array(
                  'status' => 1,
                  'user_id' => $this->context['user_id'],
                  'store_id' => $this->context['store_id']
              );
  
              $this->getPageModel()->add($page);
          }
      }
code_tokens: protected function createPages ( ) { $ this -> setCliMessage ( 'Creating pages...' ) ; $ pages = array ( ) ; $ pages [ ] = array ( 'title' => 'Contact us' , 'description' => 'Contact information' , ) ; $ pages [ ] = array ( 'title' => 'Help' , 'description' => 'Help information. Coming soon...' , ) ; foreach ( $ pages as $ page ) { $ page += array ( 'status' => 1 , 'user_id' => $ this -> context [ 'user_id' ] , 'store_id' => $ this -> context [ 'store_id' ] ) ; $ this -> getPageModel ( ) -> add ( $ page ) ; } }
docstring: Creates default pages
docstring_tokens: Creates default pages