@@ -94,7 +94,7 @@ discard block |
||
| 94 | 94 | * |
| 95 | 95 | * @throws \ReflectionException |
| 96 | 96 | */ |
| 97 | - public static function compileContent($content, array $data, array|object $param) |
|
| 97 | + public static function compileContent($content, array $data, array | object $param) |
|
| 98 | 98 | { |
| 99 | 99 | if (is_string($content)) { |
| 100 | 100 | return static::compileBlade($content, static::getMixedValue($data, $param)); |
@@ -134,7 +134,7 @@ discard block |
||
| 134 | 134 | } |
| 135 | 135 | |
| 136 | 136 | ob_start() && extract($data, EXTR_SKIP); |
| 137 | - eval('?>'.app('blade.compiler')->compileString($str)); |
|
| 137 | + eval('?>' . app('blade.compiler')->compileString($str)); |
|
| 138 | 138 | $str = ob_get_contents(); |
| 139 | 139 | ob_end_clean(); |
| 140 | 140 | |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | * @param array|object $param |
| 149 | 149 | * @return array |
| 150 | 150 | */ |
| 151 | - public static function getMixedValue(array $data, array|object $param) |
|
| 151 | + public static function getMixedValue(array $data, array | object $param) |
|
| 152 | 152 | { |
| 153 | 153 | $casted = self::castToArray($param); |
| 154 | 154 | |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | * @param array|object $param |
| 170 | 170 | * @return array |
| 171 | 171 | */ |
| 172 | - public static function castToArray(array|object $param): array |
|
| 172 | + public static function castToArray(array | object $param): array |
|
| 173 | 173 | { |
| 174 | 174 | if ($param instanceof Arrayable) { |
| 175 | 175 | return $param->toArray(); |
@@ -186,8 +186,8 @@ discard block |
||
| 186 | 186 | */ |
| 187 | 187 | public static function getOrMethod($method) |
| 188 | 188 | { |
| 189 | - if (! Str::contains(Str::lower($method), 'or')) { |
|
| 190 | - return 'or'.ucfirst($method); |
|
| 189 | + if (!Str::contains(Str::lower($method), 'or')) { |
|
| 190 | + return 'or' . ucfirst($method); |
|
| 191 | 191 | } |
| 192 | 192 | |
| 193 | 193 | return $method; |
@@ -369,7 +369,7 @@ discard block |
||
| 369 | 369 | |
| 370 | 370 | if (count($chars) > 0) { |
| 371 | 371 | foreach ($chars as $char) { |
| 372 | - $wild .= $char.$wildcard; |
|
| 372 | + $wild .= $char . $wildcard; |
|
| 373 | 373 | } |
| 374 | 374 | } |
| 375 | 375 | |
@@ -388,8 +388,8 @@ discard block |
||
| 388 | 388 | foreach (Arr::dot($parameters) as $key => $value) { |
| 389 | 389 | if (self::isJavascript($value, $key)) { |
| 390 | 390 | $values[] = trim($value); |
| 391 | - Arr::set($parameters, $key, '%'.$key.'%'); |
|
| 392 | - $replacements[] = '"%'.$key.'%"'; |
|
| 391 | + Arr::set($parameters, $key, '%' . $key . '%'); |
|
| 392 | + $replacements[] = '"%' . $key . '%"'; |
|
| 393 | 393 | } |
| 394 | 394 | } |
| 395 | 395 | |
@@ -403,7 +403,7 @@ discard block |
||
| 403 | 403 | return str_replace($replacements, $values, $json); |
| 404 | 404 | } |
| 405 | 405 | |
| 406 | - public static function isJavascript(string|array|object|null $value, string $key): bool |
|
| 406 | + public static function isJavascript(string | array | object | null $value, string $key): bool |
|
| 407 | 407 | { |
| 408 | 408 | if (empty($value) || is_array($value) || is_object($value)) { |
| 409 | 409 | return false; |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | */ |
| 87 | 87 | public function orderableColumns(): array |
| 88 | 88 | { |
| 89 | - if (! $this->isOrderable()) { |
|
| 89 | + if (!$this->isOrderable()) { |
|
| 90 | 90 | return []; |
| 91 | 91 | } |
| 92 | 92 | |
@@ -191,7 +191,7 @@ discard block |
||
| 191 | 191 | * @param float|array|int|string $keyword |
| 192 | 192 | * @return string |
| 193 | 193 | */ |
| 194 | - protected function prepareKeyword(float|array|int|string $keyword): string |
|
| 194 | + protected function prepareKeyword(float | array | int | string $keyword): string |
|
| 195 | 195 | { |
| 196 | 196 | if (is_array($keyword)) { |
| 197 | 197 | return implode(' ', $keyword); |
@@ -234,8 +234,8 @@ discard block |
||
| 234 | 234 | */ |
| 235 | 235 | public function isPaginationable(): bool |
| 236 | 236 | { |
| 237 | - return ! is_null($this->request->input('start')) && |
|
| 238 | - ! is_null($this->request->input('length')) && |
|
| 237 | + return !is_null($this->request->input('start')) && |
|
| 238 | + !is_null($this->request->input('length')) && |
|
| 239 | 239 | $this->request->input('length') != -1; |
| 240 | 240 | } |
| 241 | 241 | |