@@ -9,8 +9,7 @@ discard block |
||
| 9 | 9 | use App\Admin; |
| 10 | 10 | use Illuminate\Support\Facades\Storage; |
| 11 | 11 | |
| 12 | -class AdminController extends Controller |
|
| 13 | -{ |
|
| 12 | +class AdminController extends Controller { |
|
| 14 | 13 | /** |
| 15 | 14 | * AdminController constructor. |
| 16 | 15 | */ |
@@ -243,7 +242,8 @@ discard block |
||
| 243 | 242 | /** |
| 244 | 243 | * @return \Illuminate\Http\RedirectResponse|\Illuminate\Routing\Redirector |
| 245 | 244 | */ |
| 246 | - public function destroy() { |
|
| 245 | + public function destroy() |
|
| 246 | + { |
|
| 247 | 247 | $admin = $this->currentUser(); |
| 248 | 248 | |
| 249 | 249 | if($admin->delete()) { |
@@ -8,8 +8,7 @@ |
||
| 8 | 8 | use App\Hospital; |
| 9 | 9 | use App\Room; |
| 10 | 10 | |
| 11 | -class RoomController extends Controller |
|
| 12 | -{ |
|
| 11 | +class RoomController extends Controller { |
|
| 13 | 12 | /** |
| 14 | 13 | * Show the form for creating a new resource. |
| 15 | 14 | * |
@@ -4,8 +4,7 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Foundation\Http\Kernel as HttpKernel; |
| 6 | 6 | |
| 7 | -class Kernel extends HttpKernel |
|
| 8 | -{ |
|
| 7 | +class Kernel extends HttpKernel { |
|
| 9 | 8 | /** |
| 10 | 9 | * The application's global HTTP middleware stack. |
| 11 | 10 | * |
@@ -5,8 +5,7 @@ discard block |
||
| 5 | 5 | use App\Doctor; |
| 6 | 6 | use Illuminate\Database\Eloquent\Model; |
| 7 | 7 | |
| 8 | -class Articles extends Model |
|
| 9 | -{ |
|
| 8 | +class Articles extends Model { |
|
| 10 | 9 | /** |
| 11 | 10 | * @var string |
| 12 | 11 | */ |
@@ -34,7 +33,8 @@ discard block |
||
| 34 | 33 | * @param $id |
| 35 | 34 | * @return array |
| 36 | 35 | */ |
| 37 | - public function writer() { |
|
| 36 | + public function writer() |
|
| 37 | + { |
|
| 38 | 38 | $adminId = $this->getAttributeValue('admin_id'); |
| 39 | 39 | $doctorId = $this->getAttributeValue('doctor_id'); |
| 40 | 40 | |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | */ |
| 58 | 58 | public function cutStr($str) |
| 59 | 59 | { |
| 60 | - if (strlen($str) > 200){ |
|
| 60 | + if (strlen($str) > 200) { |
|
| 61 | 61 | return substr($str,0,200) . "..."; |
| 62 | 62 | } |
| 63 | 63 | return $str; |