Completed
Pull Request — ft/package (#25)
by Philippe
26:38 queued 12:34
created
app/Http/Middleware/PermissionMiddleware.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 block discarded – undo
20 20
             return redirect('/');
21 21
         }
22 22
 
23
-        if (! $request->user()->can($permission)) {
23
+        if (!$request->user()->can($permission)) {
24 24
             abort(403);
25 25
         }
26 26
 
Please login to merge, or discard this patch.
app/Http/Middleware/AuthenticateSuperadmin.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
         if (!$this->auth->user() || !$this->auth->user()->isSuperAdmin()) {
40 40
             if ($request->ajax()) {
41 41
                 return response('Unauthorized.', 401);
42
-            } else {
42
+            }else {
43 43
                 return redirect()->guest('admin/login');
44 44
             }
45 45
         }
Please login to merge, or discard this patch.
app/Http/Middleware/RoleMiddleware.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,11 +20,11 @@
 block discarded – undo
20 20
             return redirect('/');
21 21
         }
22 22
 
23
-        if (! $request->user()->hasRole($role)) {
23
+        if (!$request->user()->hasRole($role)) {
24 24
             abort(403);
25 25
         }
26 26
 
27
-        if (! $request->user()->can($permission)) {
27
+        if (!$request->user()->can($permission)) {
28 28
             abort(403);
29 29
         }
30 30
 
Please login to merge, or discard this patch.
resources/views/spirit/settings/typography.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php include(__DIR__ . '/../_partials/header.php'); ?>
1
+<?php include(__DIR__.'/../_partials/header.php'); ?>
2 2
 
3 3
 <section class="column stack-l typography" id="typography">
4 4
     <h1>Typography</h1>
@@ -62,4 +62,4 @@  discard block
 block discarded – undo
62 62
 
63 63
 </section>
64 64
 
65
-<?php include(__DIR__ . '/../_partials/footer.php'); ?>
65
+<?php include(__DIR__.'/../_partials/footer.php'); ?>
Please login to merge, or discard this patch.
resources/views/spirit/settings/colors.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,4 +1,4 @@  discard block
 block discarded – undo
1
-<?php include(__DIR__ . '/../_partials/header.php'); ?>
1
+<?php include(__DIR__.'/../_partials/header.php'); ?>
2 2
 
3 3
     <section class="column stack-l color-scheme" id="colorscheme">
4 4
         <h1>Color Scheme</h1>
@@ -205,4 +205,4 @@  discard block
 block discarded – undo
205 205
         </div>
206 206
     </section>
207 207
 
208
-<?php include(__DIR__ . '/../_partials/footer.php'); ?>
209 208
\ No newline at end of file
209
+<?php include(__DIR__.'/../_partials/footer.php'); ?>
210 210
\ No newline at end of file
Please login to merge, or discard this patch.
resources/views/back/note/_form.blade.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -5,7 +5,7 @@  discard block
 block discarded – undo
5 5
     <div class="col-lg-6 pn {{ $errors->first('type') ? 'has-error' : null }}">
6 6
         <select name="type" id="edit-type" class="form-control">
7 7
             @foreach($note::$typeMapping as $key => $value)
8
-                <?php $selected = (old('type',$formValues->type()) == $key); ?>
8
+                <?php $selected = (old('type', $formValues->type()) == $key); ?>
9 9
                 <option {{ ($selected ? 'selected="true"' : null) }} value="{{ $key }}">{{ $value }}</option>
10 10
             @endforeach
11 11
         </select>
@@ -15,9 +15,9 @@  discard block
 block discarded – undo
15 15
 
16 16
                 <?php
17 17
                     $bootstrapKey = $key;
18
-                    if($key == 'error') $bootstrapKey = 'danger';
18
+                    if ($key == 'error') $bootstrapKey = 'danger';
19 19
 
20
-                    $selected = (old('level',$formValues->level()) == $key);
20
+                    $selected = (old('level', $formValues->level()) == $key);
21 21
                 ?>
22 22
 
23 23
                 <input {{ ($selected ? 'checked="checked"' : null) }} type="radio" name="level" id="level-{{$key}}" value="{{ $key }}">
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,9 @@
 block discarded – undo
15 15
 
16 16
                 <?php
17 17
                     $bootstrapKey = $key;
18
-                    if($key == 'error') $bootstrapKey = 'danger';
18
+                    if($key == 'error') {
19
+                        $bootstrapKey = 'danger';
20
+                    }
19 21
 
20 22
                     $selected = (old('level',$formValues->level()) == $key);
21 23
                 ?>
Please login to merge, or discard this patch.
resources/views/back/_elements/formgroup.blade.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -2,11 +2,11 @@
 block discarded – undo
2 2
 
3 3
     // Normally field is a single string value representing the name of the input.
4 4
     // For multiple fields in the same formgroup we allow to add an array of fields as well.
5
-    $fields = (array) $field;
5
+    $fields = (array)$field;
6 6
 
7 7
     $hasErrors = false;
8
-    foreach($fields as $field){
9
-        if($errors->has($field)) $hasErrors = true;
8
+    foreach ($fields as $field) {
9
+        if ($errors->has($field)) $hasErrors = true;
10 10
     }
11 11
 
12 12
 ?>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,9 @@
 block discarded – undo
6 6
 
7 7
     $hasErrors = false;
8 8
     foreach($fields as $field){
9
-        if($errors->has($field)) $hasErrors = true;
9
+        if($errors->has($field)) {
10
+            $hasErrors = true;
11
+        }
10 12
     }
11 13
 
12 14
 ?>
Please login to merge, or discard this patch.
database/migrations/2018_01_09_153551_create_media_table.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
     public function up()
13 13
     {
14
-        Schema::create('media', function (Blueprint $table) {
14
+        Schema::create('media', function(Blueprint $table) {
15 15
             $table->increments('id');
16 16
             $table->morphs('model');
17 17
             $table->string('collection_name');
Please login to merge, or discard this patch.
database/migrations/2014_10_12_000000_change_users_table.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
      */
14 14
     public function up()
15 15
     {
16
-        Schema::create('chief_users', function (Blueprint $table) {
16
+        Schema::create('chief_users', function(Blueprint $table) {
17 17
             $table->increments('id');
18 18
             $table->string('firstname');
19 19
             $table->string('lastname');
@@ -25,7 +25,7 @@  discard block
 block discarded – undo
25 25
             $table->timestamps();
26 26
         });
27 27
 
28
-        Schema::create('chief_password_resets', function (Blueprint $table) {
28
+        Schema::create('chief_password_resets', function(Blueprint $table) {
29 29
             $table->string('email')->index();
30 30
             $table->string('token')->index();
31 31
             $table->timestamp('created_at')->nullable();
Please login to merge, or discard this patch.