@@ -24,14 +24,14 @@ |
||
24 | 24 | |
25 | 25 | public function getRenderedById($pageblock_id) |
26 | 26 | { |
27 | - $pageblock = $this->where('id', $pageblock_id)->first(); |
|
28 | - $new_pageblock = PageBlockRepository::getRenderedByPageBlock($pageblock); |
|
29 | - return $new_pageblock; |
|
27 | + $pageblock = $this->where('id', $pageblock_id)->first(); |
|
28 | + $new_pageblock = PageBlockRepository::getRenderedByPageBlock($pageblock); |
|
29 | + return $new_pageblock; |
|
30 | 30 | } |
31 | 31 | |
32 | 32 | public function getById($id) |
33 | 33 | { |
34 | - return $this->find($id); |
|
34 | + return $this->find($id); |
|
35 | 35 | } |
36 | 36 | |
37 | 37 | public function getCountByPageId($page_id) |
@@ -9,8 +9,8 @@ |
||
9 | 9 | protected $table = 'menus'; |
10 | 10 | |
11 | 11 | public function __construct( array $attributes = [] ){ |
12 | - //parent::construct( $attributes ); |
|
13 | - $this->table = config('menu.table_prefix') . config('menu.table_name_menus'); |
|
12 | + //parent::construct( $attributes ); |
|
13 | + $this->table = config('menu.table_prefix') . config('menu.table_name_menus'); |
|
14 | 14 | } |
15 | 15 | |
16 | 16 | public static function byName($name) |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | class Content extends Eloquent |
10 | 10 | { |
11 | - /** |
|
11 | + /** |
|
12 | 12 | * The attributes that are mass assignable. |
13 | 13 | * |
14 | 14 | * @var array |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | $contentStart += $startDelimiterLength; |
111 | 111 | $contentEnd = strpos($str, $endDelimiter, $contentStart); |
112 | 112 | if (false === $contentEnd) { |
113 | - break; |
|
113 | + break; |
|
114 | 114 | } |
115 | 115 | $contents[] = substr($str, $contentStart, $contentEnd - $contentStart); |
116 | 116 | $startFrom = $contentEnd + $endDelimiterLength; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class Redirect extends Eloquent |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The attributes that are mass assignable. |
11 | 11 | * |
12 | 12 | * @var array |
@@ -7,7 +7,7 @@ |
||
7 | 7 | class Template extends Eloquent |
8 | 8 | { |
9 | 9 | public function pages(){ |
10 | - return $this->hasMany('Chuckbe\Chuckcms\Models\Page'); |
|
10 | + return $this->hasMany('Chuckbe\Chuckcms\Models\Page'); |
|
11 | 11 | } |
12 | 12 | |
13 | 13 | protected $casts = [ |
@@ -8,7 +8,7 @@ discard block |
||
8 | 8 | |
9 | 9 | class Form extends Eloquent |
10 | 10 | { |
11 | - /** |
|
11 | + /** |
|
12 | 12 | * The attributes that are mass assignable. |
13 | 13 | * |
14 | 14 | * @var array |
@@ -148,7 +148,7 @@ discard block |
||
148 | 148 | $contentStart += $startDelimiterLength; |
149 | 149 | $contentEnd = strpos($str, $endDelimiter, $contentStart); |
150 | 150 | if (false === $contentEnd) { |
151 | - break; |
|
151 | + break; |
|
152 | 152 | } |
153 | 153 | $contents[] = substr($str, $contentStart, $contentEnd - $contentStart); |
154 | 154 | $startFrom = $contentEnd + $endDelimiterLength; |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class Site extends Eloquent |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The attributes that are mass assignable. |
11 | 11 | * |
12 | 12 | * @var array |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class Repeater extends Eloquent |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The attributes that are mass assignable. |
11 | 11 | * |
12 | 12 | * @var array |
@@ -6,7 +6,7 @@ |
||
6 | 6 | |
7 | 7 | class FormEntry extends Eloquent |
8 | 8 | { |
9 | - /** |
|
9 | + /** |
|
10 | 10 | * The attributes that are mass assignable. |
11 | 11 | * |
12 | 12 | * @var array |