Completed
Push — master ( d8d25b...3f99c9 )
by Quentin
59s
created
src/Majora/Framework/Validation/ValidationException.php 1 patch
Spacing   +4 added lines, -6 removed lines patch added patch discarded remove patch
@@ -56,8 +56,7 @@  discard block
 block discarded – undo
56 56
                 'Validation failed on %s%s',
57 57
                 $this->entity ? get_class($this->entity) : '',
58 58
                 $this->entity instanceof CollectionableInterface ?
59
-                    sprintf('#%s', $this->entity->getId()) :
60
-                    ''
59
+                    sprintf('#%s', $this->entity->getId()) : ''
61 60
                 ,
62 61
                 empty($this->groups) ? '' : sprintf(' for ["%s"] groups',
63 62
                     implode('", "', $this->groups)
@@ -96,8 +95,7 @@  discard block
 block discarded – undo
96 95
     public function getReport()
97 96
     {
98 97
         return $this->report ?
99
-            $this->report :
100
-            new EntityCollection()
98
+            $this->report : new EntityCollection()
101 99
         ;
102 100
     }
103 101
 
@@ -111,10 +109,10 @@  discard block
 block discarded – undo
111 109
         $messages = array();
112 110
         $report = $this->getReport();
113 111
 
114
-        switch(true){
112
+        switch (true) {
115 113
 
116 114
             case $report instanceof ConstraintViolationListInterface:
117
-                foreach ($report as $constraintViolation){
115
+                foreach ($report as $constraintViolation) {
118 116
                     $messages[] = $constraintViolation->getMessage();
119 117
                 }
120 118
                 break;
Please login to merge, or discard this patch.
src/Majora/Framework/Date/Clock.php 1 patch
Spacing   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -29,8 +29,7 @@  discard block
 block discarded – undo
29 29
     protected function mock($date)
30 30
     {
31 31
         $this->currentDate = $date instanceof \DateTime ?
32
-            $date :
33
-            date_create($date)
32
+            $date : date_create($date)
34 33
         ;
35 34
     }
36 35
 
@@ -46,8 +45,7 @@  discard block
 block discarded – undo
46 45
         $date = clone $this->currentDate;
47 46
 
48 47
         return empty($format) ?
49
-            $date :
50
-            $date->format($format)
48
+            $date : $date->format($format)
51 49
         ;
52 50
     }
53 51
 }
Please login to merge, or discard this patch.