@@ -39,16 +39,16 @@ discard block |
||
39 | 39 | |
40 | 40 | // services système |
41 | 41 | $filename = SYST_PATH . 'Constants' . DS . 'providers.php'; |
42 | - if (! file_exists($filename)) { |
|
42 | + if (!file_exists($filename)) { |
|
43 | 43 | throw LoadException::providersDefinitionDontExist($filename); |
44 | 44 | } |
45 | - if (! in_array($filename, get_included_files(), true)) { |
|
45 | + if (!in_array($filename, get_included_files(), true)) { |
|
46 | 46 | $providers = array_merge($providers, require $filename); |
47 | 47 | } |
48 | 48 | |
49 | 49 | // services de l'application |
50 | 50 | $filename = CONFIG_PATH . 'providers.php'; |
51 | - if (file_exists($filename) && ! in_array($filename, get_included_files(), true)) { |
|
51 | + if (file_exists($filename) && !in_array($filename, get_included_files(), true)) { |
|
52 | 52 | $providers = array_merge($providers, require $filename); |
53 | 53 | } |
54 | 54 | |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | return $models; |
98 | 98 | } |
99 | 99 | |
100 | - if (! self::isLoaded('models', $model)) { |
|
100 | + if (!self::isLoaded('models', $model)) { |
|
101 | 101 | self::loaded('models', $model, FileLocator::model($model, $options, $connection)); |
102 | 102 | } |
103 | 103 | |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | */ |
112 | 112 | private static function isLoaded(string $module, $element): bool |
113 | 113 | { |
114 | - if (! isset(self::$loads[$module]) || ! is_array(self::$loads[$module])) { |
|
114 | + if (!isset(self::$loads[$module]) || !is_array(self::$loads[$module])) { |
|
115 | 115 | return false; |
116 | 116 | } |
117 | 117 |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | throw LoadException::libraryNotFound($lib); |
80 | 80 | } |
81 | 81 | |
82 | - if (true !== $file_syst && ! class_exists($lib)) { |
|
82 | + if (true !== $file_syst && !class_exists($lib)) { |
|
83 | 83 | throw LoadException::libraryDontExist($lib); |
84 | 84 | } |
85 | 85 | |
@@ -101,7 +101,7 @@ discard block |
||
101 | 101 | 'preferApp' => true, |
102 | 102 | ], $options); |
103 | 103 | |
104 | - if (! preg_match('#Model$#', $model)) { |
|
104 | + if (!preg_match('#Model$#', $model)) { |
|
105 | 105 | $model .= 'Model'; |
106 | 106 | } |
107 | 107 | |
@@ -112,7 +112,7 @@ discard block |
||
112 | 112 | $model = APP_NAMESPACE . '\\Models\\' . $model; |
113 | 113 | } |
114 | 114 | |
115 | - if (! class_exists($model)) { |
|
115 | + if (!class_exists($model)) { |
|
116 | 116 | throw LoadException::modelNotFound($model); |
117 | 117 | } |
118 | 118 | |
@@ -130,7 +130,7 @@ discard block |
||
130 | 130 | $controller = explode('/', $controller); |
131 | 131 | |
132 | 132 | $con = ucfirst(end($controller)); |
133 | - $con = (! preg_match('#Controller$#', $con)) ? $con . 'Controller' : $con; |
|
133 | + $con = (!preg_match('#Controller$#', $con)) ? $con . 'Controller' : $con; |
|
134 | 134 | $controller[count($controller) - 1] = $con; |
135 | 135 | |
136 | 136 | foreach ($controller as $key => &$value) { |
@@ -141,7 +141,7 @@ discard block |
||
141 | 141 | |
142 | 142 | $path = CONTROLLER_PATH . Helpers::ensureExt(implode(DS, $controller), 'php'); |
143 | 143 | |
144 | - if (! file_exists($path)) { |
|
144 | + if (!file_exists($path)) { |
|
145 | 145 | throw LoadException::controllerNotFound(str_replace('Controller', '', $con), $path); |
146 | 146 | } |
147 | 147 | |
@@ -152,7 +152,7 @@ discard block |
||
152 | 152 | if (class_exists($class_namespaced, false)) { |
153 | 153 | return Injector::make($class_namespaced); |
154 | 154 | } |
155 | - if (! class_exists($con, false)) { |
|
155 | + if (!class_exists($con, false)) { |
|
156 | 156 | throw LoadException::controllerDontExist(str_replace('Controller', '', $con), $path); |
157 | 157 | } |
158 | 158 | |
@@ -181,7 +181,7 @@ discard block |
||
181 | 181 | protected static function verifyPreferApp(array $options, string $name): bool |
182 | 182 | { |
183 | 183 | // Tout element sans restriction passe |
184 | - if (! $options['preferApp']) { |
|
184 | + if (!$options['preferApp']) { |
|
185 | 185 | return true; |
186 | 186 | } |
187 | 187 |