@@ -113,7 +113,7 @@ |
||
| 113 | 113 | * |
| 114 | 114 | * After the stream has been detached, the stream is in an unusable state. |
| 115 | 115 | * |
| 116 | - * @return resource|null Underlying PHP stream, if any |
|
| 116 | + * @return resource Underlying PHP stream, if any |
|
| 117 | 117 | */ |
| 118 | 118 | public function detach() |
| 119 | 119 | { |
@@ -224,8 +224,7 @@ |
||
| 224 | 224 | public function seek($offset, $whence = SEEK_SET) |
| 225 | 225 | { |
| 226 | 226 | return $this->isAttached() && $this->isSeekable() ? |
| 227 | - fseek($this->stream, $offset, $whence) : |
|
| 228 | - false; |
|
| 227 | + fseek($this->stream, $offset, $whence) : false; |
|
| 229 | 228 | } |
| 230 | 229 | |
| 231 | 230 | /** |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Veto. |
|
| 4 | - * PHP Microframework. |
|
| 5 | - * |
|
| 6 | - * @author Damien Walsh <[email protected]> |
|
| 7 | - * @copyright Damien Walsh 2013-2014 |
|
| 8 | - * @version 0.1 |
|
| 9 | - * @package veto |
|
| 10 | - */ |
|
| 3 | + * Veto. |
|
| 4 | + * PHP Microframework. |
|
| 5 | + * |
|
| 6 | + * @author Damien Walsh <[email protected]> |
|
| 7 | + * @copyright Damien Walsh 2013-2014 |
|
| 8 | + * @version 0.1 |
|
| 9 | + * @package veto |
|
| 10 | + */ |
|
| 11 | 11 | namespace Veto\Templating; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -547,7 +547,7 @@ discard block |
||
| 547 | 547 | /** |
| 548 | 548 | * Get a parameter of this request. |
| 549 | 549 | * |
| 550 | - * @param $key |
|
| 550 | + * @param string $key |
|
| 551 | 551 | * @param null $default |
| 552 | 552 | * @return mixed|null |
| 553 | 553 | */ |
@@ -559,7 +559,7 @@ discard block |
||
| 559 | 559 | /** |
| 560 | 560 | * Check if the request has a parameter with the specified key. |
| 561 | 561 | * |
| 562 | - * @param $key |
|
| 562 | + * @param string $key |
|
| 563 | 563 | * @return bool |
| 564 | 564 | */ |
| 565 | 565 | public function hasParameter($key) |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Veto. |
|
| 4 | - * PHP Microframework. |
|
| 5 | - * |
|
| 6 | - * @author Damien Walsh <[email protected]> |
|
| 7 | - * @copyright Damien Walsh 2013-2014 |
|
| 8 | - * @version 0.1 |
|
| 9 | - * @package veto |
|
| 10 | - */ |
|
| 3 | + * Veto. |
|
| 4 | + * PHP Microframework. |
|
| 5 | + * |
|
| 6 | + * @author Damien Walsh <[email protected]> |
|
| 7 | + * @copyright Damien Walsh 2013-2014 |
|
| 8 | + * @version 0.1 |
|
| 9 | + * @package veto |
|
| 10 | + */ |
|
| 11 | 11 | namespace Veto\Templating; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -221,7 +221,7 @@ discard block |
||
| 221 | 221 | * While header names are not case-sensitive, getHeaders() will preserve the |
| 222 | 222 | * exact case in which headers were originally specified. |
| 223 | 223 | * |
| 224 | - * @return array Returns an associative array of the message's headers. Each |
|
| 224 | + * @return HeaderBag Returns an associative array of the message's headers. Each |
|
| 225 | 225 | * key MUST be a header name, and each value MUST be an array of strings. |
| 226 | 226 | */ |
| 227 | 227 | public function getHeaders() |
@@ -277,7 +277,7 @@ discard block |
||
| 277 | 277 | * a null value. |
| 278 | 278 | * |
| 279 | 279 | * @param string $name Case-insensitive header field name. |
| 280 | - * @return string|null A string of values as provided for the given header |
|
| 280 | + * @return string A string of values as provided for the given header |
|
| 281 | 281 | * concatenated together using a comma. If the header does not appear in |
| 282 | 282 | * the message, this method MUST return a null value. |
| 283 | 283 | */ |
@@ -442,7 +442,7 @@ discard block |
||
| 442 | 442 | * |
| 443 | 443 | * @link http://tools.ietf.org/html/rfc7231#section-6 |
| 444 | 444 | * @link http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml |
| 445 | - * @return string|null Reason phrase, or null if unknown. |
|
| 445 | + * @return string Reason phrase, or null if unknown. |
|
| 446 | 446 | */ |
| 447 | 447 | public function getReasonPhrase() |
| 448 | 448 | { |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Veto. |
|
| 4 | - * PHP Microframework. |
|
| 5 | - * |
|
| 6 | - * @author Damien Walsh <[email protected]> |
|
| 7 | - * @copyright Damien Walsh 2013-2014 |
|
| 8 | - * @version 0.1 |
|
| 9 | - * @package veto |
|
| 10 | - */ |
|
| 3 | + * Veto. |
|
| 4 | + * PHP Microframework. |
|
| 5 | + * |
|
| 6 | + * @author Damien Walsh <[email protected]> |
|
| 7 | + * @copyright Damien Walsh 2013-2014 |
|
| 8 | + * @version 0.1 |
|
| 9 | + * @package veto |
|
| 10 | + */ |
|
| 11 | 11 | namespace Veto\Templating; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -35,7 +35,7 @@ |
||
| 35 | 35 | |
| 36 | 36 | /** |
| 37 | 37 | * @param Request $request |
| 38 | - * @return mixed |
|
| 38 | + * @return Response |
|
| 39 | 39 | * @throws \RuntimeException |
| 40 | 40 | */ |
| 41 | 41 | public function in(Request $request) |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Veto. |
|
| 4 | - * PHP Microframework. |
|
| 5 | - * |
|
| 6 | - * @author Damien Walsh <[email protected]> |
|
| 7 | - * @copyright Damien Walsh 2013-2014 |
|
| 8 | - * @version 0.1 |
|
| 9 | - * @package veto |
|
| 10 | - */ |
|
| 3 | + * Veto. |
|
| 4 | + * PHP Microframework. |
|
| 5 | + * |
|
| 6 | + * @author Damien Walsh <[email protected]> |
|
| 7 | + * @copyright Damien Walsh 2013-2014 |
|
| 8 | + * @version 0.1 |
|
| 9 | + * @package veto |
|
| 10 | + */ |
|
| 11 | 11 | namespace Veto\Templating; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -124,7 +124,7 @@ |
||
| 124 | 124 | $layerChain = $this->container->get('chain'); |
| 125 | 125 | $response = $layerChain->processLayers($request); |
| 126 | 126 | |
| 127 | - } catch(\Exception $exception) { |
|
| 127 | + } catch (\Exception $exception) { |
|
| 128 | 128 | |
| 129 | 129 | // Invoke the exception controller action method |
| 130 | 130 | $exceptionHandler = $this->container->get('controller._exception_handler'); |
@@ -44,7 +44,7 @@ |
||
| 44 | 44 | ); |
| 45 | 45 | } |
| 46 | 46 | |
| 47 | - foreach($config['@import'] as $importPath) { |
|
| 47 | + foreach ($config['@import'] as $importPath) { |
|
| 48 | 48 | $importPath = dirname($path) . '/' . $importPath; |
| 49 | 49 | |
| 50 | 50 | if (!file_exists($importPath)) { |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Veto. |
|
| 4 | - * PHP Microframework. |
|
| 5 | - * |
|
| 6 | - * @author Damien Walsh <[email protected]> |
|
| 7 | - * @copyright Damien Walsh 2013-2014 |
|
| 8 | - * @version 0.1 |
|
| 9 | - * @package veto |
|
| 10 | - */ |
|
| 3 | + * Veto. |
|
| 4 | + * PHP Microframework. |
|
| 5 | + * |
|
| 6 | + * @author Damien Walsh <[email protected]> |
|
| 7 | + * @copyright Damien Walsh 2013-2014 |
|
| 8 | + * @version 0.1 |
|
| 9 | + * @package veto |
|
| 10 | + */ |
|
| 11 | 11 | namespace Veto\Templating; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -168,7 +168,7 @@ |
||
| 168 | 168 | $user = $environment->get('PHP_AUTH_USER', ''); |
| 169 | 169 | $password = $environment->get('PHP_AUTH_PW', ''); |
| 170 | 170 | $host = $environment->get('HTTP_HOST', $environment->get('SERVER_NAME')); |
| 171 | - $port = (int)$environment->get('SERVER_PORT', null); |
|
| 171 | + $port = (int) $environment->get('SERVER_PORT', null); |
|
| 172 | 172 | |
| 173 | 173 | // Path |
| 174 | 174 | $requestUri = parse_url($environment->get('REQUEST_URI'), PHP_URL_PATH); |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Veto. |
|
| 4 | - * PHP Microframework. |
|
| 5 | - * |
|
| 6 | - * @author Damien Walsh <[email protected]> |
|
| 7 | - * @copyright Damien Walsh 2013-2014 |
|
| 8 | - * @version 0.1 |
|
| 9 | - * @package veto |
|
| 10 | - */ |
|
| 3 | + * Veto. |
|
| 4 | + * PHP Microframework. |
|
| 5 | + * |
|
| 6 | + * @author Damien Walsh <[email protected]> |
|
| 7 | + * @copyright Damien Walsh 2013-2014 |
|
| 8 | + * @version 0.1 |
|
| 9 | + * @package veto |
|
| 10 | + */ |
|
| 11 | 11 | namespace Veto\Templating; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -40,7 +40,7 @@ |
||
| 40 | 40 | // Enforce the type of $layer |
| 41 | 41 | if (!($layer instanceof InboundLayerInterface || $layer instanceof OutboundLayerInterface)) { |
| 42 | 42 | throw new \InvalidArgumentException( |
| 43 | - 'Argument 1 of ' . __CLASS__ . '::' . __METHOD__ . |
|
| 43 | + 'Argument 1 of ' . __CLASS__ . '::' . __METHOD__ . |
|
| 44 | 44 | ' must be either an InboundLayerInterface or an OutboundLayerInterface instance.' |
| 45 | 45 | ); |
| 46 | 46 | } |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Veto. |
|
| 4 | - * PHP Microframework. |
|
| 5 | - * |
|
| 6 | - * @author Damien Walsh <[email protected]> |
|
| 7 | - * @copyright Damien Walsh 2013-2014 |
|
| 8 | - * @version 0.1 |
|
| 9 | - * @package veto |
|
| 10 | - */ |
|
| 3 | + * Veto. |
|
| 4 | + * PHP Microframework. |
|
| 5 | + * |
|
| 6 | + * @author Damien Walsh <[email protected]> |
|
| 7 | + * @copyright Damien Walsh 2013-2014 |
|
| 8 | + * @version 0.1 |
|
| 9 | + * @package veto |
|
| 10 | + */ |
|
| 11 | 11 | namespace Veto\Templating; |
| 12 | 12 | |
| 13 | 13 | /** |
@@ -41,7 +41,7 @@ |
||
| 41 | 41 | // Determine the type of loader that is used by this twig |
| 42 | 42 | if ($loader instanceof \Twig_Loader_Filesystem) { |
| 43 | 43 | $loader->addPath($path); |
| 44 | - } else if($loader instanceof \Twig_Loader_Chain) { |
|
| 44 | + } else if ($loader instanceof \Twig_Loader_Chain) { |
|
| 45 | 45 | $loader->addLoader( |
| 46 | 46 | new \Twig_Loader_Filesystem($path) |
| 47 | 47 | ); |
@@ -1,13 +1,13 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | /** |
| 3 | - * Veto. |
|
| 4 | - * PHP Microframework. |
|
| 5 | - * |
|
| 6 | - * @author Damien Walsh <[email protected]> |
|
| 7 | - * @copyright Damien Walsh 2013-2014 |
|
| 8 | - * @version 0.1 |
|
| 9 | - * @package veto |
|
| 10 | - */ |
|
| 3 | + * Veto. |
|
| 4 | + * PHP Microframework. |
|
| 5 | + * |
|
| 6 | + * @author Damien Walsh <[email protected]> |
|
| 7 | + * @copyright Damien Walsh 2013-2014 |
|
| 8 | + * @version 0.1 |
|
| 9 | + * @package veto |
|
| 10 | + */ |
|
| 11 | 11 | namespace Veto\Templating; |
| 12 | 12 | |
| 13 | 13 | /** |