GalleryController   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A index() 0 5 1
1
<?php
2
3
namespace JeroenG\LaravelPhotoGallery\Controllers;
4
5
class GalleryController extends Controller
6
{
7
    /**
8
     * Show a list of all the albums.
9
     *
10
     * @return \Illuminate\View\View
11
     */
12
	public function index()
13
	{
14
		$allAlbums = \Gallery::album()->all();
15
		return view('gallery::index', ['allAlbums' => $allAlbums]);
16
	}
17
}