Completed
Pull Request — master (#58)
by Phecho
03:31
created
app/Http/Controllers/FeedController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -76,16 +76,16 @@
 block discarded – undo
76 76
      *
77 77
      * @return \Illuminate\Http\Response
78 78
      */
79
-    private function feedAction(Owner &$owner, $isRss)
79
+    private function feedAction(Owner & $owner, $isRss)
80 80
     {
81 81
         if ($owner->exists) {
82
-            $owner->projects->map(function ($project) {
83
-                $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) use ($isRss) {
82
+            $owner->projects->map(function($project) {
83
+                $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function($issue) use ($isRss) {
84 84
                     $this->feedAddItem($issue, $isRss);
85 85
                 });
86 86
             });
87 87
         } else {
88
-            Issue::visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) use ($isRss) {
88
+            Issue::visible()->orderBy('created_at', 'desc')->get()->map(function($issue) use ($isRss) {
89 89
                 $this->feedAddItem($issue, $isRss);
90 90
             });
91 91
         }
Please login to merge, or discard this patch.
app/Models/Project.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,7 +161,7 @@  discard block
 block discarded – undo
161 161
      */
162 162
     public static function findByPath($owner_path, $project_path, $columns = ['projects.*'])
163 163
     {
164
-        $project = static::leftJoin('owners', function ($join) {
164
+        $project = static::leftJoin('owners', function($join) {
165 165
             $join->on('projects.owner_id', '=', 'owners.id');
166 166
         })->where('projects.path', '=', $project_path)->where('owners.path', '=', $owner_path)->first($columns);
167 167
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
      */
216 216
     public function getTagsListAttribute()
217 217
     {
218
-        $tags = $this->tags->map(function ($tag) {
218
+        $tags = $this->tags->map(function($tag) {
219 219
             return $tag->name;
220 220
         });
221 221
 
Please login to merge, or discard this patch.
app/Handlers/Commands/Comment/UpdateCommentCommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
             'team_id'     => $command->team_id,
55 55
         ];
56 56
 
57
-        return array_filter($params, function ($val) {
57
+        return array_filter($params, function($val) {
58 58
             return $val !== null;
59 59
         });
60 60
     }
Please login to merge, or discard this patch.
app/Handlers/Commands/Moment/AddMomentCommandHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,10 +51,10 @@
 block discarded – undo
51 51
             'author_id' => $command->author_id,
52 52
         ];
53 53
 
54
-        if($command->title) {
54
+        if ($command->title) {
55 55
             $data['title'] = $command->title;
56 56
         }
57
-        if($command->data) {
57
+        if ($command->data) {
58 58
             $data['data'] = $command->data;
59 59
         }
60 60
         // Link with the target.
Please login to merge, or discard this patch.
app/Handlers/Events/Issue/SendIssueEmailNotificationHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -77,11 +77,11 @@
 block discarded – undo
77 77
                     'token'            => $subscriber->token,
78 78
                     'unsubscribe_link' => route('subscribe.unsubscribe', ['code' => $subscriber->verify_code]),
79 79
                 ];
80
-                error_log(var_export($mail,true), 3, '/tmp/mail.log');
80
+                error_log(var_export($mail, true), 3, '/tmp/mail.log');
81 81
                 $this->mailer->queue([
82 82
                     'html' => 'emails.issues.new-html',
83 83
                     'text' => 'emails.issues.new-text',
84
-                ], $mail, function (Message $message) use ($mail) {
84
+                ], $mail, function(Message $message) use ($mail) {
85 85
                     $message->to($mail['email'])->subject($mail['subject']);
86 86
                 });
87 87
             }
Please login to merge, or discard this patch.
app/Handlers/Events/Project/SendProjectMomentHandler.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
      */
32 32
     public function handle(ProjectEventInterface $event)
33 33
     {
34
-        if($event instanceof ProjectWasUpdateEvent) {
34
+        if ($event instanceof ProjectWasUpdateEvent) {
35 35
             $action = Moment::UPDATED;
36 36
         } else if ($event instanceof ProjectWasRemovedEvent) {
37 37
             $action = Moment::CLOSED;
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * @param int                     $action
50 50
      *
51 51
     */
52
-    protected function trigger(Project &$project, $action)
52
+    protected function trigger(Project & $project, $action)
53 53
     {
54 54
         $data = [
55 55
             'target_type' => 'Project',
Please login to merge, or discard this patch.