ThemeComposer   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 23
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 0

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A compose() 0 15 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
17
class ThemeComposer
18
{
19
    /**
20
     * Bind data to the view.
21
     *
22
     * @param \Illuminate\Contracts\View\View $view
23
     */
24
    public function compose(View $view)
25
    {
26
        // Theme colors.
27
        $view->withThemeBackgroundColor(Setting::get('style_background_color', '#F0F3F4'));
0 ignored issues
show
Bug introduced by
The method withThemeBackgroundColor() 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->withThemeBackgroundFills(Setting::get('style_background_fills', '#FFFFFF'));
0 ignored issues
show
Bug introduced by
The method withThemeBackgroundFills() 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->withThemeBannerBackgroundColor(Setting::get('style_banner_background_color', ''));
0 ignored issues
show
Bug introduced by
The method withThemeBannerBackgroundColor() 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->withThemeBannerPadding(Setting::get('style_banner_padding', '40px 0'));
0 ignored issues
show
Bug introduced by
The method withThemeBannerPadding() 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->withThemeTextColor(Setting::get('style_text_color', '#333333'));
0 ignored issues
show
Bug introduced by
The method withThemeTextColor() 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->withThemeReds(Setting::get('style_reds', '#ff6f6f'));
0 ignored issues
show
Bug introduced by
The method withThemeReds() 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->withThemeBlues(Setting::get('style_blues', '#3498db'));
0 ignored issues
show
Bug introduced by
The method withThemeBlues() 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->withThemeGreens(Setting::get('style_greens', '#7ED321'));
0 ignored issues
show
Bug introduced by
The method withThemeGreens() 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->withThemeYellows(Setting::get('style_yellows', '#F7CA18'));
0 ignored issues
show
Bug introduced by
The method withThemeYellows() 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->withThemeOranges(Setting::get('style_oranges', '#FF8800'));
0 ignored issues
show
Bug introduced by
The method withThemeOranges() 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->withThemeLinks(Setting::get('style_links', '#7ED321'));
0 ignored issues
show
Bug introduced by
The method withThemeLinks() 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