Completed
Push — master ( 00d54d...b17486 )
by Tyler
02:09
created
migrations/2016_03_17_000000_create_lern_tables.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 
3
-use Illuminate\Database\Schema\Blueprint;
4 3
 use Illuminate\Database\Migrations\Migration;
4
+use Illuminate\Database\Schema\Blueprint;
5 5
 
6 6
 class CreateLERNTables extends Migration {
7 7
 
Please login to merge, or discard this patch.
src/Handler.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Tylercd100\LERN;
4 4
 
5 5
 use Exception;
6
-use Tylercd100\LERN\Facades\LERN;
7 6
 use Illuminate\Foundation\Exceptions\Handler as ExceptionHandler;
7
+use Tylercd100\LERN\Facades\LERN;
8 8
     
9 9
 class Handler extends ExceptionHandler {
10 10
 
Please login to merge, or discard this patch.
src/Notifications/Notifier.php 1 patch
Unused Use Statements   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -3,8 +3,8 @@
 block discarded – undo
3 3
 namespace Tylercd100\LERN\Notifications;
4 4
 
5 5
 use Exception;
6
-use Monolog\Logger;
7 6
 use Monolog\Handler\HandlerInterface;
7
+use Monolog\Logger;
8 8
 use Tylercd100\LERN\Notifications\MonologHandlerFactory;
9 9
 
10 10
 class Notifier {
Please login to merge, or discard this patch.
src/LERN.php 1 patch
Braces   +6 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,8 +21,9 @@  discard block
 block discarded – undo
21 21
      */
22 22
     public function __construct(Notifier $notifier = null)
23 23
     {
24
-        if (empty($notifier))
25
-            $notifier = new Notifier();
24
+        if (empty($notifier)) {
25
+                    $notifier = new Notifier();
26
+        }
26 27
         $this->notifier = $notifier;
27 28
     }
28 29
 
@@ -55,8 +56,9 @@  discard block
 block discarded – undo
55 56
             'trace'       => $e->getTraceAsString(),
56 57
         ];
57 58
 
58
-        if ($e instanceof HttpExceptionInterface)
59
-            $opts['status_code'] = $e->getStatusCode();
59
+        if ($e instanceof HttpExceptionInterface) {
60
+                    $opts['status_code'] = $e->getStatusCode();
61
+        }
60 62
 
61 63
         return ExceptionModel::create($opts);
62 64
     }
Please login to merge, or discard this patch.
src/Notifications/MonologHandlerFactory.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,9 @@
 block discarded – undo
18 18
     public function create($driver, $subject = null)
19 19
     {
20 20
         $this->config = config('lern.notify.' . $driver);
21
-        if (is_array($this->config))
22
-            return $this->{$driver}($subject);
21
+        if (is_array($this->config)) {
22
+                    return $this->{$driver}($subject);
23
+        }
23 24
     }
24 25
 
25 26
     /**
Please login to merge, or discard this patch.