@@ -48,7 +48,7 @@ public static function singleton(): self
4848 */
4949 public static function trans ($ date , $ options = []): string
5050 {
51- if (\ is_int ($ options )) {
51+ if (is_int ($ options )) {
5252 $ options = [$ options ];
5353 }
5454
@@ -75,19 +75,19 @@ private function handle(int $date_timestamp, ?array $options = []): string
7575
7676 $ this ->validateOptions ();
7777
78- $ seconds = \ time () - $ date_timestamp ;
78+ $ seconds = time () - $ date_timestamp ;
7979
8080 if ($ seconds < 0 ) {
81- $ seconds = $ date_timestamp - \ time ();
81+ $ seconds = $ date_timestamp - time ();
8282 $ this ->options [] = Option::UPCOMING ;
8383 }
8484
85- $ minutes = (int ) \ round ($ seconds / 60 );
86- $ hours = (int ) \ round ($ seconds / 3600 );
87- $ days = (int ) \ round ($ seconds / 86400 );
88- $ weeks = (int ) \ round ($ seconds / 604800 );
89- $ months = (int ) \ round ($ seconds / 2629440 );
90- $ years = (int ) \ round ($ seconds / 31553280 );
85+ $ minutes = (int ) round ($ seconds / 60 );
86+ $ hours = (int ) round ($ seconds / 3600 );
87+ $ days = (int ) round ($ seconds / 86400 );
88+ $ weeks = (int ) round ($ seconds / 604800 );
89+ $ months = (int ) round ($ seconds / 2629440 );
90+ $ years = (int ) round ($ seconds / 31553280 );
9191
9292 switch (true ) {
9393 case $ this ->optionIsSet (Option::ONLINE ) && $ seconds < 60 :
@@ -113,7 +113,7 @@ private function handle(int $date_timestamp, ?array $options = []): string
113113
114114 private function optionIsSet (int $ option ): bool
115115 {
116- return \ in_array ($ option , $ this ->options , true );
116+ return in_array ($ option , $ this ->options , true );
117117 }
118118
119119 /**
@@ -151,7 +151,7 @@ private function getWords(string $type, int $number): string
151151 */
152152 private function getLanguageForm (int $ number ): string
153153 {
154- $ last_digit = (int ) \ substr ((string ) $ number , -1 );
154+ $ last_digit = (int ) substr ((string ) $ number , -1 );
155155
156156 /**
157157 * @var string $form_name
@@ -183,7 +183,7 @@ private function ruleIsTrue($rules): bool
183183 */
184184 private function ruleIsBooleanTrue ($ rules ): bool
185185 {
186- return \ is_bool ($ rules ) && $ rules ;
186+ return is_bool ($ rules ) && $ rules ;
187187 }
188188
189189 /**
@@ -193,7 +193,7 @@ private function ruleIsBooleanTrue($rules): bool
193193 */
194194 private function ruleIsArrayWithTrueItem ($ rules ): bool
195195 {
196- return \ is_array ($ rules ) && \ in_array (true , $ rules , true );
196+ return is_array ($ rules ) && in_array (true , $ rules , true );
197197 }
198198
199199 /**
@@ -203,7 +203,7 @@ private function validateOptions(): void
203203 {
204204 if ($ this ->optionIsSet (Option::UPCOMING )) {
205205 $ msg = 'Option::UPCOMING is deprecated. Read more: https://github.com/SerhiiCho/ago/issues/34 ' ;
206- \ trigger_error ($ msg , E_USER_DEPRECATED );
206+ trigger_error ($ msg , E_USER_DEPRECATED );
207207 }
208208
209209 if ($ this ->optionIsSet (Option::JUST_NOW ) && $ this ->optionIsSet (Option::ONLINE )) {
0 commit comments