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

@@ 101-105 (lines=5) @@
98
            $this->module = 'users';
99
        }
100
        // set user ID
101
        if ($user = Auth::getIdentity()) {
102
            $this->userId = $user->id;
103
        } else {
104
            $this->userId = Users\Table::SYSTEM_USER;
105
        }
106
107
        // create thumbnail
108
        $this->createThumbnail();