GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( fd5711...77a95b )
by Igor
09:00 queued 13s
created
src/Route4Me/V5/Members/DriverRatingApi/DriverReviewsResponse.php 1 patch
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -10,18 +10,18 @@
 block discarded – undo
10 10
  */
11 11
 class DriverReviewsResponse extends \Route4Me\Common
12 12
 {
13
-    /** An array of the driver reviews.
14
-     * @var DriverReview[] $data
15
-     */
16
-    public $data = [];
13
+	/** An array of the driver reviews.
14
+	 * @var DriverReview[] $data
15
+	 */
16
+	public $data = [];
17 17
 
18
-    /** The response pagination info.
19
-     * @var SimplePaginationData $simple_pagination
20
-     */
21
-    public $simple_pagination = [];
18
+	/** The response pagination info.
19
+	 * @var SimplePaginationData $simple_pagination
20
+	 */
21
+	public $simple_pagination = [];
22 22
 
23
-    /** Statistics by driver rating.
24
-     * @var TypeQuantity[] $total
25
-     */
26
-    public $total = [];
23
+	/** Statistics by driver rating.
24
+	 * @var TypeQuantity[] $total
25
+	 */
26
+	public $total = [];
27 27
 }
28 28
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/V5/Members/DriverRatingApi/SimplePaginationData.php 1 patch
Indentation   +42 added lines, -42 removed lines patch added patch discarded remove patch
@@ -10,46 +10,46 @@
 block discarded – undo
10 10
  */
11 11
 class SimplePaginationData extends \Route4Me\Common
12 12
 {
13
-    /** Driver reviews number per page.
14
-     * @var integer $per_page
15
-     */
16
-    public $per_page;
17
-
18
-    /** Current page number in the driver reviews collection.
19
-     * @var integer $current_page
20
-     */
21
-    public $current_page;
22
-
23
-    /** Path to the driver review addon.
24
-     * @var string $path
25
-     */
26
-    public $path;
27
-
28
-    /** Path to the first page of the driver reviews collection.
29
-     * @var string $first
30
-     */
31
-    public $first;
32
-
33
-    /** Path to the previous page of the driver reviews collection.
34
-     * @var string $prev
35
-     */
36
-    public $prev;
37
-
38
-    /** Path to the next page of the driver reviews collection.
39
-     * @var string $next
40
-     */
41
-    public $next;
42
-
43
-    public static function fromArray(array $params)
44
-    {
45
-        $spData = new self();
46
-
47
-        foreach ($params as $key => $value) {
48
-            if (property_exists($spData, $key)) {
49
-                $spData->{$key} = $value;
50
-            }
51
-        }
52
-
53
-        return $spData;
54
-    }
13
+	/** Driver reviews number per page.
14
+	 * @var integer $per_page
15
+	 */
16
+	public $per_page;
17
+
18
+	/** Current page number in the driver reviews collection.
19
+	 * @var integer $current_page
20
+	 */
21
+	public $current_page;
22
+
23
+	/** Path to the driver review addon.
24
+	 * @var string $path
25
+	 */
26
+	public $path;
27
+
28
+	/** Path to the first page of the driver reviews collection.
29
+	 * @var string $first
30
+	 */
31
+	public $first;
32
+
33
+	/** Path to the previous page of the driver reviews collection.
34
+	 * @var string $prev
35
+	 */
36
+	public $prev;
37
+
38
+	/** Path to the next page of the driver reviews collection.
39
+	 * @var string $next
40
+	 */
41
+	public $next;
42
+
43
+	public static function fromArray(array $params)
44
+	{
45
+		$spData = new self();
46
+
47
+		foreach ($params as $key => $value) {
48
+			if (property_exists($spData, $key)) {
49
+				$spData->{$key} = $value;
50
+			}
51
+		}
52
+
53
+		return $spData;
54
+	}
55 55
 }
