@@ -20,7 +20,7 @@ |
||
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 |
@@ -39,7 +39,7 @@ |
||
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 | } |
@@ -20,11 +20,11 @@ |
||
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 |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
62 | 62 | |
63 | 63 | </section> |
64 | 64 | |
65 | -<?php include(__DIR__ . '/../_partials/footer.php'); ?> |
|
65 | +<?php include(__DIR__.'/../_partials/footer.php'); ?> |
@@ -1,4 +1,4 @@ discard block |
||
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 |
||
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 |
@@ -5,7 +5,7 @@ discard block |
||
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 |
||
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 }}"> |
@@ -15,7 +15,9 @@ |
||
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 | ?> |
@@ -2,11 +2,11 @@ |
||
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 | ?> |
@@ -6,7 +6,9 @@ |
||
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 | ?> |
@@ -11,7 +11,7 @@ |
||
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'); |
@@ -13,7 +13,7 @@ discard block |
||
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 |
||
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(); |