Completed
Pull Request — develop (#501)
by ANTHONIUS
10:57
created
module/Core/src/Entity/FileInterface.php 1 patch
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,6 @@
 block discarded – undo
15 15
 
16 16
 /**
17 17
  *
18
-
19 18
  */
20 19
 interface FileInterface extends
21 20
     IdentifiableEntityInterface,
Please login to merge, or discard this patch.
module/Core/src/Entity/EntityInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
      * @throws \Core\Entity\Exception\OutOfBoundsException if the property does not exists.
73 73
      * @since 0.25
74 74
      */
75
-    public function notEmpty($property, array $args=[]);
75
+    public function notEmpty($property, array $args = []);
76 76
 
77 77
     /**
78 78
      * Checks, if this entity has a property.
Please login to merge, or discard this patch.
module/Core/src/Entity/AbstractEntity.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
             return $this->$method($value);
50 50
         }
51 51
         
52
-        throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this). "'");
52
+        throw new OutOfBoundsException("'$property' is not a valid property of '".get_class($this)."'");
53 53
     }
54 54
     
55 55
     /**
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
         if (method_exists($this, $method)) {
77 77
             return $this->$method();
78 78
         }
79
-        throw new OutOfBoundsException("'$property' is not a valid property of '" . get_class($this) . "'");
79
+        throw new OutOfBoundsException("'$property' is not a valid property of '".get_class($this)."'");
80 80
     }
81 81
     
82 82
     /**
Please login to merge, or discard this patch.
module/Core/src/Entity/SnapshotMeta.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
  */
22 22
 class SnapshotMeta implements
23 23
     ModificationDateAwareEntityInterface,
24
-                              DraftableEntityInterface,
25
-                              Status\StatusAwareEntityInterface
24
+                                DraftableEntityInterface,
25
+                                Status\StatusAwareEntityInterface
26 26
 {
27 27
     use ModificationDateAwareEntityTrait, DraftableEntityTrait, Status\StatusAwareEntityTrait;
28 28
 }
Please login to merge, or discard this patch.
module/Core/src/Entity/AttachableEntityManager.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $className = get_class($entity);
55 55
         
56
-        if (! isset($key)) {
56
+        if (!isset($key)) {
57 57
             $key = $className;
58 58
         }
59 59
         
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
         $entityId = $entity->getId();
64 64
         
65 65
         // check if entity is not persisted
66
-        if (! $entityId) {
66
+        if (!$entityId) {
67 67
             // persist entity & retrieve its ID
68 68
             $this->repositories->getRepository($className)->store($entity);
69 69
             $entityId = $entity->getId();
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
      */
82 82
     public function getAttachedEntity($key)
83 83
     {
84
-        if (! isset($this->references[$key])) {
84
+        if (!isset($this->references[$key])) {
85 85
             return;
86 86
         }
87 87
         
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
         $entity = $this->repositories->getRepository($reference['repository'])
90 90
             ->find($reference['id']);
91 91
         
92
-        if (! $entity) {
92
+        if (!$entity) {
93 93
             // remove reference if entity does not exists
94 94
             unset($this->references[$key]);
95 95
         }
Please login to merge, or discard this patch.
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/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.