56 56
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/V5/Members/DriverRatingApi/TypeQuantity.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,7 +9,7 @@
 block discarded – undo
9 9
  */
10 10
 class TypeQuantity extends \Route4Me\Common
11 11
 {
12
-    public $type;
12
+	public $type;
13 13
 
14
-    public $quantity;
14
+	public $quantity;
15 15
 }
16 16
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/V5/Members/DriverRatingApi/DriverReview.php 1 patch
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -9,43 +9,43 @@
 block discarded – undo
9 9
  */
10 10
 class DriverReview extends \Route4Me\Common
11 11
 {
12
-    /** Driver Rating ID
13
-     * @var string $rating_id
14
-     */
15
-    public $rating_id;
16
-
17
-    /** The tracking number of the route destination
18
-     * @var string $tracking_number
19
-     */
20
-    public $tracking_number;
21
-
22
-    /**  review the driver got
23
-     * @var string $review
24
-     */
25
-    public $review;
26
-
27
-    /** The rating assigned to the driver.
28
-     * Available values: 1,2,3,4
29
-     * @var integer $rating
30
-     */
31
-    public $rating;
32
-
33
-    /** When the review was created.
34
-     * @var string $added_at
35
-     */
36
-    public $added_at;
37
-
38
-    public static function fromArray(array $params)
39
-    {
40
-        $driverReview = new self();
41
-
42
-        foreach ($params as $key => $value) {
43
-            if (property_exists($driverReview, $key)) {
44
-                $driverReview->{$key} = $value;
45
-            }
46
-        }
47
-
48
-        return $driverReview;
49
-    }
12
+	/** Driver Rating ID
13
+	 * @var string $rating_id
14
+	 */
15
+	public $rating_id;
16
+
17
+	/** The tracking number of the route destination
18
+	 * @var string $tracking_number
19
+	 */
20
+	public $tracking_number;
21
+
22
+	/**  review the driver got
23
+	 * @var string $review
24
+	 */
25
+	public $review;
26
+
27
+	/** The rating assigned to the driver.
28
+	 * Available values: 1,2,3,4
29
+	 * @var integer $rating
30
+	 */
31
+	public $rating;
32
+
33
+	/** When the review was created.
34
+	 * @var string $added_at
35
+	 */
36
+	public $added_at;
37
+
38
+	public static function fromArray(array $params)
39
+	{
40
+		$driverReview = new self();
41
+
42
+		foreach ($params as $key => $value) {
43
+			if (property_exists($driverReview, $key)) {
44
+				$driverReview->{$key} = $value;
45
+			}
46
+		}
47
+
48
+		return $driverReview;
49
+	}
50 50
 
51 51
 }
52 52
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/V5/Members/TamManagementApi/TeamResponse.php 1 patch
Indentation   +178 added lines, -178 removed lines patch added patch discarded remove patch
@@ -10,183 +10,183 @@
 block discarded – undo
10 10
  */
11 11
 class TeamResponse extends \Route4Me\Common
12 12
 {
13
-    /** The member ID
14
-     * @var integer $member_id
15
-     */
16
-    public $member_id;
17
-
18
-    /** The user's account owner ID
19
-     * @var integer $OWNER_MEMBER_ID
20
-     */
21
-    public $OWNER_MEMBER_ID;
22
-
23
-    /** User's first name
24
-     * @var string $member_first_name
25
-     */
26
-    public $member_first_name;
27
-
28
-    /** User's last name
29
-     * @var string $member_last_name
30
-     */
31
-    public $member_last_name;
32
-
33
-    /** User's email
34
-     * @var string $member_email
35
-     */
36
-    public $member_email;
37
-
38
-    /** User's phone number
39
-     * @var string $member_phone
40
-     */
41
-    public $member_phone;
42
-
43
-    /** Member's company name
44
-     * @var string $member_company
45
-     */
46
-    public $member_company;
47
-
48
-    /** Birthdate of the user.
49
-     * @var string $date_of_birth
50
-     */
51
-    public $date_of_birth;
52
-
53
-    /** Registration state ID of a user
54
-     * @var string $user_reg_state_id
55
-     */
56
-    public $user_reg_state_id;
57
-
58
-    /** Registration country ID of a user
59
-     * @var string $user_reg_country_id
60
-     */
61
-    public $user_reg_country_id;
62
-
63
-    /** A link to the user's picture
64
-     * @var string $member_picture
65
-     */
66
-    public $member_picture;
67
-
68
-    /** Member type. Available values:
69
-     * <para>PRIMARY_ACCOUNT, SUB_ACCOUNT_ADMIN, SUB_ACCOUNT_REGIONAL_MANAGER,</para>
70
-     * <para>SUB_ACCOUNT_DISPATCHER, SUB_ACCOUNT_PLANNER, SUB_ACCOUNT_DRIVER</para>
71
-     * @var string $member_type
72
-     */
73
-    public $member_type;
74
-
75
-    /** If true, the routed addresses will be hidden.
76
-     * @var boolean $HIDE_ROUTED_ADDRESSES
77
-     */
78
-    public $HIDE_ROUTED_ADDRESSES;
79
-
80
-    /** If true, the visited addresses will be hidden.
81
-     * @var boolean $HIDE_VISITED_ADDRESSES
82
-     */
83
-    public $HIDE_VISITED_ADDRESSES;
84
-
85
-    /** If true, the nonfuture routes will be hidden.
86
-     * @var boolean $HIDE_NONFUTURE_ROUTES
87
-     */
88
-    public $HIDE_NONFUTURE_ROUTES;
89
-
90
-    /** If true, the user has read-only access type.
91
-     * @var boolean $READONLY_USER
92
-     */
93
-    public $READONLY_USER;
94
-
95
-    /** If true, the global address book contacts
96
-     * are visible in a user account.
97
-     * @var boolean $SHOW_SUSR_ADDR
98
-     */
99
-    public $SHOW_SUSR_ADDR;
100
-
101
-    /** If true, the global orders are visible in a user account.
102
-     * @var boolean $SHOW_SUSR_ORDERS
103
-     */
104
-    public $SHOW_SUSR_ORDERS;
105
-
106
-    /** If true, all drivers are visible to the user.
107
-     * @var boolean $SHOW_ALL_DRIVERS
108
-     */
109
-    public $SHOW_ALL_DRIVERS;
110
-
111
-    /** If true, all vehicles are visible to the user.
112
-     * @var boolean $SHOW_ALL_VEHICLES
113
-     */
114
-    public $SHOW_ALL_VEHICLES;
115
-
116
-    /** Allowed sub-member types in the user's account.
117
-     * Available array item values:
118
-     * "SUB_ACCOUNT_DRIVER", "SUB_ACCOUNT_DISPATCHER", "SUB_ACCOUNT_PLANNER",
119
-     * "SUB_ACCOUNT_ANALYST", "SUB_ACCOUNT_ADMIN", "SUB_ACCOUNT_REGIONAL_MANAGER"
120
-     * @var string[] $allowed_submember_types
121
-     */
122
-    public $allowed_submember_types;
123
-
124
-    /** If true, the user can edit the account data.
125
-     * @var boolean $can_edit
126
-     */
127
-    public $can_edit;
128
-
129
-    /** If true, the user can delete the account data.
130
-     * @var boolean $can_delete
131
-     */
132
-    public $can_delete;
133
-
134
-    /** The user's custom data
135
-     * @var Array $custom_data
136
-     */
137
-    public $custom_data;
138
-
139
-    /** Hourly rate of a user
140
-     * @var double $DriverHourlyRate
141
-     */
142
-    public $DriverHourlyRate;
143
-
144
-    /** Vendor ID
145
-     * @var string $vendor_id
146
-     */
147
-    public $vendor_id;
148
-
149
-    /** Driving rate of a user.
150
-     * @var double $driving_rate
151
-     */
152
-    public $driving_rate;
153
-
154
-    /** Working rate of a user.
155
-     * @var double $working_rate
156
-     */
157
-    public $working_rate;
158
-
159
-    /** Mile rate of a user.
160
-     * @var double $mile_rate
161
-     */
162
-    public $mile_rate;
163
-
164
-    /** Mile rate of a user.
165
-     * @var double $idling_rate
166
-     */
167
-    public $idling_rate;
168
-
169
-    /** Display maximum_routes number of future days.
170
-     * @var integer $display_max_routes_future_days
171
-     */
172
-    public $display_max_routes_future_days;
173
-
174
-    /** Member's location timezone
175
-     * @var string $timezone
176
-     */
177
-    public $timezone;
178
-
179
-    public static function fromArray(array $params)
180
-    {
181
-        $teamtResponse = new self();
182
-
183
-        foreach ($params as $key => $value) {
184
-            if (property_exists($teamtResponse, $key)) {
185
-                $teamtResponse->{$key} = $value;
186
-            }
187
-        }
188
-
189
-        return $teamtResponse;
190
-    }
13
+	/** The member ID
14
+	 * @var integer $member_id
15
+	 */
16
+	public $member_id;
17
+
18
+	/** The user's account owner ID
19
+	 * @var integer $OWNER_MEMBER_ID
20
+	 */
21
+	public $OWNER_MEMBER_ID;
22
+
23
+	/** User's first name
24
+	 * @var string $member_first_name
25
+	 */
26
+	public $member_first_name;
27
+
28
+	/** User's last name
29
+	 * @var string $member_last_name
30
+	 */
31
+	public $member_last_name;
32
+
33
+	/** User's email
34
+	 * @var string $member_email
35
+	 */
36
+	public $member_email;
37
+
38
+	/** User's phone number
39
+	 * @var string $member_phone
40
+	 */
41
+	public $member_phone;
42
+
43
+	/** Member's company name
44
+	 * @var string $member_company
45
+	 */
46
+	public $member_company;
47
+
48
+	/** Birthdate of the user.
49
+	 * @var string $date_of_birth
50
+	 */
51
+	public $date_of_birth;
52
+
53
+	/** Registration state ID of a user
54
+	 * @var string $user_reg_state_id
55
+	 */
56
+	public $user_reg_state_id;
57
+
58
+	/** Registration country ID of a user
59
+	 * @var string $user_reg_country_id
60
+	 */
61
+	public $user_reg_country_id;
62
+
63
+	/** A link to the user's picture
64
+	 * @var string $member_picture
65
+	 */
66
+	public $member_picture;
67
+
68
+	/** Member type. Available values:
69
+	 * <para>PRIMARY_ACCOUNT, SUB_ACCOUNT_ADMIN, SUB_ACCOUNT_REGIONAL_MANAGER,</para>
70
+	 * <para>SUB_ACCOUNT_DISPATCHER, SUB_ACCOUNT_PLANNER, SUB_ACCOUNT_DRIVER</para>
71
+	 * @var string $member_type
72
+	 */
73
+	public $member_type;
74
+
75
+	/** If true, the routed addresses will be hidden.
76
+	 * @var boolean $HIDE_ROUTED_ADDRESSES
77
+	 */
78
+	public $HIDE_ROUTED_ADDRESSES;
79
+
80
+	/** If true, the visited addresses will be hidden.
81
+	 * @var boolean $HIDE_VISITED_ADDRESSES
82
+	 */
83
+	public $HIDE_VISITED_ADDRESSES;
84
+
85
+	/** If true, the nonfuture routes will be hidden.
86
+	 * @var boolean $HIDE_NONFUTURE_ROUTES
87
+	 */
88
+	public $HIDE_NONFUTURE_ROUTES;
89
+
90
+	/** If true, the user has read-only access type.
91
+	 * @var boolean $READONLY_USER
92
+	 */
93
+	public $READONLY_USER;
94
+
95
+	/** If true, the global address book contacts
96
+	 * are visible in a user account.
97
+	 * @var boolean $SHOW_SUSR_ADDR
98
+	 */
99
+	public $SHOW_SUSR_ADDR;
100
+
101
+	/** If true, the global orders are visible in a user account.
102
+	 * @var boolean $SHOW_SUSR_ORDERS
103
+	 */
104
+	public $SHOW_SUSR_ORDERS;
105
+
106
+	/** If true, all drivers are visible to the user.
107
+	 * @var boolean $SHOW_ALL_DRIVERS
108
+	 */
109
+	public $SHOW_ALL_DRIVERS;
110
+
111
+	/** If true, all vehicles are visible to the user.
112
+	 * @var boolean $SHOW_ALL_VEHICLES
113
+	 */
114
+	public $SHOW_ALL_VEHICLES;
115
+
116
+	/** Allowed sub-member types in the user's account.
117
+	 * Available array item values:
118
+	 * "SUB_ACCOUNT_DRIVER", "SUB_ACCOUNT_DISPATCHER", "SUB_ACCOUNT_PLANNER",
119
+	 * "SUB_ACCOUNT_ANALYST", "SUB_ACCOUNT_ADMIN", "SUB_ACCOUNT_REGIONAL_MANAGER"
120
+	 * @var string[] $allowed_submember_types
121
+	 */
122
+	public $allowed_submember_types;
123
+
124
+	/** If true, the user can edit the account data.
125
+	 * @var boolean $can_edit
126
+	 */
127
+	public $can_edit;
128
+
129
+	/** If true, the user can delete the account data.
130
+	 * @var boolean $can_delete
131
+	 */
132
+	public $can_delete;
133
+
134
+	/** The user's custom data
135
+	 * @var Array $custom_data
136
+	 */
137
+	public $custom_data;
138
+
139
+	/** Hourly rate of a user
140
+	 * @var double $DriverHourlyRate
141
+	 */
142
+	public $DriverHourlyRate;
143
+
144
+	/** Vendor ID
145
+	 * @var string $vendor_id
146
+	 */
147
+	public $vendor_id;
148
+
149
+	/** Driving rate of a user.
150
+	 * @var double $driving_rate
151
+	 */
152
+	public $driving_rate;
153
+
154
+	/** Working rate of a user.
155
+	 * @var double $working_rate
156
+	 */
157
+	public $working_rate;
158
+
159
+	/** Mile rate of a user.
160
+	 * @var double $mile_rate
161
+	 */
162
+	public $mile_rate;
163
+
164
+	/** Mile rate of a user.
165
+	 * @var double $idling_rate
166
+	 */
167
+	public $idling_rate;
168
+
169
+	/** Display maximum_routes number of future days.
170
+	 * @var integer $display_max_routes_future_days
171
+	 */
172
+	public $display_max_routes_future_days;
173
+
174
+	/** Member's location timezone
175
+	 * @var string $timezone
176
+	 */
177
+	public $timezone;
178
+
179
+	public static function fromArray(array $params)
180
+	{
181
+		$teamtResponse = new self();
182
+
183
+		foreach ($params as $key => $value) {
184
+			if (property_exists($teamtResponse, $key)) {
185
+				$teamtResponse->{$key} = $value;
186
+			}
187
+		}
188
+
189
+		return $teamtResponse;
190
+	}
191 191
 
192 192
 }
