Completed
Push — master ( a75ba6...7fec02 )
by Nicolaas
05:19
created
code/api/CampaignMonitorAPIConnector.php 1 patch
Doc Comments   +18 added lines, -10 removed lines patch added patch discarded remove patch
@@ -80,6 +80,7 @@  discard block
 block discarded – undo
80 80
      * turn debug on or off
81 81
      *
82 82
      * @param Boolean
83
+     * @param boolean $b
83 84
      */
84 85
     public function setDebug($b)
85 86
     {
@@ -160,6 +161,8 @@  discard block
 block discarded – undo
160 161
     /**
161 162
      * returns the result or NULL in case of an error
162 163
      * @param CS_REST_Wrapper_Result
164
+     * @param CS_REST_Wrapper_Result $result
165
+     * @param string $apiCall
163 166
      * @return Mixed | Null
164 167
      */
165 168
     protected function returnResult($result, $apiCall, $description)
@@ -495,7 +498,8 @@  discard block
 block discarded – undo
495 498
      * @param string $listID - list ID
496 499
      * @param string $type - type of custom field
497 500
      * @param string $title - field type
498
-     * @param array $options - options for dropdown field type
501
+     * @param string[] $options - options for dropdown field type
502
+     * @param boolean $visible
499 503
      *
500 504
      * @return CS_REST_Wrapper_Result A successful response will be the key of the newly created custom field
501 505
      */
@@ -604,7 +608,7 @@  discard block
 block discarded – undo
604 608
      * Gets all active subscribers added since the given date
605 609
      *
606 610
      * @param Int $listID
607
-     * @param string $daysAgo The date to start getting subscribers from
611
+     * @param integer $daysAgo The date to start getting subscribers from
608 612
      * @param int $page The page number to get
609 613
      * @param int $pageSize The number of records per page
610 614
      * @param string $sortByField ('EMAIL', 'NAME', 'DATE')
@@ -657,7 +661,7 @@  discard block
 block discarded – undo
657 661
      * Gets all unconfirmed subscribers added since the given date
658 662
      *
659 663
      * @param Int $listID
660
-     * @param string $daysAgo The date to start getting subscribers from
664
+     * @param integer $daysAgo The date to start getting subscribers from
661 665
      * @param int $page The page number to get
662 666
      * @param int $pageSize The number of records per page
663 667
      * @param string $sortByField ('EMAIL', 'NAME', 'DATE')
@@ -710,7 +714,7 @@  discard block
 block discarded – undo
710 714
      * Gets all bounced subscribers who have bounced out since the given date
711 715
      *
712 716
      * @param Int $listID
713
-     * @param string $daysAgo The date to start getting subscribers from
717
+     * @param integer $daysAgo The date to start getting subscribers from
714 718
      * @param int $page The page number to get
715 719
      * @param int $pageSize The number of records per page
716 720
      * @param string $sortByField ('EMAIL', 'NAME', 'DATE')
@@ -764,7 +768,7 @@  discard block
 block discarded – undo
764 768
      * Gets all unsubscribed subscribers who have unsubscribed since the given date
765 769
      *
766 770
      * @param Int $listID
767
-     * @param string $daysAgo The date to start getting subscribers from
771
+     * @param integer $daysAgo The date to start getting subscribers from
768 772
      * @param int $page The page number to get
769 773
      * @param int $pageSize The number of records per page
770 774
      * @param string $sortByField ('EMAIL', 'NAME', 'DATE')
@@ -823,7 +827,8 @@  discard block
 block discarded – undo
823 827
      * @param string $confirmationSuccessPage - The page to redirect subscribers to when they confirm their subscription
824 828
      * @param string $unsubscribeSetting - Unsubscribe setting must be CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS or CS_REST_LIST_UNSUBSCRIBE_SETTING_ONLY_THIS_LIST.  See the documentation for details: http://www.campaignmonitor.com/api/lists/#creating_a_list
825 829
      * @param boolean $addUnsubscribesToSuppList -  When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether unsubscribes from this list should be added to the suppression list.
826
-     * @param boolean $acrubActiveWithSuppList - When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether active subscribers should be scrubbed against the suppression list.
830
+     * @param boolean $scrubActiveWithSuppList - When UnsubscribeSetting is CS_REST_LIST_UNSUBSCRIBE_SETTING_ALL_CLIENT_LISTS, whether active subscribers should be scrubbed against the suppression list.
831
+     * @param CS_REST_Wrapper_Result $listID
827 832
      *
828 833
      * @return CS_REST_Wrapper_Result A successful response will be empty
829 834
      */
@@ -1133,7 +1138,7 @@  discard block
 block discarded – undo
1133 1138
      * Gets all unsubscribes recorded for a campaign since the provided date
1134 1139
      *
1135 1140
      * @param int $campaignID ID of the Campaign
1136
-     * @param string $daysAgo The date to start getting subscribers from
1141
+     * @param integer $daysAgo The date to start getting subscribers from
1137 1142
      * @param int $page The page number to get
1138 1143
      * @param int $pageSize The number of records per page
1139 1144
      * @param string $sortByField ('EMAIL', 'NAME', 'DATE')
@@ -1239,7 +1244,7 @@  discard block
 block discarded – undo
1239 1244
      * @param Array $customFields
1240 1245
      * @param array $customFields The subscriber details to use during creation.
1241 1246
      * @param boolean $resubscribe Whether we should resubscribe this subscriber if they already exist in the list
1242
-     * @param boolean $RestartSubscriptionBasedAutoResponders Whether we should restart subscription based auto responders which are sent when the subscriber first subscribes to a list.
1247
+     * @param boolean $restartSubscriptionBasedAutoResponders Whether we should restart subscription based auto responders which are sent when the subscriber first subscribes to a list.
1243 1248
      *
1244 1249
      * NOTE that for the custom fields they need to be formatted like this:
1245 1250
      *    Array(
@@ -1353,9 +1358,9 @@  discard block
 block discarded – undo
1353 1358
      * given email not existing in the list.
1354 1359
      *
1355 1360
      * @param Int $listID
1356
-     * @param ArraySet $memberSet - list of mebers
1361
+     * @param ArraySet $membersSet - list of mebers
1357 1362
      * @param array $customFields The subscriber details to use during creation. Each array item needs to have the same key as the member ID - e.g. array( 123 => array( [custom fields here] ), 456 => array( [custom fields here] ) )
1358
-     * @param $resubscribe Whether we should resubscribe any existing subscribers
1363
+     * @param boolean $resubscribe Whether we should resubscribe any existing subscribers
1359 1364
      * @param $queueSubscriptionBasedAutoResponders By default, subscription based auto responders do not trigger during an import. Pass a value of true to override this behaviour
1360 1365
      * @param $restartSubscriptionBasedAutoResponders By default, subscription based auto responders will not be restarted
1361 1366
      *
@@ -1420,6 +1425,7 @@  discard block
 block discarded – undo
1420 1425
     /**
1421 1426
      * @param Int $listID
1422 1427
      * @param Member | String $member - email address or Member Object
1428
+     * @param DataObject|null $member
1423 1429
      *
1424 1430
      * @return CS_REST_Wrapper_Result A successful response will be empty
1425 1431
      */
@@ -1518,6 +1524,7 @@  discard block
 block discarded – undo
1518 1524
      *
1519 1525
      * @param Int $listID
1520 1526
      * @param Member | String $member
1527
+     * @param DataObject|null $member
1521 1528
      *
1522 1529
      * @return Boolean
1523 1530
      */
@@ -1587,6 +1594,7 @@  discard block
 block discarded – undo
1587 1594
      *
1588 1595
      * @param Int $listID
1589 1596
      * @param Member | String $member
1597
+     * @param DataObject|null $member
1590 1598
      *
1591 1599
      * @return CS_REST_Wrapper_Result A successful response will be an object of the form
1592 1600
      * {
Please login to merge, or discard this patch.
code/CampaignMonitorSignupPage.php 1 patch
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -579,7 +579,6 @@  discard block
 block discarded – undo
579 579
 
580 580
     /**
581 581
      * action subscription form
582
-     * @param Array $array
583 582
      * @param Form $form
584 583
      *
585 584
      * return redirect
@@ -859,7 +858,7 @@  discard block
 block discarded – undo
859 858
      * same as $this->CampaignMonitorCampaigns()
860 859
      * but sorted correctly.
861 860
      *
862
-     * @return DataSet of CampaignMonitorCampaigns
861
+     * @return DataList|null of CampaignMonitorCampaigns
863 862
      */
864 863
     public function PreviousCampaignMonitorCampaigns()
865 864
     {
@@ -916,7 +915,7 @@  discard block
 block discarded – undo
916 915
     /**
917 916
      * returns a bunch of stats about a campaign
918 917
      * IF the user is an admin AND a campaign is selected
919
-     * @return String (html) | false
918
+     * @return null|false (html) | false
920 919
      */
921 920
     public function CampaignStats()
922 921
     {
Please login to merge, or discard this patch.
code/control/CampaignMonitorAPIConnector_TestController.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -64,6 +64,7 @@
 block discarded – undo
64 64
      * link for controller
65 65
      * we add baseURL to make it work for all set ups.
66 66
      * @var String
67
+     * @param string $action
67 68
      */
68 69
     public function Link($action = null)
69 70
     {
Please login to merge, or discard this patch.
code/decorators/CampaignMonitorMemberDOD.php 1 patch
Doc Comments   +1 added lines, -3 removed lines patch added patch discarded remove patch
@@ -146,8 +146,6 @@  discard block
 block discarded – undo
146 146
 
147 147
     /**
148 148
      * action subscription form
149
-     * @param CampaignMonitorSignUpPage $page
150
-     * @param Array $array
151 149
      * @param Form $form
152 150
      *
153 151
      * return string: can be subscribe / unsubscribe / error
@@ -207,7 +205,7 @@  discard block
 block discarded – undo
207 205
     /**
208 206
      * is this user currently signed up to one or more newsletters
209 207
      *
210
-     * @return Boolean
208
+     * @return boolean|null
211 209
      */
212 210
     public function IsCampaignMonitorSubscriber()
213 211
     {
Please login to merge, or discard this patch.
code/model/CampaignMonitorCampaignStyle.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     }
54 54
 
55 55
     /**
56
-     * @return array
56
+     * @return string[]
57 57
      */
58 58
     public function getFoldersToSearch()
59 59
     {
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @return array
73
+     * @return string[]
74 74
      */
75 75
     public function getCSSFoldersToSearch()
76 76
     {
Please login to merge, or discard this patch.