You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: clients/algoliasearch-client-php/lib/Api/AnalyticsClient.php
-80Lines changed: 0 additions & 80 deletions
Original file line number
Diff line number
Diff line change
@@ -759,16 +759,6 @@ public function getSearchesNoClicks($index, $startDate = null, $endDate = null,
759
759
'Parameter `index` is required when calling `getSearchesNoClicks`.'
760
760
);
761
761
}
762
-
if (null !== $limit && $limit > 1000) {
763
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getSearchesNoClicks, must be smaller than or equal to 1000.');
764
-
}
765
-
766
-
if (null !== $offset && $offset > 1000) {
767
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoClicks, must be smaller than or equal to 1000.');
768
-
}
769
-
if (null !== $offset && $offset < 0) {
770
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoClicks, must be bigger than or equal to 0.');
771
-
}
772
762
773
763
$resourcePath = '/2/searches/noClicks';
774
764
$queryParameters = [];
@@ -826,16 +816,6 @@ public function getSearchesNoResults($index, $startDate = null, $endDate = null,
826
816
'Parameter `index` is required when calling `getSearchesNoResults`.'
827
817
);
828
818
}
829
-
if (null !== $limit && $limit > 1000) {
830
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getSearchesNoResults, must be smaller than or equal to 1000.');
831
-
}
832
-
833
-
if (null !== $offset && $offset > 1000) {
834
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoResults, must be smaller than or equal to 1000.');
835
-
}
836
-
if (null !== $offset && $offset < 0) {
837
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getSearchesNoResults, must be bigger than or equal to 0.');
838
-
}
839
819
840
820
$resourcePath = '/2/searches/noResults';
841
821
$queryParameters = [];
@@ -925,16 +905,6 @@ public function getTopCountries($index, $startDate = null, $endDate = null, $lim
925
905
'Parameter `index` is required when calling `getTopCountries`.'
926
906
);
927
907
}
928
-
if (null !== $limit && $limit > 1000) {
929
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopCountries, must be smaller than or equal to 1000.');
930
-
}
931
-
932
-
if (null !== $offset && $offset > 1000) {
933
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopCountries, must be smaller than or equal to 1000.');
934
-
}
935
-
if (null !== $offset && $offset < 0) {
936
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopCountries, must be bigger than or equal to 0.');
937
-
}
938
908
939
909
$resourcePath = '/2/countries';
940
910
$queryParameters = [];
@@ -993,16 +963,6 @@ public function getTopFilterAttributes($index, $search = null, $startDate = null
993
963
'Parameter `index` is required when calling `getTopFilterAttributes`.'
994
964
);
995
965
}
996
-
if (null !== $limit && $limit > 1000) {
997
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFilterAttributes, must be smaller than or equal to 1000.');
998
-
}
999
-
1000
-
if (null !== $offset && $offset > 1000) {
1001
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterAttributes, must be smaller than or equal to 1000.');
1002
-
}
1003
-
if (null !== $offset && $offset < 0) {
1004
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterAttributes, must be bigger than or equal to 0.');
1005
-
}
1006
966
1007
967
$resourcePath = '/2/filters';
1008
968
$queryParameters = [];
@@ -1072,16 +1032,6 @@ public function getTopFilterForAttribute($attribute, $index, $search = null, $st
1072
1032
'Parameter `index` is required when calling `getTopFilterForAttribute`.'
1073
1033
);
1074
1034
}
1075
-
if (null !== $limit && $limit > 1000) {
1076
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFilterForAttribute, must be smaller than or equal to 1000.');
1077
-
}
1078
-
1079
-
if (null !== $offset && $offset > 1000) {
1080
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterForAttribute, must be smaller than or equal to 1000.');
1081
-
}
1082
-
if (null !== $offset && $offset < 0) {
1083
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFilterForAttribute, must be bigger than or equal to 0.');
1084
-
}
1085
1035
1086
1036
$resourcePath = '/2/filters/{attribute}';
1087
1037
$queryParameters = [];
@@ -1153,16 +1103,6 @@ public function getTopFiltersNoResults($index, $search = null, $startDate = null
1153
1103
'Parameter `index` is required when calling `getTopFiltersNoResults`.'
1154
1104
);
1155
1105
}
1156
-
if (null !== $limit && $limit > 1000) {
1157
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopFiltersNoResults, must be smaller than or equal to 1000.');
1158
-
}
1159
-
1160
-
if (null !== $offset && $offset > 1000) {
1161
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFiltersNoResults, must be smaller than or equal to 1000.');
1162
-
}
1163
-
if (null !== $offset && $offset < 0) {
1164
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopFiltersNoResults, must be bigger than or equal to 0.');
1165
-
}
1166
1106
1167
1107
$resourcePath = '/2/filters/noResults';
1168
1108
$queryParameters = [];
@@ -1227,16 +1167,6 @@ public function getTopHits($index, $search = null, $clickAnalytics = null, $reve
1227
1167
'Parameter `index` is required when calling `getTopHits`.'
1228
1168
);
1229
1169
}
1230
-
if (null !== $limit && $limit > 1000) {
1231
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopHits, must be smaller than or equal to 1000.');
1232
-
}
1233
-
1234
-
if (null !== $offset && $offset > 1000) {
1235
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopHits, must be smaller than or equal to 1000.');
1236
-
}
1237
-
if (null !== $offset && $offset < 0) {
1238
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopHits, must be bigger than or equal to 0.');
1239
-
}
1240
1170
1241
1171
$resourcePath = '/2/hits';
1242
1172
$queryParameters = [];
@@ -1310,16 +1240,6 @@ public function getTopSearches($index, $clickAnalytics = null, $revenueAnalytics
1310
1240
'Parameter `index` is required when calling `getTopSearches`.'
1311
1241
);
1312
1242
}
1313
-
if (null !== $limit && $limit > 1000) {
1314
-
thrownew \InvalidArgumentException('invalid value for "$limit" when calling AnalyticsClient.getTopSearches, must be smaller than or equal to 1000.');
1315
-
}
1316
-
1317
-
if (null !== $offset && $offset > 1000) {
1318
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopSearches, must be smaller than or equal to 1000.');
1319
-
}
1320
-
if (null !== $offset && $offset < 0) {
1321
-
thrownew \InvalidArgumentException('invalid value for "$offset" when calling AnalyticsClient.getTopSearches, must be bigger than or equal to 0.');
0 commit comments