@@ -63,12 +63,12 @@ public static function doMailinglistSubscribe(GenericEvent $event)
6363 /**
6464 * @param \Symfony\Component\EventDispatcher\GenericEvent $event
6565 */
66- public static function getSettings (GenericEvent $ event )
67- {
68- /**
69- * @var \MyAdmin\Settings $settings
70- **/
71- $ settings = $ event ->getSubject ();
66+ public static function getSettings (GenericEvent $ event )
67+ {
68+ /**
69+ * @var \MyAdmin\Settings $settings
70+ **/
71+ $ settings = $ event ->getSubject ();
7272 $ settings ->add_dropdown_setting (_ ('Accounts ' ), _ ('Sendy ' ), 'sendy_enable ' , _ ('Enable Sendy ' ), _ ('Enable/Disable Sendy Mailing on Account Signup ' ), (defined ('SENDY_ENABLE ' ) ? SENDY_ENABLE : '0 ' ), ['0 ' , '1 ' ], ['No ' , 'Yes ' ]);
7373 $ settings ->add_text_setting (_ ('Accounts ' ), _ ('Sendy ' ), 'sendy_api_key ' , _ ('API Key ' ), _ ('API Key ' ), (defined ('SENDY_API_KEY ' ) ? SENDY_API_KEY : '' ));
7474 $ settings ->add_text_setting (_ ('Accounts ' ), _ ('Sendy ' ), 'sendy_list_id ' , _ ('List ID ' ), _ ('List ID ' ), (defined ('SENDY_LIST_ID ' ) ? SENDY_LIST_ID : '' ));
@@ -107,14 +107,14 @@ public static function doEmailSetup($email, $params = false)
107107 'content ' => $ postdata
108108 ]
109109 ];
110- \StatisticClient::tick ('Sendy ' , 'subscribe ' );
110+ \StatisticClient::tick ('Sendy ' , 'subscribe ' );
111111 $ context = stream_context_create ($ opts );
112112 $ result = trim (file_get_contents (SENDY_APIURL .'/subscribe ' , false , $ context ));
113113 if ($ result != '1 ' && $ result != 'Already subscribed. ' ) {
114- \StatisticClient::report ('Sendy ' , 'subscribe ' , false , 100 , $ result , STATISTICS_SERVER );
114+ \StatisticClient::report ('Sendy ' , 'subscribe ' , false , 100 , $ result , STATISTICS_SERVER );
115115 myadmin_log ('accounts ' , 'info ' , "Sendy Response: {$ result }" , __LINE__ , __FILE__ );
116116 } else {
117- \StatisticClient::report ('Sendy ' , 'subscribe ' , true , 0 , '' , STATISTICS_SERVER );
118- }
117+ \StatisticClient::report ('Sendy ' , 'subscribe ' , true , 0 , '' , STATISTICS_SERVER );
118+ }
119119 }
120120}
0 commit comments