original_string: private function generateFormData ()
      {
          $files = $this->getConfigFiles ();
          $formDataHolder = [];
  
  
          if (!empty($files)) {
              foreach ($files as $file) {
  
                  $file = json_decode (file_get_contents ($file), true);
  
                  if (isset($file['formData']))
                      $formDataHolder = array_merge ($formDataHolder, $file['formData']);
              }
          }
  
          Cache::forget ('hc-forms');
          Cache::put ('hc-forms', $formDataHolder, Carbon::now ()->addMonth ());
      }
code: private function generateFormData ()
      {
          $files = $this->getConfigFiles ();
          $formDataHolder = [];
  
  
          if (!empty($files)) {
              foreach ($files as $file) {
  
                  $file = json_decode (file_get_contents ($file), true);
  
                  if (isset($file['formData']))
                      $formDataHolder = array_merge ($formDataHolder, $file['formData']);
              }
          }
  
          Cache::forget ('hc-forms');
          Cache::put ('hc-forms', $formDataHolder, Carbon::now ()->addMonth ());
      }
code_tokens: private function generateFormData ( ) { $ files = $ this -> getConfigFiles ( ) ; $ formDataHolder = [ ] ; if ( ! empty ( $ files ) ) { foreach ( $ files as $ file ) { $ file = json_decode ( file_get_contents ( $ file ) , true ) ; if ( isset ( $ file [ 'formData' ] ) ) $ formDataHolder = array_merge ( $ formDataHolder , $ file [ 'formData' ] ) ; } } Cache :: forget ( 'hc-forms' ) ; Cache :: put ( 'hc-forms' , $ formDataHolder , Carbon :: now ( ) -> addMonth ( ) ) ; }
docstring: Generating form data
docstring_tokens: Generating form data