Code Duplication    Length = 8-9 lines in 2 locations

app/Policies/NotePolicy.php 1 location

@@ 58-66 (lines=9) @@
55
//
56
//        return false;
57
//    }
58
    public function view(User $user, Project $project)
59
    {
60
        $this->dd(__METHOD__);
61
        if ($this->isPublicProject($project) || $project->isMember($user->id)) {
62
            return true;
63
        }
64
65
        return false;
66
    }
67
68
    /**
69
     * Determine whether the user can create notes.

app/Policies/ProjectPolicy.php 1 location

@@ 48-55 (lines=8) @@
45
     * @param  Project  $project
46
     * @return mixed
47
     */
48
    public function view(User $user, Project $project)
49
    {
50
        if ($this->isPublicProject($project) || $project->isMember($user->id)) {
51
            return true;
52
        }
53
54
        return false;
55
    }
56
57
58
    /**