193 193
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/V5/Routes/AddonRoutesApi/RouteDuplicateResponse.php 1 patch
Indentation   +27 added lines, -27 removed lines patch added patch discarded remove patch
@@ -10,31 +10,31 @@
 block discarded – undo
10 10
  */
11 11
 class RouteDuplicateResponse extends \Route4Me\Common
12 12
 {
13
-    /** If true, the route duplicated successfully.
14
-     * @var boolean $status
15
-     */
16
-    public $status;
17
-
18
-    /** If true, the route duplication process was asynchronous.
19
-     * @var boolean $async
20
-     */
21
-    public $async;
22
-
23
-    /** An array of the duplicated route IDs.
24
-     * @var string[] $route_ids
25
-     */
26
-    public $route_ids = [];
27
-
28
-    public static function fromArray(array $params)
29
-    {
30
-        $duplicateResponse = new self();
31
-
32
-        foreach ($params as $key => $value) {
33
-            if (property_exists($duplicateResponse, $key)) {
34
-                $duplicateResponse->{$key} = $value;
35
-            }
36
-        }
37
-
38
-        return $duplicateResponse;
39
-    }
13
+	/** If true, the route duplicated successfully.
14
+	 * @var boolean $status
15
+	 */
16
+	public $status;
17
+
18
+	/** If true, the route duplication process was asynchronous.
19
+	 * @var boolean $async
20
+	 */
21
+	public $async;
22
+
23
+	/** An array of the duplicated route IDs.
24
+	 * @var string[] $route_ids
25
+	 */
26
+	public $route_ids = [];
27
+
28
+	public static function fromArray(array $params)
29
+	{
30
+		$duplicateResponse = new self();
31
+
32
+		foreach ($params as $key => $value) {
33
+			if (property_exists($duplicateResponse, $key)) {
34
+				$duplicateResponse->{$key} = $value;
35
+			}
36
+		}
37
+
38
+		return $duplicateResponse;
39
+	}
40 40
 }
