Completed
Push — 4.2 ( edfa0f...bbb68b )
by David
59s
created
src/Mouf/Database/TDBM/Utils/BeanDescriptor.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
      */
93 93
     public function getConstructorProperties()
94 94
     {
95
-        $constructorProperties = array_filter($this->beanPropertyDescriptors, function (AbstractBeanPropertyDescriptor $property) {
95
+        $constructorProperties = array_filter($this->beanPropertyDescriptors, function(AbstractBeanPropertyDescriptor $property) {
96 96
             return $property->isCompulsory();
97 97
         });
98 98
 
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
     public function getPropertiesWithDefault()
108 108
     {
109 109
         $properties = $this->getPropertiesForTable($this->table);
110
-        $defaultProperties = array_filter($properties, function (AbstractBeanPropertyDescriptor $property) {
110
+        $defaultProperties = array_filter($properties, function(AbstractBeanPropertyDescriptor $property) {
111 111
             return $property->hasDefault();
112 112
         });
113 113
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     public function getExposedProperties()
123 123
     {
124
-        $exposedProperties = array_filter($this->beanPropertyDescriptors, function (AbstractBeanPropertyDescriptor $property) {
124
+        $exposedProperties = array_filter($this->beanPropertyDescriptors, function(AbstractBeanPropertyDescriptor $property) {
125 125
             return $property->getTable()->getName() == $this->table->getName();
126 126
         });
127 127
 
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         }
332 332
 
333 333
         foreach ($descriptorsByMethodName as $descriptorsForMethodName) {
334
-            if (count($descriptorsForMethodName) > 1) {
334
+            if (count($descriptorsForMethodName)>1) {
335 335
                 foreach ($descriptorsForMethodName as $descriptor) {
336 336
                     $descriptor->useAlternativeName();
337 337
                 }
@@ -424,7 +424,7 @@  discard block
 block discarded – undo
424 424
 
425 425
         $classes = $this->generateExtendsAndUseStatements($parentFk);
426 426
 
427
-        $uses = array_map(function ($className) use ($beannamespace) {
427
+        $uses = array_map(function($className) use ($beannamespace) {
428 428
             return 'use '.$beannamespace.'\\'.$className.";\n";
429 429
         }, $classes);
430 430
         $use = implode('', $uses);
Please login to merge, or discard this patch.