Test Failed
Push — master ( e0db15...9209ad )
by Jelle
16:11
created
src/Entity/EntityPropertyUtil.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,8 +18,7 @@
 block discarded – undo
18 18
     $return = $val;
19 19
     if (method_exists($val, 'raw')) {
20 20
       $return = $val->raw();
21
-    }
22
-    elseif (is_array($val)) {
21
+    } elseif (is_array($val)) {
23 22
       $return = array();
24 23
       foreach ($val as $v) {
25 24
         $return[] = method_exists($v, 'raw') ? $v->raw() : $v;
Please login to merge, or discard this patch.
src/TheSportsDb.php 1 patch
Braces   +5 added lines, -10 removed lines patch added patch discarded remove patch
@@ -53,8 +53,7 @@  discard block
 block discarded – undo
53 53
     if ($entity instanceof ProxyInterface) {
54 54
       try {
55 55
         $entity->load();
56
-      }
57
-      catch (\Exception $e) {
56
+      } catch (\Exception $e) {
58 57
         return FALSE;
59 58
       }
60 59
     }
@@ -85,8 +84,7 @@  discard block
 block discarded – undo
85 84
     if ($entity instanceof ProxyInterface) {
86 85
       try {
87 86
         $entity->load();
88
-      }
89
-      catch (\Exception $e) {
87
+      } catch (\Exception $e) {
90 88
         return FALSE;
91 89
       }
92 90
     }
@@ -148,8 +146,7 @@  discard block
 block discarded – undo
148 146
     if ($entity instanceof ProxyInterface) {
149 147
       try {
150 148
         $entity->load();
151
-      }
152
-      catch (\Exception $e) {
149
+      } catch (\Exception $e) {
153 150
         return FALSE;
154 151
       }
155 152
     }
@@ -224,8 +221,7 @@  discard block
 block discarded – undo
224 221
     if ($entity instanceof ProxyInterface) {
225 222
       try {
226 223
         $entity->load();
227
-      }
228
-      catch (\Exception $e) {
224
+      } catch (\Exception $e) {
229 225
         return FALSE;
230 226
       }
231 227
     }
@@ -300,8 +296,7 @@  discard block
 block discarded – undo
300 296
     if ($entity instanceof ProxyInterface) {
301 297
       try {
302 298
         $entity->load();
303
-      }
304
-      catch (\Exception $e) {
299
+      } catch (\Exception $e) {
305 300
         return FALSE;
306 301
       }
307 302
     }
Please login to merge, or discard this patch.
src/Entity/Entity.php 1 patch
Doc Comments   +4 added lines, -1 removed lines patch added patch discarded remove patch
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
    * @param array $contextPropertyMap
180 180
    *   Extra properties to map from the context
181 181
    *
182
-   * @return array
182
+   * @return string
183 183
    *   An array with following keys:
184 184
    *     - object: The raw data representing the entity.
185 185
    *     - id: The id of the entity.
@@ -217,6 +217,9 @@  discard block
 block discarded – undo
217 217
     return $date;
218 218
   }
219 219
 
220
+  /**
221
+   * @param string $format
222
+   */
220 223
   public static function reverseDate(\DateTime $value, $format) {
221 224
     return $value->format($format);
222 225
   }
Please login to merge, or discard this patch.
src/Entity/EntityInterface.php 1 patch
Doc Comments   +1 added lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@
 block discarded – undo
18 18
    *
19 19
    * @param \stdClass $values
20 20
    *   The values to create this entity with.
21
+   * @return void
21 22
    */
22 23
   public function __construct(\stdClass $values);
23 24
 
Please login to merge, or discard this patch.
src/PropertyMapper/PropertyDefinition.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -105,8 +105,7 @@
 block discarded – undo
105 105
           }
106 106
           $val = $factoryContainer->getFactory($entityType)->create($val, $entityType);
107 107
         }
108
-      }
109
-      elseif (!($value instanceof EntityInterface)) {
108
+      } elseif (!($value instanceof EntityInterface)) {
110 109
         $value = $factoryContainer->getFactory($entityType)->create($value, $entityType);
111 110
       }
112 111
     }
Please login to merge, or discard this patch.