@@ -30,7 +30,7 @@ |
||
30 | 30 | { |
31 | 31 | $this->getContainer()->alias(StandardDebugBar::class, DebugBar::class); |
32 | 32 | |
33 | - $this->getContainer()->share('debugbar', function () { |
|
33 | + $this->getContainer()->share('debugbar', function() { |
|
34 | 34 | $debugbar = $this->getContainer()->get(DebugBar::class); |
35 | 35 | return $debugbar; |
36 | 36 | }); |
@@ -46,7 +46,7 @@ |
||
46 | 46 | */ |
47 | 47 | protected function prepareRequestUri() |
48 | 48 | { |
49 | - if ((int)$this->server->get('REDIRECT_STATUS', '200') >= 400 && $this->server->has('REDIRECT_URL')) { |
|
49 | + if ((int) $this->server->get('REDIRECT_STATUS', '200') >= 400 && $this->server->has('REDIRECT_URL')) { |
|
50 | 50 | $requestUri = $this->server->get('REDIRECT_URL'); |
51 | 51 | $schemeAndHttpHost = $this->getSchemeAndHttpHost(); |
52 | 52 | if (strpos($requestUri, $schemeAndHttpHost) === 0) { |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function setActionKey($key) |
70 | 70 | { |
71 | - $this->actionKey = (string)$key; |
|
71 | + $this->actionKey = (string) $key; |
|
72 | 72 | |
73 | 73 | return $this; |
74 | 74 | } |
@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | */ |
121 | 121 | public function setModuleKey($key) |
122 | 122 | { |
123 | - $this->moduleKey = (string)$key; |
|
123 | + $this->moduleKey = (string) $key; |
|
124 | 124 | |
125 | 125 | return $this; |
126 | 126 | } |
@@ -161,7 +161,7 @@ discard block |
||
161 | 161 | */ |
162 | 162 | public function setControllerKey($key) |
163 | 163 | { |
164 | - $this->controllerKey = (string)$key; |
|
164 | + $this->controllerKey = (string) $key; |
|
165 | 165 | |
166 | 166 | return $this; |
167 | 167 | } |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | |
24 | 24 | protected function registerModules() |
25 | 25 | { |
26 | - $this->getContainer()->share('mvc.modules', function () { |
|
26 | + $this->getContainer()->share('mvc.modules', function() { |
|
27 | 27 | return $this->createModulesProvider(); |
28 | 28 | }); |
29 | 29 | } |
@@ -39,7 +39,7 @@ discard block |
||
39 | 39 | |
40 | 40 | protected function registerSections() |
41 | 41 | { |
42 | - $this->getContainer()->share('mvc.sections', function () { |
|
42 | + $this->getContainer()->share('mvc.sections', function() { |
|
43 | 43 | return $this->createSectionsManager(); |
44 | 44 | }); |
45 | 45 | } |
@@ -20,6 +20,7 @@ |
||
20 | 20 | |
21 | 21 | /** |
22 | 22 | * {@inheritDoc} |
23 | + * @param \Nip\Records\AbstractModels\Record $element |
|
23 | 24 | */ |
24 | 25 | public function add($element, $key = null) |
25 | 26 | { |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * Checks if a header exists by the given case-insensitive name. |
75 | 75 | * |
76 | 76 | * @param string $name Case-insensitive header field name. |
77 | - * @return bool Returns true if any header names match the given header |
|
77 | + * @return boolean|null Returns true if any header names match the given header |
|
78 | 78 | * name using a case-insensitive string comparison. Returns false if |
79 | 79 | * no matching header name is found in the message. |
80 | 80 | */ |
@@ -74,7 +74,7 @@ |
||
74 | 74 | * Checks if a header exists by the given case-insensitive name. |
75 | 75 | * |
76 | 76 | * @param string $name Case-insensitive header field name. |
77 | - * @return bool Returns true if any header names match the given header |
|
77 | + * @return boolean|null Returns true if any header names match the given header |
|
78 | 78 | * name using a case-insensitive string comparison. Returns false if |
79 | 79 | * no matching header name is found in the message. |
80 | 80 | */ |
@@ -109,7 +109,7 @@ |
||
109 | 109 | |
110 | 110 | /** |
111 | 111 | * @param Record $record |
112 | - * @param null $index |
|
112 | + * @param string $index |
|
113 | 113 | */ |
114 | 114 | public function add($record, $index = null) |
115 | 115 | { |
@@ -38,7 +38,7 @@ |
||
38 | 38 | */ |
39 | 39 | public function offsetSet($offset, $value) |
40 | 40 | { |
41 | - if ( ! isset($offset)) { |
|
41 | + if (!isset($offset)) { |
|
42 | 42 | $this->add($value); |
43 | 43 | return; |
44 | 44 | } |