Completed
Push — develop ( 62f68e...872778 )
by Carsten
13s
created
module/Core/src/Entity/Tree/AbstractLeafs.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 {
29 29
     use EntityTrait, ClonePropertiesTrait;
30 30
 
31
-    private $cloneProperties = [ '!items' ];
31
+    private $cloneProperties = ['!items'];
32 32
 
33 33
     /**
34 34
      * The leafs.
Please login to merge, or discard this patch.
module/Core/src/Entity/AttachableEntityTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@
 block discarded – undo
78 78
     /**
79 79
      * @see AttachableEntityInterface::createAttachedEntity()
80 80
      */
81
-    public function createAttachedEntity($entityClass, $values = [], $key=null)
81
+    public function createAttachedEntity($entityClass, $values = [], $key = null)
82 82
     {
83 83
         return $this->getAttachableEntityManager()->createAttachedEntity($entityClass, $values, $key);
84 84
     }
Please login to merge, or discard this patch.
module/Core/src/Entity/AbstractLocation.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
                     ? [
70 70
                         'type' => $coords->getType(),
71 71
                         'coordinates' => $coords->getCoordinates(),
72
-                      ]
72
+                        ]
73 73
                     : null
74 74
 
75 75
         ];
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -96,23 +96,23 @@  discard block
 block discarded – undo
96 96
             }
97 97
         }
98 98
         if ($number) {
99
-            $str .= ' ' . $number . ', ';
99
+            $str .= ' '.$number.', ';
100 100
         }
101 101
         if ($postalCode) {
102
-            $str .= $postalCode . ' ';
102
+            $str .= $postalCode.' ';
103 103
         }
104 104
         if ($city) {
105 105
             $str .= $city;
106 106
         }
107 107
         if ($region) {
108
-            $str .= ', ' . $region;
108
+            $str .= ', '.$region;
109 109
         }
110 110
         if ($country) {
111
-            $str .= ', ' . $country;
111
+            $str .= ', '.$country;
112 112
         }
113 113
         if ($coords) {
114 114
             $coords = $coords->getCoordinates();
115
-            $str .= ' ( ' . join(', ', $coords) . ' )';
115
+            $str .= ' ( '.join(', ', $coords).' )';
116 116
         }
117 117
         
118 118
         return $str;
@@ -154,7 +154,7 @@  discard block
 block discarded – undo
154 154
             }
155 155
 
156 156
             if ('coordinates' == $key) {
157
-                $class = '\\Geo\\Entity\\Geometry\\' . $value['type'];
157
+                $class = '\\Geo\\Entity\\Geometry\\'.$value['type'];
158 158
                 $value = new $class($value['coordinates']);
159 159
             }
160 160
 
Please login to merge, or discard this patch.
module/Core/src/Entity/FileEntity.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -146,18 +146,18 @@
 block discarded – undo
146 146
         $size = $this->getLength();
147 147
         
148 148
         if ($size >= 1073741824) {
149
-            return round($size / 1073741824, 2) . ' GB';
149
+            return round($size / 1073741824, 2).' GB';
150 150
         }
151 151
         
152 152
         if ($size >= 1048576) {
153
-            return round($size / 1048576, 2) . ' MB';
153
+            return round($size / 1048576, 2).' MB';
154 154
         }
155 155
         
156 156
         if ($size >= 1024) {
157
-            return round($size / 1024, 2) . ' kB';
157
+            return round($size / 1024, 2).' kB';
158 158
         }
159 159
         
160
-        return (string)$size;
160
+        return (string) $size;
161 161
     }
162 162
 
163 163
     /**
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
     /**
130 130
      * Gets the name of a file
131 131
      *
132
-     * @return mixed
132
+     * @return string
133 133
      */
134 134
     public function getName()
135 135
     {
@@ -197,7 +197,7 @@  discard block
 block discarded – undo
197 197
     /**
198 198
      * Gets the uploaded date of a file
199 199
      *
200
-     * @return mixed
200
+     * @return null|\DateTime
201 201
      */
202 202
     public function getDateUploaded()
203 203
     {
Please login to merge, or discard this patch.
module/Core/src/Entity/AbstractIdentifiableEntity.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
  *
18 18
  * @author Anthonius Munthi <[email protected]>
19 19
  * @ODM\MappedSuperclass
20
-  */
20
+ */
21 21
 abstract class AbstractIdentifiableEntity extends AbstractEntity implements IdentifiableEntityInterface
22 22
 {
23 23
     use IdentifiableEntityTrait;
Please login to merge, or discard this patch.
module/Core/src/Entity/Status/AbstractStatus.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@
 block discarded – undo
58 58
         $states = static::getStates();
59 59
 
60 60
         if (!in_array($state, $states)) {
61
-            throw new \InvalidArgumentException('Invalid state name: ' . $state);
61
+            throw new \InvalidArgumentException('Invalid state name: '.$state);
62 62
         }
63 63
 
64 64
         $this->state = $state;
Please login to merge, or discard this patch.
module/Core/src/Entity/Hydrator/AnonymEntityHydrator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -43,7 +43,7 @@
 block discarded – undo
43 43
             $setterMethods = $object->getSetters();
44 44
         }
45 45
         foreach ($data as $key => $value) {
46
-            $setter = 'set' . ucfirst($key);
46
+            $setter = 'set'.ucfirst($key);
47 47
             if (in_array($setter, $setterMethods)) {
48 48
                 $object->$setter($value);
49 49
             } else {
Please login to merge, or discard this patch.
module/Core/src/Entity/Hydrator/Strategy/FileUploadStrategy.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -61,8 +61,8 @@
 block discarded – undo
61 61
         $file = $this->getFileEntity();
62 62
         
63 63
         $file->setName($value['name'])
64
-             ->setType($value['type'])
65
-             ->setFile($value['tmp_name']);
64
+                ->setType($value['type'])
65
+                ->setFile($value['tmp_name']);
66 66
         
67 67
         return $file;
68 68
     }
Please login to merge, or discard this patch.
module/Core/src/Entity/Hydrator/Strategy/FileCopyStrategy.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         
79 79
         // ensures garbage removal
80 80
         register_shutdown_function(
81
-            function ($filename) {
81
+            function($filename) {
82 82
                 @unlink($filename);
83 83
             },
84 84
             $tmp
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
         foreach (['user', 'name', 'type'] as $key) {
96 96
             $v = $value->{"get$key"}();
97 97
             if ($v) {
98
-                $return[$key]=$v;
98
+                $return[$key] = $v;
99 99
             }
100 100
         }
101 101
 
Please login to merge, or discard this patch.