@@ -90,6 +90,6 @@ |
||
90 | 90 | return; |
91 | 91 | } |
92 | 92 | |
93 | - parent::exec(array_merge($data, ['type' => 'summary', 'username' => '@' . $this->username])); |
|
93 | + parent::exec(array_merge($data, ['type' => 'summary', 'username' => '@'.$this->username])); |
|
94 | 94 | } |
95 | 95 | } |
@@ -67,6 +67,6 @@ |
||
67 | 67 | */ |
68 | 68 | protected function makeCanonical($url) |
69 | 69 | { |
70 | - return '<link rel="canonical" href="' . $this->prependHost($url) . '" />'; |
|
70 | + return '<link rel="canonical" href="'.$this->prependHost($url).'" />'; |
|
71 | 71 | } |
72 | 72 | } |
@@ -37,8 +37,8 @@ |
||
37 | 37 | */ |
38 | 38 | public function make($type) |
39 | 39 | { |
40 | - if (class_exists('\\Xpressengine\\Media\\Commands\\' . ucfirst($type) . 'Command')) { |
|
41 | - $class = '\\Xpressengine\\Media\\Commands\\' . ucfirst($type) . 'Command'; |
|
40 | + if (class_exists('\\Xpressengine\\Media\\Commands\\'.ucfirst($type).'Command')) { |
|
41 | + $class = '\\Xpressengine\\Media\\Commands\\'.ucfirst($type).'Command'; |
|
42 | 42 | return new $class(); |
43 | 43 | } |
44 | 44 |
@@ -73,8 +73,8 @@ |
||
73 | 73 | */ |
74 | 74 | public function render(array $option = []) |
75 | 75 | { |
76 | - return '<div class="embed-responsive embed-responsive-16by9">' . |
|
77 | - '<iframe class="embed-responsive-item" src="' . $this->url() . '"></iframe>' . |
|
76 | + return '<div class="embed-responsive embed-responsive-16by9">'. |
|
77 | + '<iframe class="embed-responsive-item" src="'.$this->url().'"></iframe>'. |
|
78 | 78 | '</div>'; |
79 | 79 | } |
80 | 80 |
@@ -67,8 +67,8 @@ |
||
67 | 67 | */ |
68 | 68 | public function render(array $option = []) |
69 | 69 | { |
70 | - return '<audio controls src="' . $this->url() . '">' . |
|
71 | - 'Your user agent does not support the HTML5 Audio element.' . |
|
70 | + return '<audio controls src="'.$this->url().'">'. |
|
71 | + 'Your user agent does not support the HTML5 Audio element.'. |
|
72 | 72 | '</audio>'; |
73 | 73 | } |
74 | 74 |
@@ -63,7 +63,7 @@ discard block |
||
63 | 63 | public static function getThumbnail(Media $media, $type, $dimension, $defaultSelf = true) |
64 | 64 | { |
65 | 65 | $image = static::derives($media) //->where('type', $type)->where('code', $dimension)->first(); |
66 | - ->whereHas('meta', function ($query) use ($type, $dimension) { |
|
66 | + ->whereHas('meta', function($query) use ($type, $dimension) { |
|
67 | 67 | $query->where('type', $type)->where('code', $dimension); |
68 | 68 | })->with('meta')->first(); |
69 | 69 | |
@@ -97,10 +97,10 @@ discard block |
||
97 | 97 | public function render(array $option = []) |
98 | 98 | { |
99 | 99 | if (isset($option['responsive']) && $option['responsive'] === true) { |
100 | - return '<img src="' . $this->url() . '" style="max-width: 100%" />'; |
|
100 | + return '<img src="'.$this->url().'" style="max-width: 100%" />'; |
|
101 | 101 | } |
102 | 102 | |
103 | - return '<img src="' . $this->url() . '" width="' . $this->width . '" height="' . $this->height . '" />'; |
|
103 | + return '<img src="'.$this->url().'" width="'.$this->width.'" height="'.$this->height.'" />'; |
|
104 | 104 | } |
105 | 105 | |
106 | 106 | /** |
@@ -94,7 +94,7 @@ |
||
94 | 94 | $path ?: '', |
95 | 95 | implode('_', [ |
96 | 96 | $command->getName(), |
97 | - $command->getDimension()->getWidth() . 'x' . $command->getDimension()->getHeight(), |
|
97 | + $command->getDimension()->getWidth().'x'.$command->getDimension()->getHeight(), |
|
98 | 98 | hash('sha1', $content), |
99 | 99 | ]), |
100 | 100 | $disk, |
@@ -70,17 +70,17 @@ |
||
70 | 70 | */ |
71 | 71 | function bytes($bytes, $unit = null, $dec = 2) |
72 | 72 | { |
73 | - $size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; |
|
73 | + $size = ['B', 'kB', 'MB', 'GB', 'TB', 'PB', 'EB', 'ZB', 'YB']; |
|
74 | 74 | if (in_array($unit, $size)) { |
75 | 75 | $factor = array_search($unit, $size); |
76 | 76 | } else { |
77 | - $factor = (int)((strlen($bytes) - 1) / 3); |
|
77 | + $factor = (int) ((strlen($bytes) - 1) / 3); |
|
78 | 78 | } |
79 | 79 | $dec = $factor == 0 ? 0 : $dec; |
80 | 80 | if ($factor >= count($size)) { |
81 | 81 | $factor = count($size) - 1; |
82 | 82 | } |
83 | 83 | |
84 | - return sprintf("%.{$dec}f", $bytes / pow(1024, $factor)) . $size[$factor]; |
|
84 | + return sprintf("%.{$dec}f", $bytes / pow(1024, $factor)).$size[$factor]; |
|
85 | 85 | } |
86 | 86 | } |
@@ -92,7 +92,7 @@ |
||
92 | 92 | |
93 | 93 | // prepend ":" to each key |
94 | 94 | $keys = array_map( |
95 | - function ($key) { |
|
95 | + function($key) { |
|
96 | 96 | return ':'.$key; |
97 | 97 | }, |
98 | 98 | array_keys($this->args) |