Completed
Push — master ( 47524a...34cc14 )
by Phecho
07:54 queued 53s
created
app/Handlers/Events/Owner/SendOwnerMomentHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
      * @param \Gitamin\Models\Comment $comment
42 42
      * @param int                     $action
43 43
      */
44
-    protected function trigger(Owner &$owner, $action)
44
+    protected function trigger(Owner & $owner, $action)
45 45
     {
46 46
         $data = [
47 47
             'target_type' => 'Owner',
Please login to merge, or discard this patch.
app/Models/User.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -89,12 +89,12 @@  discard block
 block discarded – undo
89 89
     {
90 90
         parent::boot();
91 91
 
92
-        self::creating(function ($user) {
92
+        self::creating(function($user) {
93 93
             $ownerExists = Owner::where('path', '=', $user->username)->exists();
94 94
             if ($ownerExists) {
95 95
                 return false;
96 96
             }
97
-            if (! $user->api_key) {
97
+            if (!$user->api_key) {
98 98
                 $user->api_key = self::generateApiKey();
99 99
             }
100 100
         });
@@ -141,7 +141,7 @@  discard block
 block discarded – undo
141 141
     {
142 142
         $user = static::where('api_key', $token)->first($columns);
143 143
 
144
-        if (! $user) {
144
+        if (!$user) {
145 145
             throw new ModelNotFoundException();
146 146
         }
147 147
 
Please login to merge, or discard this patch.