Commit cbca3756 authored by Guillaume Perréal's avatar Guillaume Perréal
Browse files

Passage en PHP 7.1.

parent 98609835
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......@@ -31,7 +31,7 @@ use Symfony\Component\Templating\EngineInterface;
*/
class UploadController extends Controller
{
const CSRF_INTENTION = 'uploaded_file';
public const CSRF_INTENTION = 'uploaded_file';
/**
* @var FileManagerInterface
......@@ -89,7 +89,7 @@ class UploadController extends Controller
$data['name'],
$data['size'],
$data['type'],
isset($data['lastModified']) ? $data['lastModified'] : null,
$data['lastModified'] ?? null,
null !== $token ? $token->getUsername() : null,
$request->getClientIp()
);
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......@@ -29,7 +29,7 @@ class UploadedFile implements UploadedFileInterface
// Taille de bloc utilisé pour les copies
public static $copyBlockSize = 8192;
const ORPHAN_PREFIX = 'orphan/';
public const ORPHAN_PREFIX = 'orphan/';
/**
* @ORM\Id
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......@@ -11,5 +11,5 @@ namespace Irstea\FileUploadBundle;
*/
final class FileUploadEvents
{
const UPLOAD_COMPLETE = 'file_upload.complete';
public const UPLOAD_COMPLETE = 'file_upload.complete';
}
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
<?php
<?php declare(strict_types=1);
/*
* Copyright (C) 2015-2017 IRSTEA
* All rights reserved.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment