GalleryController::index()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 5
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
dl 0
loc 5
rs 9.4285
c 2
b 1
f 0
cc 1
eloc 3
nc 1
nop 0
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
}