@@ -1,6 +1,6 @@ |
||
1 | 1 | <?php |
2 | 2 | |
3 | -if (! function_exists('suffix')) { |
|
3 | +if (!function_exists('suffix')) { |
|
4 | 4 | /** |
5 | 5 | * Adding string to end of target's value. |
6 | 6 | * |
@@ -85,7 +85,7 @@ discard block |
||
85 | 85 | // Ask for overriding, If there are files in interface repository. |
86 | 86 | // It could be already asked while checking repository files. |
87 | 87 | // If so, we won't show this confirm question again. |
88 | - if (count($existingInterfaceFiles) > 0 && ! $this->override) { |
|
88 | + if (count($existingInterfaceFiles) > 0 && !$this->override) { |
|
89 | 89 | if ($this->confirm('Do you want to overwrite the existing files? (Yes/No):')) { |
90 | 90 | $this->override = true; |
91 | 91 | } |
@@ -290,12 +290,12 @@ discard block |
||
290 | 290 | $repositoryParentPath = $this->parentPath('repository'); |
291 | 291 | |
292 | 292 | // Check parent of repository directory is writable. |
293 | - if (! file_exists($repositoryPath) && ! is_writable($repositoryParentPath)) { |
|
293 | + if (!file_exists($repositoryPath) && !is_writable($repositoryParentPath)) { |
|
294 | 294 | throw FileException::notWritableDirectory($repositoryParentPath); |
295 | 295 | } |
296 | 296 | |
297 | 297 | // Check repository directory permissions. |
298 | - if (file_exists($repositoryPath) && ! is_writable($repositoryPath)) { |
|
298 | + if (file_exists($repositoryPath) && !is_writable($repositoryPath)) { |
|
299 | 299 | throw FileException::notWritableDirectory($repositoryPath); |
300 | 300 | } |
301 | 301 | } |
@@ -314,19 +314,19 @@ discard block |
||
314 | 314 | $interfaceParentPath = $this->parentPath('interface'); |
315 | 315 | |
316 | 316 | // Check parent of interface directory is writable. |
317 | - if (! file_exists($interfacePath) && ! is_writable($interfaceParentPath)) { |
|
317 | + if (!file_exists($interfacePath) && !is_writable($interfaceParentPath)) { |
|
318 | 318 | throw FileException::notWritableDirectory($interfaceParentPath); |
319 | 319 | } |
320 | 320 | |
321 | 321 | // Check repository directory permissions. |
322 | - if (file_exists($interfacePath) && ! is_writable($interfacePath)) { |
|
322 | + if (file_exists($interfacePath) && !is_writable($interfacePath)) { |
|
323 | 323 | throw FileException::notWritableDirectory($interfacePath); |
324 | 324 | } |
325 | 325 | } |
326 | 326 | |
327 | 327 | private function createFolder($folder) |
328 | 328 | { |
329 | - if (! file_exists($folder)) { |
|
329 | + if (!file_exists($folder)) { |
|
330 | 330 | mkdir($folder); |
331 | 331 | } |
332 | 332 | } |
@@ -273,7 +273,7 @@ discard block |
||
273 | 273 | */ |
274 | 274 | public function delete($id = null) |
275 | 275 | { |
276 | - if (! is_null($id)) { |
|
276 | + if (!is_null($id)) { |
|
277 | 277 | $this->where('id', $id); |
278 | 278 | } |
279 | 279 | |
@@ -301,7 +301,7 @@ discard block |
||
301 | 301 | $query = $this->model->select($this->columns); |
302 | 302 | |
303 | 303 | $wheres = $this->wheres; |
304 | - if (! is_null($wheres)) { |
|
304 | + if (!is_null($wheres)) { |
|
305 | 305 | foreach ($wheres as $where) { |
306 | 306 | if (isset($where['values']) && isset($where['type'])) { |
307 | 307 | $query->whereIn($where['column'], $where['values']); |
@@ -312,7 +312,7 @@ discard block |
||
312 | 312 | } |
313 | 313 | |
314 | 314 | $relations = $this->relations; |
315 | - if (! is_null($this->relations)) { |
|
315 | + if (!is_null($this->relations)) { |
|
316 | 316 | foreach ($relations as $relation) { |
317 | 317 | $query->with($relation); |
318 | 318 | } |
@@ -331,7 +331,7 @@ discard block |
||
331 | 331 | $query = $this->model; |
332 | 332 | |
333 | 333 | $wheres = $this->wheres; |
334 | - if (! is_null($wheres)) { |
|
334 | + if (!is_null($wheres)) { |
|
335 | 335 | foreach ($wheres as $where) { |
336 | 336 | $query->where($where['column'], $where['operator'], $where['value']); |
337 | 337 | } |
@@ -373,7 +373,7 @@ discard block |
||
373 | 373 | protected function invalidOperatorAndValue($operator, $value) |
374 | 374 | { |
375 | 375 | return is_null($value) && in_array($operator, $this->operators) && |
376 | - ! in_array($operator, ['=', '<>', '!=']); |
|
376 | + !in_array($operator, ['=', '<>', '!=']); |
|
377 | 377 | } |
378 | 378 | |
379 | 379 | /** |
@@ -384,6 +384,6 @@ discard block |
||
384 | 384 | */ |
385 | 385 | protected function invalidOperator($operator) |
386 | 386 | { |
387 | - return ! in_array(strtolower($operator), $this->operators, true); |
|
387 | + return !in_array(strtolower($operator), $this->operators, true); |
|
388 | 388 | } |
389 | 389 | } |