@@ -87,7 +87,7 @@ |
||
87 | 87 | |
88 | 88 | protected function getCache(Repository $repo = null, $cacheKey = 'list') |
89 | 89 | { |
90 | - if($repo === null) { |
|
90 | + if ($repo === null) { |
|
91 | 91 | $repo = $this->makeRepo(); |
92 | 92 | } |
93 | 93 |
@@ -163,7 +163,7 @@ |
||
163 | 163 | ]; |
164 | 164 | $pluginRegister->shouldReceive('get')->with(RegisterHandler::FIELD_TYPE)->andReturn($types); |
165 | 165 | $pluginRegister->shouldReceive('get')->with( |
166 | - 'type|' . RegisterHandler::FIELD_TYPE |
|
166 | + 'type|'.RegisterHandler::FIELD_TYPE |
|
167 | 167 | )->andReturn($skins); |
168 | 168 | |
169 | 169 | $result = $handler->getSkins($dfHandler); |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | $mockFile = m::mock('stdClass'); |
20 | 20 | |
21 | 21 | $instance->expects($this->once())->method('createModel')->willReturn($mockFile); |
22 | - $resource = file_get_contents(__DIR__ . '/sample.png'); |
|
22 | + $resource = file_get_contents(__DIR__.'/sample.png'); |
|
23 | 23 | |
24 | 24 | $mockGuest = m::mock('Xpressengine\Member\Entities\Guest'); |
25 | 25 | $mockGuest->shouldReceive('getId')->andReturnNull(); |
@@ -28,7 +28,7 @@ discard block |
||
28 | 28 | $uploaded = m::mock('Symfony\Component\HttpFoundation\File\UploadedFile'); |
29 | 29 | $uploaded->shouldReceive('isValid')->andReturn(true); |
30 | 30 | $uploaded->shouldReceive('getClientOriginalName')->andReturn('foo.jpg'); |
31 | - $uploaded->shouldReceive('getPathname')->andReturn(__DIR__ . '/sample.png'); |
|
31 | + $uploaded->shouldReceive('getPathname')->andReturn(__DIR__.'/sample.png'); |
|
32 | 32 | $uploaded->shouldReceive('getMimeType')->andReturn('image/png'); |
33 | 33 | $uploaded->shouldReceive('getSize')->andReturn(123456); |
34 | 34 | |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | |
39 | 39 | $handler->shouldReceive('store') |
40 | 40 | ->once() |
41 | - ->with($resource, m::on(function () { return true; }), 'local') |
|
41 | + ->with($resource, m::on(function() { return true; }), 'local') |
|
42 | 42 | ->andReturn(true); |
43 | 43 | |
44 | 44 | $mockFile->shouldReceive('save')->andReturn(true); |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | list($handler, $auth, $keygen, $distributor, $temps) = $this->getMocks(); |
73 | 73 | $instance = new Storage($handler, $auth, $keygen, $distributor, $temps); |
74 | 74 | |
75 | - $resource = file_get_contents(__DIR__ . '/sample.png'); |
|
75 | + $resource = file_get_contents(__DIR__.'/sample.png'); |
|
76 | 76 | |
77 | 77 | $mockGuest = m::mock('Xpressengine\Member\Entities\Guest'); |
78 | 78 | $mockGuest->shouldReceive('getId')->andReturnNull(); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | $uploaded = m::mock('Symfony\Component\HttpFoundation\File\UploadedFile'); |
82 | 82 | $uploaded->shouldReceive('isValid')->andReturn(true); |
83 | 83 | $uploaded->shouldReceive('getClientOriginalName')->andReturn('foo.jpg'); |
84 | - $uploaded->shouldReceive('getPathname')->andReturn(__DIR__ . '/sample.png'); |
|
84 | + $uploaded->shouldReceive('getPathname')->andReturn(__DIR__.'/sample.png'); |
|
85 | 85 | |
86 | 86 | $keygen->shouldReceive('generate')->once()->andReturn('made-key'); |
87 | 87 | |
@@ -89,7 +89,7 @@ discard block |
||
89 | 89 | |
90 | 90 | $handler->shouldReceive('store') |
91 | 91 | ->once() |
92 | - ->with($resource, m::on(function () { return true; }), 'local') |
|
92 | + ->with($resource, m::on(function() { return true; }), 'local') |
|
93 | 93 | ->andReturn(false); |
94 | 94 | |
95 | 95 | try { |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | $keygen->shouldReceive('generate')->andReturn('made-key'); |
121 | 121 | $temps->shouldReceive('create')->once()->with('file_get_content')->andReturn($mockTempFile); |
122 | 122 | |
123 | - $handler->shouldReceive('store')->once()->with('file_get_content', m::on(function () { |
|
123 | + $handler->shouldReceive('store')->once()->with('file_get_content', m::on(function() { |
|
124 | 124 | return true; |
125 | 125 | }), 'local')->andReturn(true); |
126 | 126 | |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | $mockFile->shouldReceive('getKey')->andReturn('file-id'); |
191 | 191 | |
192 | 192 | $mockConn->shouldReceive('table')->once()->with('fileable_table')->andReturnSelf(); |
193 | - $mockConn->shouldReceive('insert')->once()->with(m::on(function ($args) { |
|
193 | + $mockConn->shouldReceive('insert')->once()->with(m::on(function($args) { |
|
194 | 194 | return $args['fileId'] == 'file-id' && $args['fileableId'] == 'fileable-id'; |
195 | 195 | }))->andReturnSelf(); |
196 | 196 |
@@ -333,6 +333,6 @@ |
||
333 | 333 | */ |
334 | 334 | public function setModel($model) |
335 | 335 | { |
336 | - $this->model = '\\' . ltrim($model, '\\'); |
|
336 | + $this->model = '\\'.ltrim($model, '\\'); |
|
337 | 337 | } |
338 | 338 | } |
@@ -201,7 +201,7 @@ |
||
201 | 201 | protected function makeTitle(SeoUsable $item = null) |
202 | 202 | { |
203 | 203 | if ($item) { |
204 | - return $item->getTitle() . ' - ' . $this->translator->trans($this->setting->get('mainTitle')); |
|
204 | + return $item->getTitle().' - '.$this->translator->trans($this->setting->get('mainTitle')); |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | return implode(' - ', [ |
@@ -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 |