@@ -31,7 +31,7 @@ discard block |
||
| 31 | 31 | * @param \phpbb\user $user |
| 32 | 32 | |
| 33 | 33 | */ |
| 34 | - public function __construct(\phpbb\path_helper $path_helper, Container $phpbb_container, \phpbb\user $user) |
|
| 34 | + public function __construct(\phpbb\path_helper $path_helper, Container $phpbb_container, \phpbb\user $user) |
|
| 35 | 35 | { |
| 36 | 36 | $this->path_helper = $path_helper; |
| 37 | 37 | $this->phpbb_container = $phpbb_container; |
@@ -53,7 +53,7 @@ discard block |
||
| 53 | 53 | $data['U_MARK_READ'] = $this->path_helper->update_web_root_path($data['U_MARK_READ']); |
| 54 | 54 | $data['URL'] = $this->path_helper->update_web_root_path($data['URL']); |
| 55 | 55 | $data['L_MARK_READ'] = $this->user->lang['MARK_READ']; |
| 56 | - $result[] =$data; |
|
| 56 | + $result[] = $data; |
|
| 57 | 57 | } |
| 58 | 58 | |
| 59 | 59 | return new JsonResponse($result); |
@@ -103,8 +103,7 @@ |
||
| 103 | 103 | if (is_int($position)) |
| 104 | 104 | { |
| 105 | 105 | array_splice($array, $position, 0, $insert); |
| 106 | - } |
|
| 107 | - else |
|
| 106 | + } else |
|
| 108 | 107 | { |
| 109 | 108 | $pos = array_search($position, array_keys($array)); |
| 110 | 109 | $array = array_merge( |