Completed
Push — master ( a8a248...6f3683 )
by Quentin
13:58
created
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
 
@@ -49,8 +48,7 @@  discard block
 block discarded – undo
49 48
         ;
50 49
 
51 50
         return empty($format) ?
52
-            $date :
53
-            $date->format($format)
51
+            $date : $date->format($format)
54 52
         ;
55 53
     }
56 54
 }
Please login to merge, or discard this patch.
src/Majora/Framework/Loader/Bridge/Form/Type/EntityCollectionType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
                     'loader_method' => 'choiceList',
40 40
                     'choice_value' => 'id',
41 41
                     'choice_label' => function ($choice) {
42
-                        return (string)$choice;
42
+                        return (string) $choice;
43 43
                     },
44 44
                     'choices' => function (Options $options) {
45 45
 
Please login to merge, or discard this patch.
src/Majora/Framework/Model/EntityCollection.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -113,8 +113,7 @@
 block discarded – undo
113 113
             foreach ($filters as $key => $value) {
114 114
                 $current = $this->getPropertyAccessor()->getValue($entity, $key);
115 115
                 $res = $res && (is_array($value) ?
116
-                    in_array($current, $value) :
117
-                    $current == $value
116
+                    in_array($current, $value) : $current == $value
118 117
                 );
119 118
             }
120 119
 
Please login to merge, or discard this patch.