Completed
Branch master (8c7022)
by Roger
10:41
created
app/Http/Controllers/ApiController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,8 +3,6 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7
-use App\Http\Requests;
8 6
 use App\Http\Controllers\Controller;
9 7
 
10 8
 class ApiController extends Controller
Please login to merge, or discard this patch.
app/Http/Controllers/TagController.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -3,9 +3,7 @@
 block discarded – undo
3 3
 namespace App\Http\Controllers;
4 4
 
5 5
 use Illuminate\Http\Request;
6
-
7 6
 use App\Acme\Transformers\TagTransformer;
8
-use App\Http\Requests;
9 7
 use App\Http\Controllers\Controller;
10 8
 use phpDocumentor\Reflection\DocBlock\Tag;
11 9
 
Please login to merge, or discard this patch.
app/Http/Controllers/TaskController.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -4,12 +4,9 @@
 block discarded – undo
4 4
 
5 5
 use App\Task;
6 6
 use Illuminate\Http\Request;
7
-
8 7
 use App\Acme\Transformers\TaskTransformer;
9
-use App\Http\Requests;
10 8
 use App\Http\Controllers\Controller;
11 9
 use Illuminate\Support\Facades\Input;
12
-use phpDocumentor\Reflection\DocBlock\Tag;
13 10
 use Symfony\Component\HttpFoundation\Response;
14 11
 
15 12
 class TaskController extends Controller
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     public function store(Request $request)
58 58
     {
59
-        if (! Input::get('name') or ! Input::get('done') or ! Input::get('priority'))
59
+        if ( ! Input::get('name') or ! Input::get('done') or ! Input::get('priority'))
60 60
         {
61 61
             return $this->setStatusCode(IlluminateResponse::HTTP_UNPROCESSABLE_ENTITY)
62 62
                 ->respondWithError('Parameters failed validation for a task.');
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
     public function show($id)
75 75
     {
76 76
         $task = Task::find($id);
77
-        if (!$task) {
77
+        if ( ! $task) {
78 78
             return $this->respondNotFound('La tasca no existeix!');
79 79
         }
80 80
         return $this->respond([
@@ -135,8 +135,8 @@  discard block
 block discarded – undo
135 135
         $task->save();
136 136
     }
137 137
 
138
-    public function transform ($tasks){
139
-        return arry_map(function ($task){
138
+    public function transform($tasks) {
139
+        return arry_map(function($task) {
140 140
             return [
141 141
             'name' => $task['name'],
142 142
             'text' => $task['text'],
Please login to merge, or discard this patch.
app/Providers/RouteServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      */
38 38
     public function map(Router $router)
39 39
     {
40
-        $router->group(['namespace' => $this->namespace], function ($router) {
40
+        $router->group(['namespace' => $this->namespace], function($router) {
41 41
             require app_path('Http/routes.php');
42 42
         });
43 43
     }
Please login to merge, or discard this patch.
app/Console/Kernel.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,6 +25,6 @@
 block discarded – undo
25 25
     protected function schedule(Schedule $schedule)
26 26
     {
27 27
         $schedule->command('inspire')
28
-                 ->hourly();
28
+                    ->hourly();
29 29
     }
30 30
 }
Please login to merge, or discard this patch.
app/Http/routes.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
 |
12 12
 */
13 13
 
14
-Route::get('/', function () {
14
+Route::get('/', function() {
15 15
     return view('welcome');
16 16
 });
17 17
 
Please login to merge, or discard this patch.