41 41
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/V5/Routes/AddonRoutesApi/RouteDataTableConfigResponse.php 1 patch
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -9,26 +9,26 @@
 block discarded – undo
9 9
  */
10 10
 class RouteDataTableConfigResponse extends \Route4Me\Common
11 11
 {
12
-    /** API Capabilities
13
-     * @var ApiCapabilities $api_capabilities
14
-     */
15
-    public $api_capabilities = [];
12
+	/** API Capabilities
13
+	 * @var ApiCapabilities $api_capabilities
14
+	 */
15
+	public $api_capabilities = [];
16 16
 
17
-    /** API Preferences
18
-     * @var ApiPreferences $api_preferences
19
-     */
20
-    public $api_preferences = [];
17
+	/** API Preferences
18
+	 * @var ApiPreferences $api_preferences
19
+	 */
20
+	public $api_preferences = [];
21 21
 
22
-    public static function fromArray(array $params)
23
-    {
24
-        $configResponse = new self();
22
+	public static function fromArray(array $params)
23
+	{
24
+		$configResponse = new self();
25 25
 
26
-        foreach ($params as $key => $value) {
27
-            if (property_exists($configResponse, $key)) {
28
-                $configResponse->{$key} = $value;
29
-            }
30
-        }
26
+		foreach ($params as $key => $value) {
27
+			if (property_exists($configResponse, $key)) {
28
+				$configResponse->{$key} = $value;
29
+			}
30
+		}
31 31
 
32
-        return $configResponse;
33
-    }
32
+		return $configResponse;
33
+	}
34 34
 }
