Passed
Push — master ( ebbbe1...4650a2 )
by James
08:48
created
app/Api/V1/Controllers/BillController.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * BillController.php
5 5
  * Copyright (c) 2018 [email protected]
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         parent::__construct();
55 55
         $this->middleware(
56
-            function ($request, $next) {
56
+            function($request, $next) {
57 57
                 /** @var BillRepositoryInterface repository */
58 58
                 $this->repository = app(BillRepositoryInterface::class);
59 59
                 $this->repository->setUser(auth()->user());
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
     public function store(BillRequest $request)
133 133
     {
134 134
         $bill    = $this->repository->store($request->getAll());
135
-        if(null !== $bill) {
135
+        if (null !== $bill) {
136 136
         $manager = new Manager();
137 137
         $baseUrl = $request->getSchemeAndHttpHost() . '/api/v1';
138 138
         $manager->setSerializer(new JsonApiSerializer($baseUrl));
Please login to merge, or discard this patch.
app/Http/Controllers/BillController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@  discard block
 block discarded – undo
18 18
  * You should have received a copy of the GNU General Public License
19 19
  * along with Firefly III. If not, see <http://www.gnu.org/licenses/>.
20 20
  */
21
-declare(strict_types=1);
21
+declare(strict_types = 1);
22 22
 
23 23
 namespace FireflyIII\Http\Controllers;
24 24
 
@@ -61,7 +61,7 @@  discard block
 block discarded – undo
61 61
         View::share('uploadSize', $uploadSize);
62 62
 
63 63
         $this->middleware(
64
-            function ($request, $next) {
64
+            function($request, $next) {
65 65
                 app('view')->share('title', trans('firefly.bills'));
66 66
                 app('view')->share('mainTitleIcon', 'fa-calendar-o');
67 67
                 $this->attachments = app(AttachmentHelperInterface::class);
@@ -182,7 +182,7 @@  discard block
 block discarded – undo
182 182
         $transformer = new BillTransformer($parameters);
183 183
         /** @var Collection $bills */
184 184
         $bills = $paginator->getCollection()->map(
185
-            function (Bill $bill) use ($transformer) {
185
+            function(Bill $bill) use ($transformer) {
186 186
                 return $transformer->transform($bill);
187 187
             }
188 188
         );
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
         $overallAverage = $repository->getOverallAverage($bill);
239 239
         $manager        = new Manager();
240 240
         $manager->setSerializer(new DataArraySerializer());
241
-        $manager->parseIncludes(['attachments','notes']);
241
+        $manager->parseIncludes(['attachments', 'notes']);
242 242
 
243 243
         // Make a resource out of the data and
244 244
         $parameters = new ParameterBag();
Please login to merge, or discard this patch.