lint: fix php
parent
71e1ff605e
commit
c74ef0766c
|
@ -32,6 +32,9 @@ class ShareController extends ApiBase
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
*
|
*
|
||||||
* Get the tokens of a node shared using an external link
|
* Get the tokens of a node shared using an external link
|
||||||
|
*
|
||||||
|
* @param mixed $id
|
||||||
|
* @param mixed $path
|
||||||
*/
|
*/
|
||||||
public function links($id, $path)
|
public function links($id, $path)
|
||||||
{
|
{
|
||||||
|
@ -80,6 +83,9 @@ class ShareController extends ApiBase
|
||||||
* @NoAdminRequired
|
* @NoAdminRequired
|
||||||
*
|
*
|
||||||
* Share a node using an external link
|
* Share a node using an external link
|
||||||
|
*
|
||||||
|
* @param mixed $id
|
||||||
|
* @param mixed $path
|
||||||
*/
|
*/
|
||||||
public function createNode($id, $path)
|
public function createNode($id, $path)
|
||||||
{
|
{
|
||||||
|
@ -137,7 +143,8 @@ class ShareController extends ApiBase
|
||||||
return new JSONResponse([], Http::STATUS_OK);
|
return new JSONResponse([], Http::STATUS_OK);
|
||||||
}
|
}
|
||||||
|
|
||||||
private function getNodeByIdOrPath($id, $path) {
|
private function getNodeByIdOrPath($id, $path)
|
||||||
|
{
|
||||||
$uid = $this->getUID();
|
$uid = $this->getUID();
|
||||||
if (!$uid) {
|
if (!$uid) {
|
||||||
return null;
|
return null;
|
||||||
|
|
Loading…
Reference in New Issue