</td>
					<td><?php 
    echo QuickStatsController::shortenNumberDecorator($row['pageviews']);
    ?>
</td>
					<td><?php 
    echo QuickStatsController::shortenNumberDecorator($row['edits']);
    ?>
</td>
					<td><?php 
    echo QuickStatsController::shortenNumberDecorator($row['photos']);
    ?>
</td>
					<?php 
    if (isset($totals['likes'])) {
        ?>
					<td><?php 
        echo QuickStatsController::shortenNumberDecorator($row['likes']);
        ?>
</td>
					<?php 
    }
    ?>
				</tr>
			<?php 
}
?>
		</tbody>
	</table>
</section>
Example #2
0
 /**
  * @dataProvider shortenNumberDecoratorDataProvider
  * @group UsingDB
  */
 public function testShortenNumberDecorator($number, $expected)
 {
     $result = QuickStatsController::shortenNumberDecorator($number);
     $this->assertEquals($expected, $result);
 }