[Coding Standards] Applied new coding standards to CachetHQ\Cachet folder

This commit is contained in:
Thomas Coleman
2014-11-27 16:36:24 +00:00
parent ee65a462ef
commit 4a30770d36
4 changed files with 173 additions and 173 deletions
+13 -13
View File
@@ -1,15 +1,15 @@
<?php
class MetricTransformer extends \League\Fractal\TransformerAbstract {
public function transform(Metric $metric) {
return [
'id' => (int) $component->id,
'name' => $component->name,
'description' => $component->description,
'suffix' => $component->suffix,
'display' => $component->shouldDisplay,
'created_at' => $component->created_at->timestamp,
'updated_at' => $component->updated_at->timestamp,
];
}
}
class MetricTransformer extends \League\Fractal\TransformerAbstract {
public function transform(Metric $metric) {
return [
'id' => (int) $component->id,
'name' => $component->name,
'description' => $component->description,
'suffix' => $component->suffix,
'display' => $component->shouldDisplay,
'created_at' => $component->created_at->timestamp,
'updated_at' => $component->updated_at->timestamp,
];
}
}