@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | * Store function override |
36 | 36 | * |
37 | 37 | * @param Request $request |
38 | - * @return Response |
|
38 | + * @return \Illuminate\Http\RedirectResponse |
|
39 | 39 | */ |
40 | 40 | public function store(Request $request) |
41 | 41 | { |
@@ -64,7 +64,7 @@ discard block |
||
64 | 64 | * |
65 | 65 | * @param Request $request |
66 | 66 | * @param integer $id |
67 | - * @return Response |
|
67 | + * @return \Illuminate\Http\RedirectResponse |
|
68 | 68 | */ |
69 | 69 | public function update(Request $request, $id) |
70 | 70 | { |
@@ -102,7 +102,7 @@ |
||
102 | 102 | * |
103 | 103 | * @param string $module |
104 | 104 | * @param array $possibleParameters |
105 | - * @return boolean |
|
105 | + * @return false|string |
|
106 | 106 | */ |
107 | 107 | public static function resetSaveIndexParameters($module, $possibleParameters = ['search', 'orderbycolumn', 'orderbytype', 'relation']) |
108 | 108 | { |
@@ -98,7 +98,7 @@ discard block |
||
98 | 98 | /** |
99 | 99 | * Image category link |
100 | 100 | * |
101 | - * @return object |
|
101 | + * @return \Illuminate\Database\Eloquent\Relations\BelongsTo |
|
102 | 102 | */ |
103 | 103 | public function imagecategories(){ |
104 | 104 | |
@@ -108,7 +108,7 @@ discard block |
||
108 | 108 | /** |
109 | 109 | * Slide link |
110 | 110 | * |
111 | - * @return object |
|
111 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
112 | 112 | */ |
113 | 113 | public function slides(){ |
114 | 114 | |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | /** |
119 | 119 | * Article category |
120 | 120 | * |
121 | - * @return object |
|
121 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
122 | 122 | */ |
123 | 123 | public function articlecategories(){ |
124 | 124 | |
@@ -128,7 +128,7 @@ discard block |
||
128 | 128 | /** |
129 | 129 | * Article category |
130 | 130 | * |
131 | - * @return object |
|
131 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
132 | 132 | */ |
133 | 133 | public function pages(){ |
134 | 134 |
@@ -80,7 +80,7 @@ |
||
80 | 80 | /** |
81 | 81 | * Image link |
82 | 82 | * |
83 | - * @return object |
|
83 | + * @return \Illuminate\Database\Eloquent\Relations\HasMany |
|
84 | 84 | */ |
85 | 85 | public function images(){ |
86 | 86 |
@@ -113,8 +113,7 @@ |
||
113 | 113 | if ($validator->fails()) { |
114 | 114 | |
115 | 115 | $object->imagecategories()->associate(1); |
116 | - } |
|
117 | - else{ |
|
116 | + } else{ |
|
118 | 117 | |
119 | 118 | $object->imagecategories()->associate($request->input('imagecategory_id')); |
120 | 119 |
@@ -86,8 +86,7 @@ |
||
86 | 86 | $object->commentstatuses()->associate(1); |
87 | 87 | } |
88 | 88 | |
89 | - } |
|
90 | - else{ |
|
89 | + } else{ |
|
91 | 90 | |
92 | 91 | $object->commentstatuses()->associate($request->input('commentstatus_id')); |
93 | 92 | } |
@@ -31,8 +31,7 @@ |
||
31 | 31 | if($request->has('published')){ |
32 | 32 | |
33 | 33 | $request->merge(['published_at' => \Carbon\Carbon::now()]); |
34 | - } |
|
35 | - else{ |
|
34 | + } else{ |
|
36 | 35 | |
37 | 36 | $request->merge(['published_at' => NULL]); |
38 | 37 | } |
@@ -72,8 +72,7 @@ |
||
72 | 72 | { |
73 | 73 | if(isset($this->excludedFromFind) == TRUE && is_array($this->excludedFromFind) == TRUE){ |
74 | 74 | return $query->select( array_diff(Schema::getColumnListing($this->table), $this->excludedFromFind) ); |
75 | - } |
|
76 | - else{ |
|
75 | + } else{ |
|
77 | 76 | return $query; |
78 | 77 | } |
79 | 78 | } |
@@ -126,8 +126,7 @@ |
||
126 | 126 | { |
127 | 127 | return round((($thisValue / ($lastValue / 100)) - 100), $round); |
128 | 128 | |
129 | - } |
|
130 | - else { |
|
129 | + } else { |
|
131 | 130 | |
132 | 131 | return 0; |
133 | 132 | } |