snipe-it/app/Http
Andrea Bergamasco e03ebc3fd0 AssetTransformer refactoring, restored tests (#3407)
* Refactored AssetsTransformer

Casted all ids to int, escaped all text values,

* Added warranty_expires attribute to Asset model

$asset->warranty_expires contains a Carbon object with the warranty
expiration date. Returns null when either purchase_date or
warranty_months are not set.

* Ignoring php-cs cache files

* Restored asset tests expectations

Work in progress - tests still fail

* API controller refactoring, fixed HTTP status codes in responses

* Restored $request->get - debugging

* Added further checks in ApiAssetsCest::updateAssetWithPatch
2017-03-14 08:37:39 -07:00
..
Controllers AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
Middleware Small phpcbf cleanup 2016-12-29 14:02:18 -08:00
Requests Vue importer (#3235) 2017-01-25 21:29:23 -08:00
Traits Putting uniqueUndeleted into a trait for use across models 2016-07-26 01:39:30 -07:00
Transformers AssetTransformer refactoring, restored tests (#3407) 2017-03-14 08:37:39 -07:00
Kernel.php Updated auth:api in kernel 2017-01-11 14:54:11 -08:00