Completed
Push — 1.x ( ce34cb...ebc2f4 )
by Akihito
02:21
created
src/Provide/Error/LogRef.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
     public function __construct(\Exception $e)
25 25
     {
26
-        $this->ref = (string) hash('crc32b', get_class($e) . $e->getMessage() . $e->getFile() . $e->getLine());
26
+        $this->ref = (string) hash('crc32b', get_class($e).$e->getMessage().$e->getFile().$e->getLine());
27 27
         $this->exceptionString = new ExceptionAsString;
28 28
     }
29 29
 
Please login to merge, or discard this patch.
src/Provide/Error/ExceptionAsString.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@  discard block
 block discarded – undo
20 20
     {
21 21
         $date = date(DATE_RFC2822);
22 22
         $exceptions = $this->getExceptionString($e);
23
-        $context = isset($GLOBALS['context']) ? "({$GLOBALS['context']})" . PHP_EOL : '';
23
+        $context = isset($GLOBALS['context']) ? "({$GLOBALS['context']})".PHP_EOL : '';
24 24
         $phpVal = $this->getPhpVariables();
25 25
         $trace = $this->getTrace($e);
26 26
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     {
83 83
         $trace = $e->getTrace();
84 84
         $i = 0;
85
-        array_walk($trace, function (&$trace, $index) use ($i) {
85
+        array_walk($trace, function(&$trace, $index) use ($i) {
86 86
             $trace = isset($trace['class']) ? $this->getClassTrace($trace, $index) : $this->getFunctionTrace($trace, $index);
87 87
         });
88 88
 
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     {
94 94
         $string = sprintf('#%d %s%s%s(%s)', $index, $trace['class'], $trace['type'], $trace['function'], $this->argsAsString($trace['args']));
95 95
 
96
-        return isset($trace['file']) ? $string . sprintf(' in %s(%s)', $trace['file'], $trace['line']) : $string;
96
+        return isset($trace['file']) ? $string.sprintf(' in %s(%s)', $trace['file'], $trace['line']) : $string;
97 97
     }
98 98
 
99 99
     private function getFunctionTrace(array $trace, $index)
Please login to merge, or discard this patch.
src/Provide/Error/DevVndErrorPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function toString()
23 23
     {
24
-        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL;
24
+        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).PHP_EOL;
25 25
     }
26 26
 
27 27
     /**
Please login to merge, or discard this patch.
src/Provide/Error/ProdVndErrorPage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
 
22 22
     public function toString()
23 23
     {
24
-        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) . PHP_EOL;
24
+        $this->view = json_encode($this->body, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES).PHP_EOL;
25 25
     }
26 26
 
27 27
     /**
Please login to merge, or discard this patch.