Test Failed
Pull Request — main (#59)
by Dimitri
06:14
created

View::accessor()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 1
c 1
b 0
f 0
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 1
cp 0
crap 2
rs 10
1
<?php
2
3
/**
4
 * This file is part of Blitz PHP framework.
5
 *
6
 * (c) 2022 Dimitri Sitchet Tomkeu <[email protected]>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace BlitzPHP\Facades;
13
14
use BlitzPHP\Validation\ErrorBag;
15
16
/**
17
 * @method static bool                exists(string $view, ?string $ext = null, array $options = [])        Verifie qu'un fichier de vue existe
18
 * @method static \BlitzPHP\View\View first(string $view, array $data = [], array $options = [])            Utilise le premier fichier de vue trouvé pour le rendu
19
 * @method static string              get(bool|string $compress = 'auto')                                   Recupere et retourne le code html de la vue créée
20
 * @method static \BlitzPHP\View\View layout(string $layout)                                                Definit le layout a utiliser par les vues
21
 * @method static \BlitzPHP\View\View make(string $view, array $data = [], array $options = [])             Crée une instance de vue prêt à être utilisé
22
 * @method static void                render()                                                              Affiche la vue generee au navigateur
23
 * @method static void                share(array|Closure|string $key, mixed $value = null)                 Defini les données partagées entre plusieurs vues
24
 * @method static \BlitzPHP\View\View with(array|string $key, mixed $value = null, ?string $context = null) Définit plusieurs éléments de données de vue à la fois.
25
 * @method static \BlitzPHP\View\View withErrors((array | ErrorBag | string) $errors)                       Ajoute des erreurs à la session en tant que Flashdata.
26
 *
27
 * @see \BlitzPHP\View\View
28
 */
0 ignored issues
show
Documentation Bug introduced by
The doc comment () at position 1 could not be parsed: Unknown type name ')' at position 1 in ().
Loading history...
29
final class View extends Facade
30
{
31
    protected static function accessor(): object
32
    {
33
        return service('viewer');
34
    }
35
}
36