@@ -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; |