original_string: public function siteCampagnes($site_id)
      {
          if(config('newsletter.multi')) {
              $newsletters = $this->newsletter->getSite($site_id);
              return $newsletters->map(function ($newsletter, $key) {
                  return $newsletter->campagnes;
              })->flatten(1);
          }
  
          return null;
      }
code: public function siteCampagnes($site_id)
      {
          if(config('newsletter.multi')) {
              $newsletters = $this->newsletter->getSite($site_id);
              return $newsletters->map(function ($newsletter, $key) {
                  return $newsletter->campagnes;
              })->flatten(1);
          }
  
          return null;
      }
code_tokens: public function siteCampagnes ( $ site_id ) { if ( config ( 'newsletter.multi' ) ) { $ newsletters = $ this -> newsletter -> getSite ( $ site_id ) ; return $ newsletters -> map ( function ( $ newsletter , $ key ) { return $ newsletter -> campagnes ; } ) -> flatten ( 1 ) ; } return null ; }
docstring: All campagnes for site
docstring_tokens: All campagnes for site