Scrutinizer GitHub App not installed

We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.

Install GitHub App

Completed
Pull Request — master (#334)
by Owen
02:38
created

Views::setDetailsRowView()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 6
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 3
nc 1
nop 1
dl 0
loc 6
rs 9.4285
c 2
b 1
f 0
1
<?php
2
3
namespace Backpack\CRUD\app\Http\Controllers\CrudFeatures;
4
5
trait Views
6
{
7
    protected $detailsRowView = 'crud::details_row';
8
    protected $revisionsView = 'crud::revisions';
9
    protected $reorderView = 'crud::reorder';
10
    protected $listView = 'crud::list';
11
12
    protected $createView = 'crud::create';
13
    protected $editView = 'crud::edit';
14
    protected $showView = 'crud::show';
15
16
    /**
17
     * Sets the details row template.
18
     * @param string $view name of the template file
19
     * @return string $view name of the template file
20
     */
21
    public function setDetailsRowView($view)
22
    {
23
        $this->detailsRowView = $view;
24
25
        return $this->detailsRowView;
26
    }
27
28
    /**
29
     * Gets the details row template.
30
     * @return string name of the template file
31
     */
32
    public function getDetailsRowView()
33
    {
34
        return $this->detailsRowView;
35
    }
36
37
    /**
38
     * Sets the revision template.
39
     * @param string $view name of the template file
40
     * @return string $view name of the template file
41
     */
42
    public function setRevisionsView($view)
43
    {
44
        $this->revisionsView = $view;
45
46
        return $this->revisionsView;
47
    }
48
49
    /**
50
     * Gets the revisions template.
51
     * @return string name of the template file
52
     */
53
    public function getRevisionsView()
54
    {
55
        return $this->revisionsView;
56
    }
57
58
    /**
59
     * Sets the reorder template.
60
     * @param string $view name of the template file
61
     * @return string $view name of the template file
62
     */
63
    public function setReorderView($view)
64
    {
65
        $this->reorderView = $view;
66
67
        return $this->reorderView;
68
    }
69
70
    /**
71
     * Gets the reorder template.
72
     * @return string name of the template file
73
     */
74
    public function getReorderView()
75
    {
76
        return $this->reorderView;
77
    }
78
79
    /**
80
     * Sets the list template.
81
     * @param string $view name of the template file
82
     * @return string $view name of the template file
83
     */
84
    public function setListView($view)
85
    {
86
        $this->listView = $view;
87
88
        return $this->listView;
89
    }
90
91
    /**
92
     * Gets the list template.
93
     * @return string name of the template file
94
     */
95
    public function getListView()
96
    {
97
        return $this->listView;
98
    }
99
100
    /**
101
     * Sets the list template.
102
     * @param string $view name of the template file
103
     * @return string $view name of the template file
104
     */
105
    public function setCreateView($view)
106
    {
107
        $this->createView = $view;
108
109
        return $this->createView;
110
    }
111
112
    /**
113
     * Gets the create template.
114
     * @return string name of the template file
115
     */
116
    public function getCreateView()
117
    {
118
        return $this->createView;
119
    }
120
121
    /**
122
     * Sets the edit template.
123
     * @param string $view name of the template file
124
     * @return string $view name of the template file
125
     */
126
    public function setEditView($view)
127
    {
128
        $this->editView = $view;
129
130
        return $this->editView;
131
    }
132
133
    /**
134
     * Gets the edit template.
135
     * @return string name of the template file
136
     */
137
    public function getEditView()
138
    {
139
        return $this->editView;
140
    }
141
142
    /**
143
     * Sets the show template.
144
     * @param string $view name of the template file
145
     * @return string $view name of the template file
146
     */
147
    public function setShowView($view)
148
    {
149
        $this->showView = $view;
150
151
        return $this->showView;
152
    }
153
154
    /**
155
     * Gets the show template.
156
     * @return string name of the template file
157
     */
158
    public function getShowView()
159
    {
160
        return $this->showView;
161
    }
162
}
163