@@ -22,24 +22,24 @@ |
||
| 22 | 22 | class FeedController extends Controller |
| 23 | 23 | { |
| 24 | 24 | /** |
| 25 | - * Instance of Feed. |
|
| 26 | - * |
|
| 27 | - * @var Roumen\Feed\Facades\Feed |
|
| 28 | - */ |
|
| 25 | + * Instance of Feed. |
|
| 26 | + * |
|
| 27 | + * @var Roumen\Feed\Facades\Feed |
|
| 28 | + */ |
|
| 29 | 29 | private $feed; |
| 30 | 30 | |
| 31 | 31 | /** |
| 32 | - * Whether it is a RSS Feed. |
|
| 33 | - * |
|
| 34 | - * @var bool |
|
| 35 | - */ |
|
| 32 | + * Whether it is a RSS Feed. |
|
| 33 | + * |
|
| 34 | + * @var bool |
|
| 35 | + */ |
|
| 36 | 36 | private $isRss; |
| 37 | 37 | |
| 38 | 38 | /** |
| 39 | - * Create a new feed controller instance. |
|
| 40 | - * |
|
| 41 | - * @return void |
|
| 42 | - */ |
|
| 39 | + * Create a new feed controller instance. |
|
| 40 | + * |
|
| 41 | + * @return void |
|
| 42 | + */ |
|
| 43 | 43 | public function __construct() |
| 44 | 44 | { |
| 45 | 45 | $this->feed = Feed::make(); |
@@ -88,13 +88,13 @@ |
||
| 88 | 88 | public function feedAction(ProjectTeam $group = null) |
| 89 | 89 | { |
| 90 | 90 | if ($group->exists) { |
| 91 | - $group->projects->map(function ($project) { |
|
| 92 | - $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) { |
|
| 91 | + $group->projects->map(function($project) { |
|
| 92 | + $project->issues()->visible()->orderBy('created_at', 'desc')->get()->map(function($issue) { |
|
| 93 | 93 | $this->feedAddItem($issue); |
| 94 | 94 | }); |
| 95 | 95 | }); |
| 96 | 96 | } else { |
| 97 | - Issue::visible()->orderBy('created_at', 'desc')->get()->map(function ($issue) { |
|
| 97 | + Issue::visible()->orderBy('created_at', 'desc')->get()->map(function($issue) { |
|
| 98 | 98 | $this->feedAddItem($issue); |
| 99 | 99 | }); |
| 100 | 100 | } |