Code Duplication    Length = 10-11 lines in 3 locations

src/Widgets/Alert.php 1 location

@@ 81-91 (lines=11) @@
78
    /**
79
     * @return array
80
     */
81
    protected function variables()
82
    {
83
        $this->class("alert alert-{$this->style} alert-dismissable");
84
85
        return [
86
            'title'      => $this->title,
87
            'content'    => $this->content,
88
            'icon'       => $this->icon,
89
            'attributes' => $this->formatAttributes(),
90
        ];
91
    }
92
93
    /**
94
     * Render alter.

src/Widgets/Callout.php 1 location

@@ 62-71 (lines=10) @@
59
    /**
60
     * @return array
61
     */
62
    protected function variables()
63
    {
64
        $this->class("callout callout-{$this->style}");
65
66
        return [
67
            'title'      => $this->title,
68
            'content'    => $this->content,
69
            'attributes' => $this->formatAttributes(),
70
        ];
71
    }
72
73
    /**
74
     * Render Callout.

src/Widgets/Box.php 1 location

@@ 168-177 (lines=10) @@
165
     *
166
     * @return array
167
     */
168
    protected function variables()
169
    {
170
        return [
171
            'title'      => $this->title,
172
            'content'    => $this->content,
173
            'tools'      => $this->tools,
174
            'attributes' => $this->formatAttributes(),
175
            'script'     => $this->script,
176
        ];
177
    }
178
179
    /**
180
     * Render box.