@@ -51,7 +51,7 @@ |
||
| 51 | 51 | /** |
| 52 | 52 | * Physical address of the item. |
| 53 | 53 | * |
| 54 | - * @param PostalAddress|string $address |
|
| 54 | + * @param PostalAddress $address |
|
| 55 | 55 | * @return PlaceTrait |
| 56 | 56 | */ |
| 57 | 57 | public function setAddress(PostalAddress $address) |
@@ -44,8 +44,8 @@ discard block |
||
| 44 | 44 | protected function timeToIso8601Duration($time) |
| 45 | 45 | { |
| 46 | 46 | $units = array( |
| 47 | - "Y" => 365*24*3600, |
|
| 48 | - "D" => 24*3600, |
|
| 47 | + "Y" => 365 * 24 * 3600, |
|
| 48 | + "D" => 24 * 3600, |
|
| 49 | 49 | "H" => 3600, |
| 50 | 50 | "M" => 60, |
| 51 | 51 | "S" => 1, |
@@ -63,7 +63,7 @@ discard block |
||
| 63 | 63 | $str .= "T"; |
| 64 | 64 | $istime = true; |
| 65 | 65 | } |
| 66 | - $str .= strval($unit) . $unitName; |
|
| 66 | + $str .= strval($unit).$unitName; |
|
| 67 | 67 | } |
| 68 | 68 | } |
| 69 | 69 | |
@@ -3,7 +3,7 @@ |
||
| 3 | 3 | namespace luya\web\jsonld; |
| 4 | 4 | |
| 5 | 5 | /** |
| 6 | - * JsonLd Comment Trait. |
|
| 6 | + * JsonLd Comment Trait. |
|
| 7 | 7 | * |
| 8 | 8 | * @see http://schema.org/Comment |
| 9 | 9 | * @author Basil Suter <[email protected]> |
@@ -20,7 +20,6 @@ |
||
| 20 | 20 | /** |
| 21 | 21 | * Provide date data. |
| 22 | 22 | * |
| 23 | - * @param string|integer $date |
|
| 24 | 23 | */ |
| 25 | 24 | public function __construct($text) |
| 26 | 25 | { |
@@ -693,7 +693,7 @@ discard block |
||
| 693 | 693 | /** |
| 694 | 694 | * The purpose of a work in the context of education; for example, 'assignment', 'group work'. |
| 695 | 695 | * |
| 696 | - * @param string $educationalUse |
|
| 696 | + * @param CreativeWork $educationalUse |
|
| 697 | 697 | * @return CreativeWork|CreativeWorkTrait |
| 698 | 698 | */ |
| 699 | 699 | public function setEducationalUse(CreativeWork $educationalUse) |
@@ -1229,7 +1229,7 @@ discard block |
||
| 1229 | 1229 | * While such policies are most typically expressed in natural language, sometimes related information |
| 1230 | 1230 | * (e.g. indicating a funder) can be expressed using schema.org terminology. |
| 1231 | 1231 | * |
| 1232 | - * @param CreativeWork|URL $publishingPrinciples |
|
| 1232 | + * @param CreativeWork $publishingPrinciples |
|
| 1233 | 1233 | * @return CreativeWork|CreativeWorkTrait |
| 1234 | 1234 | */ |
| 1235 | 1235 | public function setPublishingPrinciples(CreativeWork $publishingPrinciples) |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | } |
| 41 | 41 | |
| 42 | 42 | if ($throwException) { |
| 43 | - throw new Exception("The given variable must be an instance of: " . implode(",", $instances)); |
|
| 43 | + throw new Exception("The given variable must be an instance of: ".implode(",", $instances)); |
|
| 44 | 44 | } |
| 45 | 45 | |
| 46 | 46 | return false; |