@@ -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 | { |
@@ -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 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | * |
| 145 | 145 | * @param integer $id |
| 146 | 146 | * @param Request $request |
| 147 | - * @return Response |
|
| 147 | + * @return \Illuminate\Http\RedirectResponse |
|
| 148 | 148 | */ |
| 149 | 149 | public function approve($id, Request $request){ |
| 150 | 150 | |
@@ -186,7 +186,7 @@ discard block |
||
| 186 | 186 | * |
| 187 | 187 | * @param integer $id |
| 188 | 188 | * @param Request $request |
| 189 | - * @return Response |
|
| 189 | + * @return \Illuminate\Http\RedirectResponse |
|
| 190 | 190 | */ |
| 191 | 191 | public function spam($id, Request $request){ |
| 192 | 192 | |
@@ -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 | } |
@@ -67,6 +67,7 @@ discard block |
||
| 67 | 67 | |
| 68 | 68 | /** |
| 69 | 69 | * Reset all session fields |
| 70 | + * @param \Illuminate\Http\Request $request |
|
| 70 | 71 | */ |
| 71 | 72 | protected function _resetSessionFields($request){ |
| 72 | 73 | |
@@ -130,6 +131,9 @@ discard block |
||
| 130 | 131 | return Page::findOrFail($id); |
| 131 | 132 | } |
| 132 | 133 | |
| 134 | + /** |
|
| 135 | + * @param integer $id |
|
| 136 | + */ |
|
| 133 | 137 | protected function _getSettings($id){ |
| 134 | 138 | |
| 135 | 139 | $settings = Settings::find($id); |
@@ -145,8 +149,6 @@ discard block |
||
| 145 | 149 | /** |
| 146 | 150 | * Save transaction |
| 147 | 151 | * |
| 148 | - * @param int $typeId |
|
| 149 | - * @param string $text |
|
| 150 | 152 | * @param $userId |
| 151 | 153 | * @param $amount |
| 152 | 154 | */ |
@@ -46,8 +46,7 @@ discard block |
||
| 46 | 46 | |
| 47 | 47 | if (view()->exists($strView)) { |
| 48 | 48 | return view($strView, $this->_arViewData); |
| 49 | - } |
|
| 50 | - else{ |
|
| 49 | + } else{ |
|
| 51 | 50 | return abort(404); |
| 52 | 51 | } |
| 53 | 52 | } |
@@ -136,8 +135,7 @@ discard block |
||
| 136 | 135 | |
| 137 | 136 | if(!empty($settings)){ |
| 138 | 137 | return $settings['value']; |
| 139 | - } |
|
| 140 | - else{ |
|
| 138 | + } else{ |
|
| 141 | 139 | return NULL; |
| 142 | 140 | } |
| 143 | 141 | } |
@@ -19,7 +19,6 @@ |
||
| 19 | 19 | /** |
| 20 | 20 | * Register any application authentication / authorization services. |
| 21 | 21 | * |
| 22 | - * @param \Illuminate\Contracts\Auth\Access\Gate $gate |
|
| 23 | 22 | * @return void |
| 24 | 23 | */ |
| 25 | 24 | public function boot() |