@@ -117,7 +117,7 @@ discard block |
||
| 117 | 117 | */ |
| 118 | 118 | protected function fancyImplode($arr, $first, $last) |
| 119 | 119 | { |
| 120 | - $arr = array_map(function ($value) { |
|
| 120 | + $arr = array_map(function($value) { |
|
| 121 | 121 | return '`' . $value . '`'; |
| 122 | 122 | }, $arr); |
| 123 | 123 | array_push($arr, implode($last, array_splice($arr, -2))); |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | case 'after': |
| 149 | 149 | $attributeData['type'] = 'date'; |
| 150 | 150 | $attributeData['description'][] = 'Must be a date after: `' . date(DATE_RFC850, strtotime($parameters[0])) . '`'; |
| 151 | - $attributeData['value'] = date(DATE_RFC850, strtotime('+1 day',strtotime($parameters[0]))); |
|
| 151 | + $attributeData['value'] = date(DATE_RFC850, strtotime('+1 day', strtotime($parameters[0]))); |
|
| 152 | 152 | break; |
| 153 | 153 | case 'alpha': |
| 154 | 154 | $attributeData['description'][] = 'Only alphabetic characters allowed'; |
@@ -182,7 +182,7 @@ discard block |
||
| 182 | 182 | case 'before': |
| 183 | 183 | $attributeData['type'] = 'date'; |
| 184 | 184 | $attributeData['description'][] = 'Must be a date preceding: `' . date(DATE_RFC850, strtotime($parameters[0])) . '`'; |
| 185 | - $attributeData['value'] = date(DATE_RFC850, strtotime('-1 day',strtotime($parameters[0]))); |
|
| 185 | + $attributeData['value'] = date(DATE_RFC850, strtotime('-1 day', strtotime($parameters[0]))); |
|
| 186 | 186 | break; |
| 187 | 187 | case 'date_format': |
| 188 | 188 | $attributeData['type'] = 'date'; |
@@ -207,7 +207,7 @@ discard block |
||
| 207 | 207 | case 'json': |
| 208 | 208 | $attributeData['type'] = 'string'; |
| 209 | 209 | $attributeData['description'][] = 'Must be a valid JSON string.'; |
| 210 | - $attributeData['value'] = json_encode(['foo','bar','baz']); |
|
| 210 | + $attributeData['value'] = json_encode(['foo', 'bar', 'baz']); |
|
| 211 | 211 | break; |
| 212 | 212 | case 'mimetypes': |
| 213 | 213 | case 'mimes': |