Please login to merge, or discard this patch.
src/Route4Me/V5/Routes/AddonRoutesApi/ApiCapabilities.php 1 patch
Indentation   +37 added lines, -37 removed lines patch added patch discarded remove patch
@@ -6,41 +6,41 @@
 block discarded – undo
6 6
 
7 7
 class ApiCapabilities extends \Route4Me\Common
8 8
 {
9
-    /** Sortable Fields
10
-     * @var string[] $sortable_fields
11
-     */
12
-    public $sortable_fields = [];
13
-
14
-    /** Combinations of the sortable fields
15
-     * @var Array $sortable_fields_combinations
16
-     */
17
-    public $sortable_fields_combinations = [];
18
-
19
-    /** If true, multi-sorting enabled.
20
-     * @var boolean $multi_sorting_enabled
21
-     */
22
-    public $multi_sorting_enabled;
23
-
24
-    /** An array of the filterable fields.
25
-     * @var string[] $filterable_fields
26
-     */
27
-    public $filterable_fields = [];
28
-
29
-    /** If true, search enabled.
30
-     * @var boolean $search
31
-     */
32
-    public $search;
33
-
34
-    public static function fromArray(array $params)
35
-    {
36
-        $resultResponse = new self();
37
-
38
-        foreach ($params as $key => $value) {
39
-            if (property_exists($resultResponse, $key)) {
40
-                $resultResponse->{$key} = $value;
41
-            }
42
-        }
43
-
44
-        return $resultResponse;
45
-    }
9
+	/** Sortable Fields
10
+	 * @var string[] $sortable_fields
11
+	 */
12
+	public $sortable_fields = [];
13
+
14
+	/** Combinations of the sortable fields
15
+	 * @var Array $sortable_fields_combinations
16
+	 */
17
+	public $sortable_fields_combinations = [];
18
+
19
+	/** If true, multi-sorting enabled.
20
+	 * @var boolean $multi_sorting_enabled
21
+	 */
22
+	public $multi_sorting_enabled;
23
+
24
+	/** An array of the filterable fields.
25
+	 * @var string[] $filterable_fields
26
+	 */
27
+	public $filterable_fields = [];
28
+
29
+	/** If true, search enabled.
30
+	 * @var boolean $search
31
+	 */
32
+	public $search;
33
+
34
+	public static function fromArray(array $params)
35
+	{
36
+		$resultResponse = new self();
37
+
38
+		foreach ($params as $key => $value) {
39
+			if (property_exists($resultResponse, $key)) {
40
+				$resultResponse->{$key} = $value;
41
+			}
42
+		}
43
+
44
+		return $resultResponse;
45
+	}
46 46
 }
