From 95404b8fc452f7bd44ba3b976144a4edebadf015 Mon Sep 17 00:00:00 2001 From: logmanoriginal Date: Wed, 24 Aug 2016 20:48:12 +0200 Subject: [PATCH] [Bridge] Move 'Bridge' class at top of the file --- lib/Bridge.php | 206 ++++++++++++++++++++++++------------------------- 1 file changed, 103 insertions(+), 103 deletions(-) diff --git a/lib/Bridge.php b/lib/Bridge.php index b80dc61..c7bd693 100644 --- a/lib/Bridge.php +++ b/lib/Bridge.php @@ -1,4 +1,107 @@ IsInstantiable(); + } + + /** + * Create a new bridge object + * @param string $nameBridge Defined bridge name you want use + * @return Bridge object dedicated + */ + static public function create($nameBridge){ + if(!preg_match('@^[A-Z][a-zA-Z0-9-]*$@', $nameBridge)){ + $message = <<IsInstantiable(); - } - - /** - * Create a new bridge object - * @param string $nameBridge Defined bridge name you want use - * @return Bridge object dedicated - */ - static public function create($nameBridge){ - if(!preg_match('@^[A-Z][a-zA-Z0-9-]*$@', $nameBridge)){ - $message = <<