@@ -57,7 +57,7 @@ |
||
57 | 57 | $days = (int) $this->getBlockSetting($block_id, 'days', self::DEFAULT_DAYS); |
58 | 58 | $infoStyle = $this->getBlockSetting($block_id, 'infoStyle', self::DEFAULT_INFO_STYLE); |
59 | 59 | $sortStyle = $this->getBlockSetting($block_id, 'sortStyle', self::DEFAULT_SORT_STYLE); |
60 | - $show_user = (bool)$this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER); |
|
60 | + $show_user = (bool) $this->getBlockSetting($block_id, 'show_user', self::DEFAULT_SHOW_USER); |
|
61 | 61 | |
62 | 62 | extract($cfg, EXTR_OVERWRITE); |
63 | 63 |
@@ -43,6 +43,6 @@ |
||
43 | 43 | $years -= $years % 5; |
44 | 44 | } |
45 | 45 | |
46 | - return (string)$years; |
|
46 | + return (string) $years; |
|
47 | 47 | } |
48 | 48 | } |
@@ -38,6 +38,6 @@ |
||
38 | 38 | return ''; |
39 | 39 | } |
40 | 40 | |
41 | - return (string)Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
41 | + return (string) Date::getAge($individual->getEstimatedBirthDate(), $this->date(), 0); |
|
42 | 42 | } |
43 | 43 | } |
@@ -836,31 +836,31 @@ |
||
836 | 836 | $year = 365 * $day; |
837 | 837 | |
838 | 838 | if ($seconds > $year) { |
839 | - $years = (int)($seconds / $year); |
|
839 | + $years = (int) ($seconds / $year); |
|
840 | 840 | |
841 | 841 | return self::plural('%s year ago', '%s years ago', $years, self::number($years)); |
842 | 842 | } |
843 | 843 | |
844 | 844 | if ($seconds > $month) { |
845 | - $months = (int)($seconds / $month); |
|
845 | + $months = (int) ($seconds / $month); |
|
846 | 846 | |
847 | 847 | return self::plural('%s month ago', '%s months ago', $months, self::number($months)); |
848 | 848 | } |
849 | 849 | |
850 | 850 | if ($seconds > $day) { |
851 | - $days = (int)($seconds / $day); |
|
851 | + $days = (int) ($seconds / $day); |
|
852 | 852 | |
853 | 853 | return self::plural('%s day ago', '%s days ago', $days, self::number($days)); |
854 | 854 | } |
855 | 855 | |
856 | 856 | if ($seconds > $hour) { |
857 | - $hours = (int)($seconds / $hour); |
|
857 | + $hours = (int) ($seconds / $hour); |
|
858 | 858 | |
859 | 859 | return self::plural('%s hour ago', '%s hours ago', $hours, self::number($hours)); |
860 | 860 | } |
861 | 861 | |
862 | 862 | if ($seconds > $minute) { |
863 | - $minutes = (int)($seconds / $minute); |
|
863 | + $minutes = (int) ($seconds / $minute); |
|
864 | 864 | |
865 | 865 | return self::plural('%s minute ago', '%s minutes ago', $minutes, self::number($minutes)); |
866 | 866 | } |