@@ -13,22 +13,22 @@ public function definition(): array
1313    {
1414        return  [
1515            'description '  => $ this  ->faker ->sentence (3 ),
16-             'details '  => $ this  ->faker ->paragraph (),
17-             'userType '  => $ this  ->faker ->randomElement (['Guest ' , 'Registered ' , 'Crawler ' ]),
18-             'userId '  => $ this  ->faker ->numberBetween (1 , 100 ),
19-             'route '  => $ this  ->faker ->url (),
20-             'ipAddress '  => $ this  ->faker ->ipv4 (),
21-             'userAgent '  => $ this  ->faker ->userAgent (),
22-             'locale '  => $ this  ->faker ->locale (),
23-             'referer '  => $ this  ->faker ->optional ()->url (),
24-             'methodType '  => $ this  ->faker ->randomElement (['GET ' , 'POST ' , 'PUT ' , 'DELETE ' , 'PATCH ' ]),
25-             'created_at '  => $ this  ->faker ->dateTimeBetween ('-1 year ' , 'now ' ),
26-             'updated_at '  => $ this  ->faker ->dateTimeBetween ('-1 year ' , 'now ' ),
16+             'details '       => $ this  ->faker ->paragraph (),
17+             'userType '      => $ this  ->faker ->randomElement (['Guest ' , 'Registered ' , 'Crawler ' ]),
18+             'userId '        => $ this  ->faker ->numberBetween (1 , 100 ),
19+             'route '         => $ this  ->faker ->url (),
20+             'ipAddress '     => $ this  ->faker ->ipv4 (),
21+             'userAgent '     => $ this  ->faker ->userAgent (),
22+             'locale '        => $ this  ->faker ->locale (),
23+             'referer '       => $ this  ->faker ->optional ()->url (),
24+             'methodType '    => $ this  ->faker ->randomElement (['GET ' , 'POST ' , 'PUT ' , 'DELETE ' , 'PATCH ' ]),
25+             'created_at '    => $ this  ->faker ->dateTimeBetween ('-1 year ' , 'now ' ),
26+             'updated_at '    => $ this  ->faker ->dateTimeBetween ('-1 year ' , 'now ' ),
2727        ];
2828    }
2929
3030    /** 
31-      * Create an activity for today 
31+      * Create an activity for today.  
3232     */ 
3333    public  function  today (): static 
3434    {
@@ -41,7 +41,7 @@ public function today(): static
4141    }
4242
4343    /** 
44-      * Create an activity for yesterday 
44+      * Create an activity for yesterday.  
4545     */ 
4646    public  function  yesterday (): static 
4747    {
@@ -54,7 +54,7 @@ public function yesterday(): static
5454    }
5555
5656    /** 
57-      * Create an activity for last week 
57+      * Create an activity for last week.  
5858     */ 
5959    public  function  lastWeek (): static 
6060    {
@@ -67,7 +67,7 @@ public function lastWeek(): static
6767    }
6868
6969    /** 
70-      * Create an activity for last month 
70+      * Create an activity for last month.  
7171     */ 
7272    public  function  lastMonth (): static 
7373    {
@@ -80,7 +80,7 @@ public function lastMonth(): static
8080    }
8181
8282    /** 
83-      * Create an activity for last year 
83+      * Create an activity for last year.  
8484     */ 
8585    public  function  lastYear (): static 
8686    {
@@ -93,40 +93,40 @@ public function lastYear(): static
9393    }
9494
9595    /** 
96-      * Create a guest activity 
96+      * Create a guest activity.  
9797     */ 
9898    public  function  guest (): static 
9999    {
100100        return  $ this  ->state (function  (array  $ attributes ) {
101101            return  [
102102                'userType '  => 'Guest ' ,
103-                 'userId '  => null ,
103+                 'userId '     => null ,
104104            ];
105105        });
106106    }
107107
108108    /** 
109-      * Create a registered user activity 
109+      * Create a registered user activity.  
110110     */ 
111111    public  function  registered (): static 
112112    {
113113        return  $ this  ->state (function  (array  $ attributes ) {
114114            return  [
115115                'userType '  => 'Registered ' ,
116-                 'userId '  => $ this  ->faker ->numberBetween (1 , 100 ),
116+                 'userId '     => $ this  ->faker ->numberBetween (1 , 100 ),
117117            ];
118118        });
119119    }
120120
121121    /** 
122-      * Create a crawler activity 
122+      * Create a crawler activity.  
123123     */ 
124124    public  function  crawler (): static 
125125    {
126126        return  $ this  ->state (function  (array  $ attributes ) {
127127            return  [
128-                 'userType '  => 'Crawler ' ,
129-                 'userId '  => null ,
128+                 'userType '    => 'Crawler ' ,
129+                 'userId '      => null ,
130130                'userAgent '  => $ this  ->faker ->randomElement ([
131131                    'Googlebot/2.1 ' ,
132132                    'Bingbot/2.0 ' ,
@@ -138,43 +138,43 @@ public function crawler(): static
138138    }
139139
140140    /** 
141-      * Create a login activity 
141+      * Create a login activity.  
142142     */ 
143143    public  function  login (): static 
144144    {
145145        return  $ this  ->state (function  (array  $ attributes ) {
146146            return  [
147147                'description '  => 'User logged in ' ,
148-                 'methodType '  => 'POST ' ,
149-                 'route '  => '/login ' ,
148+                 'methodType '    => 'POST ' ,
149+                 'route '         => '/login ' ,
150150            ];
151151        });
152152    }
153153
154154    /** 
155-      * Create a logout activity 
155+      * Create a logout activity.  
156156     */ 
157157    public  function  logout (): static 
158158    {
159159        return  $ this  ->state (function  (array  $ attributes ) {
160160            return  [
161161                'description '  => 'User logged out ' ,
162-                 'methodType '  => 'POST ' ,
163-                 'route '  => '/logout ' ,
162+                 'methodType '    => 'POST ' ,
163+                 'route '         => '/logout ' ,
164164            ];
165165        });
166166    }
167167
168168    /** 
169-      * Create a view activity 
169+      * Create a view activity.  
170170     */ 
171171    public  function  view (): static 
172172    {
173173        return  $ this  ->state (function  (array  $ attributes ) {
174174            return  [
175175                'description '  => 'User viewed page ' ,
176-                 'methodType '  => 'GET ' ,
177-                 'route '  => $ this  ->faker ->randomElement ([
176+                 'methodType '    => 'GET ' ,
177+                 'route '         => $ this  ->faker ->randomElement ([
178178                    '/dashboard ' ,
179179                    '/profile ' ,
180180                    '/settings ' ,
@@ -185,15 +185,15 @@ public function view(): static
185185    }
186186
187187    /** 
188-      * Create a create activity 
188+      * Create a create activity.  
189189     */ 
190190    public  function  create (): static 
191191    {
192192        return  $ this  ->state (function  (array  $ attributes ) {
193193            return  [
194194                'description '  => 'User created resource ' ,
195-                 'methodType '  => 'POST ' ,
196-                 'route '  => $ this  ->faker ->randomElement ([
195+                 'methodType '    => 'POST ' ,
196+                 'route '         => $ this  ->faker ->randomElement ([
197197                    '/posts ' ,
198198                    '/users ' ,
199199                    '/products ' ,
@@ -204,15 +204,15 @@ public function create(): static
204204    }
205205
206206    /** 
207-      * Create an update activity 
207+      * Create an update activity.  
208208     */ 
209209    public  function  update (): static 
210210    {
211211        return  $ this  ->state (function  (array  $ attributes ) {
212212            return  [
213213                'description '  => 'User updated resource ' ,
214-                 'methodType '  => 'PUT ' ,
215-                 'route '  => $ this  ->faker ->randomElement ([
214+                 'methodType '    => 'PUT ' ,
215+                 'route '         => $ this  ->faker ->randomElement ([
216216                    '/posts/1 ' ,
217217                    '/users/1 ' ,
218218                    '/products/1 ' ,
@@ -223,15 +223,15 @@ public function update(): static
223223    }
224224
225225    /** 
226-      * Create a delete activity 
226+      * Create a delete activity.  
227227     */ 
228228    public  function  delete (): static 
229229    {
230230        return  $ this  ->state (function  (array  $ attributes ) {
231231            return  [
232232                'description '  => 'User deleted resource ' ,
233-                 'methodType '  => 'DELETE ' ,
234-                 'route '  => $ this  ->faker ->randomElement ([
233+                 'methodType '    => 'DELETE ' ,
234+                 'route '         => $ this  ->faker ->randomElement ([
235235                    '/posts/1 ' ,
236236                    '/users/1 ' ,
237237                    '/products/1 ' ,
0 commit comments