Conditions | 3 |
Paths | 3 |
Total Lines | 14 |
Code Lines | 10 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php namespace BestServedCold\PhalueObjects\File; |
||
8 | public function exists() |
||
|
|||
9 | { |
||
10 | if (! $this->valid()) { |
||
11 | throw new \Exception; |
||
12 | } |
||
13 | |||
14 | $curl = Curl::fromString($this->getValue()); |
||
15 | $curl->setOption($curl->noBody) |
||
16 | ->setOption($curl->returnTransfer) |
||
17 | ->setOption($curl->followRedirects) |
||
18 | ->setOption($curl->maxRedirects) |
||
19 | ->exec(); |
||
20 | return $curl->error() ? false : true; |
||
21 | } |
||
22 | |||
30 |
This check examines a number of code elements and verifies that they conform to the given naming conventions.
You can set conventions for local variables, abstract classes, utility classes, constant, properties, methods, parameters, interfaces, classes, exceptions and special methods.