Code Duplication    Length = 5-5 lines in 2 locations

application/models/Media/Row.php 1 location

@@ 65-69 (lines=5) @@
62
            $this->module = 'users';
63
        }
64
        // set user ID
65
        if ($user = app()->user()) {
66
            $this->userId = $user->id;
67
        } else {
68
            $this->userId = Users\Table::SYSTEM_USER;
69
        }
70
71
        // create preview
72
        // set full path

application/models/Pages/Row.php 1 location

@@ 96-100 (lines=5) @@
93
        $this->created = gmdate('Y-m-d H:i:s');
94
95
        /* @var \Application\Users\Row $user */
96
        if ($user = app()->user()) {
97
            $this->userId = $user->id;
98
        } else {
99
            $this->userId = Users\Table::SYSTEM_USER;
100
        }
101
    }
102
103
    /**