Code Duplication    Length = 5-5 lines in 2 locations

application/models/Pages/Row.php 1 location

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

application/models/Media/Row.php 1 location

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