47 47
\ No newline at end of file
Please login to merge, or discard this patch.
src/Route4Me/V5/Routes/AddonRoutesApi/ApiPreferences.php 1 patch
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -4,31 +4,31 @@
 block discarded – undo
4 4
 
5 5
 class ApiPreferences extends \Route4Me\Common
6 6
 {
7
-    /**
8
-     * @var boolean $force_server_side_search
9
-     */
10
-    public $force_server_side_search;
7
+	/**
8
+	 * @var boolean $force_server_side_search
9
+	 */
10
+	public $force_server_side_search;
11 11
 
12
-    /**
13
-     * @var boolean $partial_load
14
-     */
15
-    public $partial_load;
12
+	/**
13
+	 * @var boolean $partial_load
14
+	 */
15
+	public $partial_load;
16 16
 
17
-    /**
18
-     * @var boolean $simple_pagination
19
-     */
20
-    public $simple_pagination;
17
+	/**
18
+	 * @var boolean $simple_pagination
19
+	 */
20
+	public $simple_pagination;
21 21
 
22
-    public static function fromArray(array $params)
23
-    {
24
-        $apiPrefer = new self();
22
+	public static function fromArray(array $params)
23
+	{
24
+		$apiPrefer = new self();
25 25
 
26
-        foreach ($params as $key => $value) {
27
-            if (property_exists($apiPrefer, $key)) {
28
-                $apiPrefer->{$key} = $value;
29
-            }
30
-        }
26
+		foreach ($params as $key => $value) {
27
+			if (property_exists($apiPrefer, $key)) {
28
+				$apiPrefer->{$key} = $value;
29
+			}
30
+		}
31 31
 
32
-        return $apiPrefer;
33
-    }
32
+		return $apiPrefer;
33
+	}
34 34
 }
35 35
\ No newline at end of file
Please login to merge, or discard this patch.