@@ -16,8 +16,8 @@ discard block |
||
| 16 | 16 | * @param string $action one of "select","auto","activate","combo","nothing","hide" |
| 17 | 17 | * @return \Ajax\semantic\components\Dropdown |
| 18 | 18 | */ |
| 19 | - public function setAction($action){ |
|
| 20 | - return $this->setParamCtrl("action", $action,array("select","auto","activate","combo","nothing","hide")); |
|
| 19 | + public function setAction($action) { |
|
| 20 | + return $this->setParamCtrl("action", $action, array("select", "auto", "activate", "combo", "nothing", "hide")); |
|
| 21 | 21 | } |
| 22 | 22 | |
| 23 | 23 | /** |
@@ -25,19 +25,19 @@ discard block |
||
| 25 | 25 | * @param string $event Event used to trigger dropdown (Hover, Click, Custom Event) |
| 26 | 26 | * @return \Ajax\semantic\components\Dropdown |
| 27 | 27 | */ |
| 28 | - public function setOn($event){ |
|
| 28 | + public function setOn($event) { |
|
| 29 | 29 | return $this->setParam("on", $event); |
| 30 | 30 | } |
| 31 | 31 | |
| 32 | - public function setFullTextSearch($value){ |
|
| 32 | + public function setFullTextSearch($value) { |
|
| 33 | 33 | return $this->setParam("fullTextSearch", $value); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - public function setShowOnFocus($value){ |
|
| 36 | + public function setShowOnFocus($value) { |
|
| 37 | 37 | return $this->setParam("showOnFocus", $value); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | - public function setAllowAdditions($value){ |
|
| 40 | + public function setAllowAdditions($value) { |
|
| 41 | 41 | return $this->setParam("allowAdditions", $value); |
| 42 | 42 | } |
| 43 | 43 | } |
@@ -37,7 +37,7 @@ discard block |
||
| 37 | 37 | * @return mixed |
| 38 | 38 | */ |
| 39 | 39 | public function getLibraryId() { |
| 40 | - if( isset($this->_libraryId)){ |
|
| 40 | + if (isset($this->_libraryId)) { |
|
| 41 | 41 | return $this->_libraryId; |
| 42 | 42 | } |
| 43 | 43 | return $this->identifier; |
@@ -47,7 +47,7 @@ discard block |
||
| 47 | 47 | * @param mixed $_libraryId |
| 48 | 48 | */ |
| 49 | 49 | public function setLibraryId($_libraryId) { |
| 50 | - $this->_libraryId = $_libraryId; |
|
| 50 | + $this->_libraryId=$_libraryId; |
|
| 51 | 51 | } |
| 52 | 52 | |
| 53 | 53 | } |
@@ -9,7 +9,7 @@ discard block |
||
| 9 | 9 | * @param string $hookKey |
| 10 | 10 | * @return boolean |
| 11 | 11 | */ |
| 12 | - public function hookExists($hookKey){ |
|
| 12 | + public function hookExists($hookKey) { |
|
| 13 | 13 | return isset($this->_hooks[$hookKey]); |
| 14 | 14 | } |
| 15 | 15 | |
@@ -17,8 +17,8 @@ discard block |
||
| 17 | 17 | * @param string $hookKey |
| 18 | 18 | * @return callable|NULL |
| 19 | 19 | */ |
| 20 | - public function getHook($hookKey){ |
|
| 21 | - if(isset($this->_hooks[$hookKey])){ |
|
| 20 | + public function getHook($hookKey) { |
|
| 21 | + if (isset($this->_hooks[$hookKey])) { |
|
| 22 | 22 | return $this->_hooks[$hookKey]; |
| 23 | 23 | } |
| 24 | 24 | return null; |
@@ -29,7 +29,7 @@ discard block |
||
| 29 | 29 | * @param String $hookKey |
| 30 | 30 | * @param callable $callable |
| 31 | 31 | */ |
| 32 | - public function addHook($hookKey,$callable){ |
|
| 32 | + public function addHook($hookKey, $callable) { |
|
| 33 | 33 | $this->_hooks[$hookKey]=$callable; |
| 34 | 34 | } |
| 35 | 35 | |
@@ -39,8 +39,8 @@ discard block |
||
| 39 | 39 | * @param mixed|null $variable |
| 40 | 40 | * @return void|mixed |
| 41 | 41 | */ |
| 42 | - public function execHook($hookKey,$variable=null){ |
|
| 43 | - if(($hook=$this->getHook($hookKey))!=null){ |
|
| 42 | + public function execHook($hookKey, $variable=null) { |
|
| 43 | + if (($hook=$this->getHook($hookKey))!=null) { |
|
| 44 | 44 | return $hook($variable); |
| 45 | 45 | } |
| 46 | 46 | return; |