AppComposer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 14 1
1
<?php
2
3
/*
4
 * This file is part of Gitamin.
5
 *
6
 * Copyright (C) 2015-2016 The Gitamin Team
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Gitamin\Composers;
13
14
use Gitamin\Facades\Setting;
15
use Illuminate\Contracts\View\View;
16
use Illuminate\Support\Facades\Config;
17
18
class AppComposer
19
{
20
    /**
21
     * Index page view composer.
22
     *
23
     * @param \Illuminate\Contracts\View\View $view
24
     */
25
    public function compose(View $view)
26
    {
27
        $view->withAppBanner(Setting::get('app_banner'));
0 ignored issues
show
Bug introduced by
The method withAppBanner() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
28
        $view->withAppBannerStyleFullWidth(Setting::get('style_fullwidth_header'));
0 ignored issues
show
Bug introduced by
The method withAppBannerStyleFullWidth() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
29
        $view->withAppBannerType(Setting::get('app_banner_type'));
0 ignored issues
show
Bug introduced by
The method withAppBannerType() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
30
        $view->withAppDomain(Setting::get('app_domain'));
0 ignored issues
show
Bug introduced by
The method withAppDomain() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
31
        $view->withGitClientPath(Setting::get('git_client_path'));
0 ignored issues
show
Bug introduced by
The method withGitClientPath() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
32
        $view->withGitRepositoriesPath(Setting::get('git_repositories_path'));
0 ignored issues
show
Bug introduced by
The method withGitRepositoriesPath() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
33
        $view->withAppLocale(Setting::get('app_locale'));
0 ignored issues
show
Bug introduced by
The method withAppLocale() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
34
        $view->withAppName(Setting::get('app_name'));
0 ignored issues
show
Bug introduced by
The method withAppName() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
35
        $view->withAppStylesheet(Setting::get('app_stylesheet'));
0 ignored issues
show
Bug introduced by
The method withAppStylesheet() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
36
        $view->withAppUrl(Config::get('app.url'));
0 ignored issues
show
Bug introduced by
The method withAppUrl() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
37
        $view->withGoogleFontsUrl(Config::get('gitamin.google_fonts_url'));
0 ignored issues
show
Bug introduced by
The method withGoogleFontsUrl() does not seem to exist on object<Illuminate\Contracts\View\View>.

This check looks for calls to methods that do not seem to exist on a given type. It looks for the method on the type itself as well as in inherited classes or implemented interfaces.

This is most likely a typographical error or the method has been renamed.

Loading history...
38
    }
39
}
40