views_handler_field_boincwork_app_version_number   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 7
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
eloc 3
dl 0
loc 7
rs 10
c 0
b 0
f 0
wmc 2

2 Methods

Rating   Name   Duplication   Size   Complexity  
A construct() 0 2 1
A render() 0 2 1
1
<?php
2
3
/*
4
 * views_handler_field_boincwork_app_version_number: This handler converts a
5
 * application version number to decimal form.
6
 */
7
8
class views_handler_field_boincwork_app_version_number extends views_handler_field {
9
  function construct() {
10
    parent::construct();
11
  }
12
13
  function render($values) {
14
    return sprintf("%01.2f", $values->app_version_host_app_version_version_num / 100);
15
  }
16
}
17