@@ -56,24 +56,17 @@ class CustomDeduplicateCommand extends DeduplicateCommand
5656
5757 /**
5858 * DeduplicateCommand constructor.
59- *
60- * @param ContactDeduper $contactDeduper
61- * @param TranslatorInterface $translator
62- * @param NotificationModel $notificationModel
63- * @param UserModel $userModel
64- * @param IntegrationHelper $integrationHelper
65- * @param Logger $logger
6659 */
6760 public function __construct (ContactDeduper $ contactDeduper , TranslatorInterface $ translator , NotificationModel $ notificationModel , UserModel $ userModel , IntegrationHelper $ integrationHelper , Logger $ logger )
6861 {
6962 parent ::__construct ($ contactDeduper , $ translator );
7063
7164 $ this ->notificationModel = $ notificationModel ;
72- $ this ->translator = $ translator ;
73- $ this ->contactDeduper = $ contactDeduper ;
74- $ this ->userModel = $ userModel ;
65+ $ this ->translator = $ translator ;
66+ $ this ->contactDeduper = $ contactDeduper ;
67+ $ this ->userModel = $ userModel ;
7568 $ this ->integrationHelper = $ integrationHelper ;
76- $ this ->logger = $ logger ;
69+ $ this ->logger = $ logger ;
7770 }
7871
7972 public function configure ()
@@ -103,10 +96,6 @@ public function configure()
10396 );
10497 }
10598
106- /**
107- * @param InputInterface $input
108- * @param OutputInterface $output
109- */
11099 protected function execute (InputInterface $ input , OutputInterface $ output )
111100 {
112101 $ integration = $ this ->integrationHelper ->getIntegrationObject ('CustomDeduplicate ' );
@@ -117,19 +106,20 @@ protected function execute(InputInterface $input, OutputInterface $output)
117106 );
118107 $ this ->sendDisabledNotification ();
119108 $ this ->logger ->debug ($ message );
109+
120110 return 0 ;
121111 }
122112
123113 $ notify = (bool ) $ input ->getOption ('notify ' );
124- $ key = __CLASS__ ;
114+ $ key = __CLASS__ ;
125115 if (!$ this ->checkRunStatus ($ input , $ output , $ key )) {
126116 if ($ notify ) {
127117 $ this ->sendProgressNotification ();
128118 }
119+
129120 return 0 ;
130121 }
131122
132-
133123 if ($ notify ) {
134124 $ this ->sendStartNotification ();
135125 }
@@ -151,6 +141,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
151141 if ($ notify ) {
152142 $ this ->sendEndNotification ($ count );
153143 }
144+
154145 return 0 ;
155146 }
156147
@@ -188,7 +179,7 @@ private function sendProgressNotification()
188179 private function sendEndNotification ($ count )
189180 {
190181 $ this ->notificationModel ->addNotification (
191- $ this ->translator ->trans ('plugin.custom.deduplication.notification.result.count ' ,[
182+ $ this ->translator ->trans ('plugin.custom.deduplication.notification.result.count ' , [
192183 '%count% ' => $ count ,
193184 ]),
194185
0 commit comments