Code Duplication    Length = 15-16 lines in 2 locations

src/Http/Controllers/GoogleAppsUsersController.php 2 locations

@@ 108-123 (lines=16) @@
105
//    });
106
    }
107
108
    public function google4()
109
    {
110
        //Example list 100 users
111
        $directory = Google::make('directory');
112
        dump(get_class($directory->users));
113
        dump($directory);
114
        try {
115
            $r = $directory->users->listUsers([
116
                'domain' => 'iesebre.com',
117
                'maxResults' => 500
118
            ]);
119
            dump($r);
120
        } catch (\Exception $e) {
121
            dd($e);
122
        }
123
    }
124
125
    public function google7()
126
    {
@@ 125-139 (lines=15) @@
122
        }
123
    }
124
125
    public function google7()
126
    {
127
        //Example list 500 users. max results maxim value is 500
128
        $directory = Google::make('directory');
129
        dump(get_class($directory->users));
130
        try {
131
            $r = $directory->users->listUsers([
132
                'domain' => 'iesebre.com',
133
                'maxResults' => 500
134
            ]);
135
            dump($r);
136
        } catch (\Exception $e) {
137
            dd($e);
138
        }
139
    }
140
141
    public function google8()
142
    {