Completed
Push — master ( 1eda1b...f5070b )
by David
06:07
created
src/views/forum/thread.blade.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2,20 +2,20 @@
 block discarded – undo
2 2
 
3 3
 @section('breadcrumbs')
4 4
 <?php
5
-    $postCounts = [];
5
+    $postCounts = [ ];
6 6
 
7 7
     /* Add Post Authors post count to postCounts array */
8
-    $postCounts[$post->author->id] = $userHelper->getPostCount($post->author->id);
8
+    $postCounts[ $post->author->id ] = $userHelper->getPostCount($post->author->id);
9 9
 
10 10
     $forum = $post->forum;
11 11
     $body = $sanitizer->sanitize($post->body);
12 12
     $sticky = (bool)$post->sticky;
13 13
     $locked = (bool)$post->locked;
14 14
     if ($locked) {
15
-        $title = 'Locked: ' . $post->title;
15
+        $title = 'Locked: '.$post->title;
16 16
     } else {
17 17
         if ($sticky) {
18
-            $title = 'Sticky: ' . $post->title;
18
+            $title = 'Sticky: '.$post->title;
19 19
         } else {
20 20
             $title = $post->title;
21 21
         }
Please login to merge, or discard this patch.
src/views/forum/thread/_addReply.blade.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -1,8 +1,8 @@  discard block
 block discarded – undo
1 1
 <?php
2
-    if(isset($wysiwyg)) {
3
-        $wysiwygInclude = $wysiwyg['include'];
2
+    if (isset($wysiwyg)) {
3
+        $wysiwygInclude = $wysiwyg[ 'include' ];
4 4
 
5
-        switch ($wysiwyg['name']) {
5
+        switch ($wysiwyg[ 'name' ]) {
6 6
             case 'tinymce':
7 7
                 $js = '//tinymce.cachefly.net/4.2/tinymce.min.js';
8 8
                 $css = null;
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
         <textarea name="body" class="form-control"></textarea>
30 30
         @if (isset($wysiwygInclude))
31 31
             <script type="application/javascript">
32
-                <?=$init;?>
32
+                <?=$init; ?>
33 33
             </script>
34 34
         @endif
35 35
 
Please login to merge, or discard this patch.
src/views/layout/bootstrap/_createModal.blade.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
         @endif
36 36
     }
37 37
 </script>
38
-<div class="modal fade" id="<?=$modal_id;?>" tabindex="-1" role="dialog" aria-hidden="true">
38
+<div class="modal fade" id="<?=$modal_id; ?>" tabindex="-1" role="dialog" aria-hidden="true">
39 39
     <div class="modal-dialog">
40 40
         <div class="modal-content">
41 41
             <div class="modal-header">
@@ -55,13 +55,13 @@  discard block
 block discarded – undo
55 55
                     @if(in_array($f['type'], ['text', 'url', 'date', 'datetime', 'time', 'email', 'number']))
56 56
                         <div class="input-group">
57 57
                             <label class="label" for="{{ $f['name'] }}">{{ $f['label'] or ucfirst($f['name']) }}</label>
58
-                            <input class="form-control" id="{{ $f['name'] }}" <?php if(isset($f['value'])) { echo 'value="'. $f['value'] .'" '; } ?>type="{{ $f['type'] }}" placeholder="{{ $f['name'] }}" <?php if(isset($f['required']) && $f['required']) { echo 'required'; } ?> />
58
+                            <input class="form-control" id="{{ $f['name'] }}" <?php if (isset($f[ 'value' ])) { echo 'value="'.$f[ 'value' ].'" '; } ?>type="{{ $f['type'] }}" placeholder="{{ $f['name'] }}" <?php if (isset($f[ 'required' ]) && $f[ 'required' ]) { echo 'required'; } ?> />
59 59
                         </div>
60 60
                     @elseif(in_array($f['type'], ['select']))
61 61
                         <div class="input-group">
62 62
                             <label class="label" for="{{ $f['name'] }}">{{ $f['label'] or ucfirst($f['name']) }}</label>
63 63
                             <select id="{{ $f['name'] }}" class="form-control">
64
-                                <?php $optionField = $f['field'];
64
+                                <?php $optionField = $f[ 'field' ];
65 65
                                 if (strpos($optionField, '.') !== false) {
66 66
                                     $optionFields = explode('.', $optionField);
67 67
                                 }
Please login to merge, or discard this patch.