@@ -22,9 +22,9 @@ |
||
22 | 22 | * @param string $description |
23 | 23 | * @param int $display_order |
24 | 24 | */ |
25 | - public function __construct($id,$name,$description,$display_order) |
|
25 | + public function __construct($id, $name, $description, $display_order) |
|
26 | 26 | { |
27 | - parent::__construct($id,RESOURCE_GLOSSARY); |
|
27 | + parent::__construct($id, RESOURCE_GLOSSARY); |
|
28 | 28 | $this->glossary_id = $id; |
29 | 29 | $this->name = $name; |
30 | 30 | $this->description = $description; |
@@ -25,6 +25,6 @@ |
||
25 | 25 | public function show() |
26 | 26 | { |
27 | 27 | parent::show(); |
28 | - echo $this->obj->title . ' (' . $this->obj->poster_name . ', ' . $this->obj->post_date . ')'; |
|
28 | + echo $this->obj->title.' ('.$this->obj->poster_name.', '.$this->obj->post_date.')'; |
|
29 | 29 | } |
30 | 30 | } |
@@ -18,7 +18,7 @@ |
||
18 | 18 | * @param int $id |
19 | 19 | * @param string $title |
20 | 20 | */ |
21 | - public function __construct($id,$title) |
|
21 | + public function __construct($id, $title) |
|
22 | 22 | { |
23 | 23 | parent::__construct($id, RESOURCE_SESSION_COURSE); |
24 | 24 | $this->title = $title; |
@@ -153,18 +153,18 @@ |
||
153 | 153 | $this->js_lib = $js_lib; |
154 | 154 | $this->content_license = $content_license; |
155 | 155 | $this->debug = $debug; |
156 | - $this->visibility=$visibility; |
|
156 | + $this->visibility = $visibility; |
|
157 | 157 | |
158 | - $this->use_max_score=$use_max_score; |
|
159 | - $this->autolaunch=$autolaunch; |
|
160 | - $this->created_on=$created_on; |
|
161 | - $this->modified_on=$modified_on; |
|
162 | - $this->publicated_on=$publicated_on; |
|
163 | - $this->expired_on=$expired_on; |
|
164 | - $this->session_id=$session_id; |
|
158 | + $this->use_max_score = $use_max_score; |
|
159 | + $this->autolaunch = $autolaunch; |
|
160 | + $this->created_on = $created_on; |
|
161 | + $this->modified_on = $modified_on; |
|
162 | + $this->publicated_on = $publicated_on; |
|
163 | + $this->expired_on = $expired_on; |
|
164 | + $this->session_id = $session_id; |
|
165 | 165 | |
166 | - $this->author= $author; |
|
167 | - $this->preview_image= $preview_image; |
|
166 | + $this->author = $author; |
|
167 | + $this->preview_image = $preview_image; |
|
168 | 168 | |
169 | 169 | $this->items = $items; |
170 | 170 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | $category_id, |
47 | 47 | $on_homepage |
48 | 48 | ) { |
49 | - parent::__construct($id,RESOURCE_LINK); |
|
49 | + parent::__construct($id, RESOURCE_LINK); |
|
50 | 50 | $this->title = $title; |
51 | 51 | $this->url = $url; |
52 | 52 | $this->description = $description; |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | public function __construct($id, $path, $comment, $title, $file_type, $size) |
29 | 29 | { |
30 | 30 | parent::__construct($id, RESOURCE_DOCUMENT); |
31 | - $this->path = 'document' . $path; |
|
31 | + $this->path = 'document'.$path; |
|
32 | 32 | $this->comment = $comment; |
33 | 33 | $this->title = $title; |
34 | 34 | $this->file_type = $file_type; |
@@ -44,7 +44,7 @@ discard block |
||
44 | 44 | echo preg_replace('@^document@', '', $this->path); |
45 | 45 | if (!empty($this->title)) { |
46 | 46 | if (strpos($this->path, $this->title) === false) { |
47 | - echo " - " . $this->title; |
|
47 | + echo " - ".$this->title; |
|
48 | 48 | } |
49 | 49 | } |
50 | 50 | } |
@@ -59,13 +59,13 @@ |
||
59 | 59 | $size, |
60 | 60 | $comment |
61 | 61 | ) { |
62 | - parent::__construct($id,RESOURCE_ANNOUNCEMENT); |
|
62 | + parent::__construct($id, RESOURCE_ANNOUNCEMENT); |
|
63 | 63 | |
64 | - $this->content = $content; |
|
65 | - $this->title = $title; |
|
66 | - $this->date = $date; |
|
67 | - $this->display_order = $display_order; |
|
68 | - $this->email_sent = $email_sent; |
|
64 | + $this->content = $content; |
|
65 | + $this->title = $title; |
|
66 | + $this->date = $date; |
|
67 | + $this->display_order = $display_order; |
|
68 | + $this->email_sent = $email_sent; |
|
69 | 69 | |
70 | 70 | $this->attachment_path = $path; |
71 | 71 | $this->attachment_filename = $filename; |
@@ -47,7 +47,7 @@ discard block |
||
47 | 47 | $progress, |
48 | 48 | $version |
49 | 49 | ) { |
50 | - parent::__construct($id,RESOURCE_WIKI); |
|
50 | + parent::__construct($id, RESOURCE_WIKI); |
|
51 | 51 | $this->id = $id; |
52 | 52 | $this->page_id = $page_id; |
53 | 53 | $this->reflink = $reflink; |
@@ -63,6 +63,6 @@ discard block |
||
63 | 63 | public function show() |
64 | 64 | { |
65 | 65 | parent::show(); |
66 | - echo $this->reflink.' ('. (empty($this->group_id) ? get_lang('Everyone') : get_lang('Group') . ' ' . $this->group_id) .') ' . '<i>(' . $this->dtime . ')</i>'; |
|
66 | + echo $this->reflink.' ('.(empty($this->group_id) ? get_lang('Everyone') : get_lang('Group').' '.$this->group_id).') '.'<i>('.$this->dtime.')</i>'; |
|
67 | 67 | } |
68 | 68 | } |
@@ -47,6 +47,6 @@ |
||
47 | 47 | $user_info = api_get_user_info($this->obj->thread_poster_id); |
48 | 48 | $extra = $user_info['complete_name'].', '.$extra; |
49 | 49 | } |
50 | - echo $this->obj->thread_title . ' (' . $extra . ')'; |
|
50 | + echo $this->obj->thread_title.' ('.$extra.')'; |
|
51 | 51 | } |
52 | 52 | } |