Skip to content

Commit 3332fab

Browse files
4.19
1 parent 55764d1 commit 3332fab

File tree

1 file changed

+9
-10
lines changed

1 file changed

+9
-10
lines changed

lib/BladeOne.php

Lines changed: 9 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@
3434
* @author Jorge Patricio Castro Castillo <jcastro arroba eftec dot cl>
3535
* @copyright Copyright (c) 2016-2025 Jorge Patricio Castro Castillo MIT License.
3636
* Don't delete this comment, its part of the license.
37-
* Part of this code is based in the work of Laravel PHP Components.
38-
* @version 4.18
37+
* Part of this code is based on the work of Laravel PHP Components.
38+
* @version 4.19
3939
* @link https://github.com/EFTEC/BladeOne
4040
*/
4141
class BladeOne
4242
{
4343
//<editor-fold desc="fields">
44-
public const VERSION = '4.18';
45-
/** @var int BladeOne reads if the compiled file has changed. If it has changed,then the file is replaced. */
44+
public const VERSION = '4.19';
45+
/** @var int BladeOne reads if the compiled file has changed. If it has changed, then the file is replaced. */
4646
public const MODE_AUTO = 0;
47-
/** @var int Then compiled file is always replaced. It's slow and it's useful for development. */
47+
/** @var int The compiled file is always replaced. It's slow and it's useful for development. */
4848
public const MODE_SLOW = 1;
4949
/** @var int The compiled file is never replaced. It's fast and it's useful for production. */
5050
public const MODE_FAST = 2;
@@ -57,7 +57,7 @@ class BladeOne
5757
/** @var string It is used to mark the end of the stack (regexp). This value must not be used for other purposes */
5858
public string $escapeStack1 = '#3R#-#4X#-';
5959
/** @var string PHP tag. You could use < ?php or < ? (if shorttag is active in php.ini) */
60-
public string $phpTag = '<?php '; // hello hello hello.
60+
public string $phpTag = '<?php ';
6161
/** @var string this line is used to easily echo a value */
6262
protected string $phpTagEcho = '<?php' . ' echo ';
6363
/** @var string|null $currentUser Current user. Example: john */
@@ -66,7 +66,7 @@ class BladeOne
6666
public ?string $currentRole;
6767
/** @var string[]|null $currentPermission Current permission. Example ['edit','add'] */
6868
public ?array $currentPermission = [];
69-
/** @var callable|null callback of validation. It is used for @can,@cannot */
69+
/** @var callable|null callback of validation. It is used for "@can,@cannot" */
7070
public $authCallBack;
7171
/** @var callable|null callback of validation. It is used for @canany */
7272
public $authAnyCallBack;
@@ -76,7 +76,7 @@ class BladeOne
7676
public bool $throwOnError = false;
7777
/** @var string security token */
7878
public string $csrf_token = '';
79-
/** @var string The path to the missing translations log file. If empty then every missing key is not saved. */
79+
/** @var string The path to the missing translations log file. If empty, then every missing key is not saved. */
8080
public string $missingLog = '';
8181
/** @var bool if true then pipes commands are available, example {{$a1|strtolower}} */
8282
public bool $pipeEnable = false;
@@ -97,7 +97,7 @@ class BladeOne
9797
/** @var BladeOne it is used to get the last instance */
9898
public static BladeOne $instance;
9999
/**
100-
* @var bool if true then the variables defined in the "include" as arguments are scoped to work only
100+
* @var bool if it is true, then the variables defined in the "include" as arguments are scoped to work only
101101
* inside the "include" statement.<br>
102102
* If false (default value), then the variables defined in the "include" as arguments are defined globally.<br>
103103
* <b>Example: (includeScope=false)</b><br>
@@ -1444,7 +1444,6 @@ public function getCompiledFile($templateName = ''): string
14441444
* Get the mode of the engine.See BladeOne::MODE_* constants
14451445
*
14461446
* @return int=[self::MODE_AUTO,self::MODE_DEBUG,self::MODE_FAST,self::MODE_SLOW][$i]
1447-
* @noinspection PhpUndefinedConstantInspection
14481447
*/
14491448
public function getMode(): int
14501449
{

0 commit comments

Comments
 (0)