Completed
Branch master (40a2d1)
by Valentin
06:58
created
Category
source/LogViewer/Models/Entities/Log.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -143,8 +143,8 @@
 block discarded – undo
143 143
     public function getRotations()
144 144
     {
145 145
         $rotations = $this->rotations;
146
-        usort($rotations, function ($a, $b) {
147
-            return $b->getFile()->getMTime()-$a->getFile()->getMTime();
146
+        usort($rotations, function($a, $b) {
147
+            return $b->getFile()->getMTime() - $a->getFile()->getMTime();
148 148
         });
149 149
 
150 150
         return $rotations;
Please login to merge, or discard this patch.
source/LogViewer/Models/LogsSource.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
      */
72 72
     public function findLastLog()
73 73
     {
74
-        $files = $this->finder->files()->in($this->directory)->sort(function ($a, $b) {
74
+        $files = $this->finder->files()->in($this->directory)->sort(function($a, $b) {
75 75
             return $b->getMTime() - $a->getMTime();
76 76
         });
77 77
 
Please login to merge, or discard this patch.