@@ -30,12 +30,12 @@ abstract class AbstractRestfulController extends AbstractController
30
30
/**
31
31
* @var array
32
32
*/
33
- protected $ contentTypes = array (
34
- self ::CONTENT_TYPE_JSON => array (
33
+ protected $ contentTypes = [
34
+ self ::CONTENT_TYPE_JSON => [
35
35
'application/hal+json ' ,
36
36
'application/json '
37
- )
38
- ) ;
37
+ ]
38
+ ] ;
39
39
40
40
/**
41
41
* Name of request or query parameter containing identifier
@@ -54,7 +54,7 @@ abstract class AbstractRestfulController extends AbstractController
54
54
*
55
55
* @var array
56
56
*/
57
- protected $ customHttpMethodsMap = array () ;
57
+ protected $ customHttpMethodsMap = [] ;
58
58
59
59
/**
60
60
* Set the route match/query parameter name containing the identifier
@@ -88,9 +88,9 @@ public function create($data)
88
88
{
89
89
$ this ->response ->setStatusCode (405 );
90
90
91
- return array (
91
+ return [
92
92
'content ' => 'Method Not Allowed '
93
- ) ;
93
+ ] ;
94
94
}
95
95
96
96
/**
@@ -103,9 +103,9 @@ public function delete($id)
103
103
{
104
104
$ this ->response ->setStatusCode (405 );
105
105
106
- return array (
106
+ return [
107
107
'content ' => 'Method Not Allowed '
108
- ) ;
108
+ ] ;
109
109
}
110
110
111
111
/**
@@ -120,9 +120,9 @@ public function deleteList($data)
120
120
{
121
121
$ this ->response ->setStatusCode (405 );
122
122
123
- return array (
123
+ return [
124
124
'content ' => 'Method Not Allowed '
125
- ) ;
125
+ ] ;
126
126
}
127
127
128
128
/**
@@ -135,9 +135,9 @@ public function get($id)
135
135
{
136
136
$ this ->response ->setStatusCode (405 );
137
137
138
- return array (
138
+ return [
139
139
'content ' => 'Method Not Allowed '
140
- ) ;
140
+ ] ;
141
141
}
142
142
143
143
/**
@@ -149,9 +149,9 @@ public function getList()
149
149
{
150
150
$ this ->response ->setStatusCode (405 );
151
151
152
- return array (
152
+ return [
153
153
'content ' => 'Method Not Allowed '
154
- ) ;
154
+ ] ;
155
155
}
156
156
157
157
/**
@@ -167,9 +167,9 @@ public function head($id = null)
167
167
{
168
168
$ this ->response ->setStatusCode (405 );
169
169
170
- return array (
170
+ return [
171
171
'content ' => 'Method Not Allowed '
172
- ) ;
172
+ ] ;
173
173
}
174
174
175
175
/**
@@ -187,9 +187,9 @@ public function options()
187
187
{
188
188
$ this ->response ->setStatusCode (405 );
189
189
190
- return array (
190
+ return [
191
191
'content ' => 'Method Not Allowed '
192
- ) ;
192
+ ] ;
193
193
}
194
194
195
195
/**
@@ -206,9 +206,9 @@ public function patch($id, $data)
206
206
{
207
207
$ this ->response ->setStatusCode (405 );
208
208
209
- return array (
209
+ return [
210
210
'content ' => 'Method Not Allowed '
211
- ) ;
211
+ ] ;
212
212
}
213
213
214
214
/**
@@ -224,9 +224,9 @@ public function replaceList($data)
224
224
{
225
225
$ this ->response ->setStatusCode (405 );
226
226
227
- return array (
227
+ return [
228
228
'content ' => 'Method Not Allowed '
229
- ) ;
229
+ ] ;
230
230
}
231
231
232
232
/**
@@ -242,9 +242,9 @@ public function patchList($data)
242
242
{
243
243
$ this ->response ->setStatusCode (405 );
244
244
245
- return array (
245
+ return [
246
246
'content ' => 'Method Not Allowed '
247
- ) ;
247
+ ] ;
248
248
}
249
249
250
250
/**
@@ -258,9 +258,9 @@ public function update($id, $data)
258
258
{
259
259
$ this ->response ->setStatusCode (405 );
260
260
261
- return array (
261
+ return [
262
262
'content ' => 'Method Not Allowed '
263
- ) ;
263
+ ] ;
264
264
}
265
265
266
266
/**
@@ -272,9 +272,9 @@ public function notFoundAction()
272
272
{
273
273
$ this ->response ->setStatusCode (404 );
274
274
275
- return array (
275
+ return [
276
276
'content ' => 'Page not found '
277
- ) ;
277
+ ] ;
278
278
}
279
279
280
280
/**
0 commit comments