Skip to content
Next
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Switch to GitLab Next
Sign in / Register
Toggle navigation
Minds Backend - Engine
Project
Project
Details
Activity
Releases
Dependency List
Cycle Analytics
Insights
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Locked Files
Issues
152
Issues
152
List
Boards
Labels
Service Desk
Milestones
Merge Requests
47
Merge Requests
47
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Minds
Minds Backend - Engine
Commits
aa29430f
Commit
aa29430f
authored
1 day ago
by
Marcelo Rivera
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(fix): add phpdoc and also support string urns
parent
56163626
fix/resolve-comments-by-urn
1 merge request
!262
[Sprint/InterestingIguana] (fix): resolve comments by urn
Pipeline
#70808435
passed with stages
in 7 minutes and 18 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
1 deletion
+9
-1
Manager.php
Core/Comments/Manager.php
+9
-1
No files found.
Core/Comments/Manager.php
View file @
aa29430f
...
...
@@ -272,8 +272,16 @@ class Manager
return
null
;
}
public
function
getByUrn
(
Urn
$urn
)
/**
* @param string|Urn $urn
* @return Comment|null
* @throws \Exception
*/
public
function
getByUrn
(
$urn
)
{
if
(
is_string
(
$urn
))
{
$urn
=
new
Urn
(
$urn
);
}
$components
=
explode
(
':'
,
$urn
->
getNss
());
if
(
count
(
$components
)
!==
5
)
{
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment