This project does not seem to handle request data directly as such no vulnerable execution paths were found.
include
, or for example
via PHP's auto-loading mechanism.
These results are based on our legacy PHP analysis, consider migrating to our new PHP analysis engine instead. Learn more
1 | <?php |
||
2 | /******************************************************************** |
||
3 | * Created by: Marko Kungla @ OkramLabs on Aug 6, 2012 - 9:58:05 |
||
4 | * Contact: [email protected] - https://okramlabs.com |
||
5 | * @copyright: 2015 OkramLabs - https://okramlabs.com |
||
6 | * @license MIT |
||
7 | * |
||
8 | * Package name:libhowi-filesystem |
||
9 | * @category HOWI3 |
||
10 | * @package libhowi |
||
11 | * @subpackage filesystem |
||
12 | * |
||
13 | * Lang: PHP |
||
14 | * Encoding: UTF-8 |
||
15 | * File: DirectoryPlaceholderInterface.inc |
||
16 | * @link https://github.com/okramlabs/libhowi-filesystem |
||
17 | ******************************************************************** |
||
18 | * Contributors: |
||
19 | * @author Marko Kungla <[email protected]> |
||
20 | * Github: https://github.com/mkungla |
||
21 | ******************************************************************** |
||
22 | * Comments: |
||
23 | */ |
||
24 | namespace HOWI3\libhowi\Filesystem\Commons\ObjectInterfaces; |
||
25 | |||
26 | interface DirectoryPlaceholderInterface |
||
27 | { |
||
28 | |||
29 | /** |
||
30 | * Make directory a new directory if does not exist |
||
31 | * |
||
32 | * This function calls $this->dirCreate() function |
||
33 | * |
||
34 | * @param string $pathname |
||
0 ignored issues
–
show
|
|||
35 | * @param string $mode |
||
0 ignored issues
–
show
Should the type for parameter
$mode not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
36 | * @param string $recursive |
||
0 ignored issues
–
show
Should the type for parameter
$recursive not be boolean|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
37 | * @param string $context |
||
0 ignored issues
–
show
Should the type for parameter
$context not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
38 | * @return bool |
||
0 ignored issues
–
show
Comprehensibility
Best Practice
introduced
by
Adding a
@return annotation to constructors is generally not recommended as a constructor does not have a meaningful return value.
Adding a Please refer to the PHP core documentation on constructors. ![]() |
|||
39 | */ |
||
40 | public function __construct($pathname = false, $mode = false, $recursive = true, $context = false); |
||
41 | |||
42 | /** |
||
43 | * Set path for directory object |
||
44 | * |
||
45 | * This can be relative path |
||
46 | * |
||
47 | * @param string $pathname |
||
0 ignored issues
–
show
Should the type for parameter
$pathname not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
48 | * @param string $HID |
||
0 ignored issues
–
show
Should the type for parameter
$HID not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
49 | * @return bool |
||
50 | */ |
||
51 | public function dirsetPath($pathname = false, $HID = false); |
||
52 | |||
53 | /** |
||
54 | * Set Directory mode |
||
55 | * |
||
56 | * Mode is non octal like 755 function will convert int nto correct octal value |
||
57 | * |
||
58 | * @param string $mode |
||
0 ignored issues
–
show
Should the type for parameter
$mode not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
59 | * @param string $HID |
||
0 ignored issues
–
show
Should the type for parameter
$HID not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
60 | * @return bool |
||
61 | */ |
||
62 | public function dirsetMode($mode = false, $HID = false); |
||
63 | |||
64 | /** |
||
65 | * Set Recursive on off while creating directory |
||
66 | * |
||
67 | * @param string $recursive |
||
0 ignored issues
–
show
Should the type for parameter
$recursive not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
68 | * @param string $HID |
||
0 ignored issues
–
show
Should the type for parameter
$HID not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
69 | * @return bool |
||
70 | */ |
||
71 | public function dirsetRecursive($recursive = false, $HID = false); |
||
72 | |||
73 | /** |
||
74 | * Set directory context |
||
75 | * |
||
76 | * @param string $context |
||
0 ignored issues
–
show
Should the type for parameter
$context not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
77 | * @param string $HID |
||
0 ignored issues
–
show
Should the type for parameter
$HID not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
78 | * @return bool |
||
79 | */ |
||
80 | public function dirsetContext($context = false, $HID = false); |
||
81 | |||
82 | /** |
||
83 | * Create this directory from current object |
||
84 | * |
||
85 | * @param string $HID |
||
0 ignored issues
–
show
Should the type for parameter
$HID not be false|string ?
This check looks for It makes a suggestion as to what type it considers more descriptive. Most often this is a case of a parameter that can be null in addition to its declared types. ![]() |
|||
86 | * @return bool |
||
87 | */ |
||
88 | public function dirCreate($HID = false); |
||
89 | } |
||
90 |
This check looks for
@param
annotations where the type inferred by our type inference engine differs from the declared type.It makes a suggestion as to what type it considers more descriptive.
Most often this is a case of a parameter that can be null in addition to its declared types.