@@ -160,8 +160,8 @@ class WaterPipe
160160 *
161161 * @var \Exception
162162 */
163- private $ _runningException ;
164-
163+ private $ _runningException ;
164+
165165 /**
166166 * @return WaterPipe
167167 */
@@ -261,12 +261,10 @@ function (Response $response) use (&$plugin) {
261261 "head " => $ plugin ->_headRequestRegistry ,
262262 "patch " => $ plugin ->_patchRequestRegistry ,
263263 "options " => $ plugin ->_optionsRequestRegistry
264- ] as $ method => $ registry ) {
265-
264+ ] as $ method => $ registry ) {
266265 foreach ($ registry as $ uri => $ action ) {
267266 $ this ->$ method ($ uri , $ action );
268267 }
269-
270268 }
271269 }
272270 }
@@ -439,14 +437,16 @@ public function run()
439437 $ pipe [1 ]->_runBase ($ pipe [0 ]);
440438 }
441439 }
442-
440+
443441 /**
444- * If an exception has occured while running the pipe
445- * This method will return that exception.
442+ * If an exception has occurred while running the pipe,
443+ * this method will return that exception.
446444 * Otherwise, will return null.
445+ *
447446 * @return \Exception
448447 */
449- function getRunningException () {
448+ public function getRunningException ()
449+ {
450450 return $ this ->_runningException ;
451451 }
452452
@@ -564,7 +564,7 @@ private function _executeRequest()
564564 $ this ->_executeAction ($ runner );
565565 } catch (\Exception $ e ) {
566566 $ this ->_runningException = $ e ;
567-
567+
568568 if (isset ($ this ->_errorsRegistry [500 ])) {
569569 $ this ->_executeAction ($ this ->_errorsRegistry [500 ]);
570570 } else {
0 commit comments