SQLReader   A
last analyzed

Complexity

Total Complexity 2

Size/Duplication

Total Lines 14
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 2
c 1
b 0
f 0
lcom 0
cbo 0
dl 0
loc 14
rs 10

2 Methods

Rating   Name   Duplication   Size   Complexity  
A get() 0 5 1
A getWeek() 0 5 1
1
<?php
2
3
namespace WITR\TopTwenty;
4
use DB;
5
6
class SQLReader implements Reader {
7
8
	public function get()
9
	{
10
		$toptwenty = DB::connection('logger')->table('top_20')->get();
11
		return $toptwenty;
12
	}
13
14
	public function getWeek()
15
	{
16
		$toptwenty = DB::connection('logger')->table('top_week')->get();
17
		return $toptwenty;
18
	}
19
}