Issues (15)

src/variables/AssetPondVariable.php (2 issues)

1
<?php
2
/**
3
 * AssetPond plugin for Craft CMS 3.x
4
 *
5
 * Instant FilePond server that works with Craft Assets.
6
 *
7
 * @link      https://workingconcept.com
8
 * @copyright Copyright (c) 2019 Working Concept
9
 */
10
11
namespace workingconcept\assetpond\variables;
12
13
use Craft;
14
15
/**
16
 * @author    Working Concept
17
 * @package   AssetPond
18
 * @since     1.0.0
19
 */
20
class AssetPondVariable
21
{
22
    // Public Methods
23
    // =========================================================================
24
25
    /**
26
     * Returns the URL for the controller that can receive frontend uploads
27
     * directly from FilePond.
28
     *
29
     * @param null $volumeId
0 ignored issues
show
Documentation Bug introduced by
Are you sure the doc-type for parameter $volumeId is correct as it would always require null to be passed?
Loading history...
30
     * @return string
31
     */
32
    public function endpoint($volumeId = null): string
33
    {
34
        return '/assetpond' . ($volumeId ? ('/' . $volumeId) : '');
0 ignored issues
show
$volumeId is of type null, thus it always evaluated to false.
Loading history...
35
    }
36
}
37