Skip to content

Commit 8b49e38

Browse files
committed
abstract before
1 parent e5e3c8f commit 8b49e38

22 files changed

+29
-29
lines changed

Ajax/JsUtils.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -55,31 +55,31 @@ protected function _setDi($di) {
5555
$this->js->setDi($di);
5656
}
5757

58-
public abstract function getUrl($url);
59-
public abstract function addViewElement($identifier,$content,&$view);
60-
public abstract function createScriptVariable(&$view,$view_var, $output);
58+
abstract public function getUrl($url);
59+
abstract public function addViewElement($identifier,$content,&$view);
60+
abstract public function createScriptVariable(&$view,$view_var, $output);
6161
/**
6262
* render the content of $controller::$action and set the response to the modal content
6363
* @param Controller $initialController
6464
* @param string $controller a Phalcon controller
6565
* @param string $action a Phalcon action
6666
* @param array $params
6767
*/
68-
public abstract function forward($initialController,$controller,$action,$params);
68+
abstract public function forward($initialController,$controller,$action,$params);
6969
/**
7070
* render the content of an existing view : $viewName and set the response to the modal content
7171
* @param Controller $initialControllerInstance
7272
* @param View $viewName
7373
* @param $params The parameters to pass to the view
7474
*/
75-
public abstract function renderContent($initialControllerInstance,$viewName, $params=NULL);
75+
abstract public function renderContent($initialControllerInstance,$viewName, $params=NULL);
7676

7777
/**
7878
* Collect url parts from the request dispatcher : controllerName, actionName, parameters
7979
* @param mixed $dispatcher
8080
* @return array
8181
*/
82-
public abstract function fromDispatcher($dispatcher);
82+
abstract public function fromDispatcher($dispatcher);
8383

8484
/**
8585
*

Ajax/bootstrap/html/base/HtmlNavElement.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,6 @@ public function __call($method, $args) {
7878
}
7979
}
8080

81-
public abstract function fromDispatcher(JsUtils $js,$dispatcher,$startIndex=0);
81+
abstract public function fromDispatcher(JsUtils $js,$dispatcher,$startIndex=0);
8282

8383
}

Ajax/bootstrap/traits/BootstrapComponentsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ trait BootstrapComponentsTrait {
2626
* @param array|null|string $params
2727
* @return SimpleComponent
2828
*/
29-
public abstract function addComponent(SimpleComponent $component, $attachTo, $params);
29+
abstract public function addComponent(SimpleComponent $component, $attachTo, $params);
3030
/**
3131
*
3232
* @param string $attachTo

Ajax/common/Widget.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ public function setInstanceViewer($_instanceViewer) {
7070
return $this;
7171
}
7272

73-
public abstract function getHtmlComponent();
73+
abstract public function getHtmlComponent();
7474

7575
public function setColor($color){
7676
return $this->getHtmlComponent()->setColor($color);

Ajax/common/html/BaseHtml.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ protected function removeOldValues(&$oldValue, $allValues) {
200200
* @param JsUtils $js
201201
* @return SimpleExtComponent
202202
*/
203-
public abstract function run(JsUtils $js);
203+
abstract public function run(JsUtils $js);
204204

205205
public function getTagName() {
206206
return $this->tagName;

Ajax/common/html/HtmlCollection.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ public function fromArray($array) {
117117
* The item factory
118118
* @param mixed $value
119119
*/
120-
protected abstract function createItem($value);
120+
abstract protected function createItem($value);
121121

122122
protected function createCondition($value){
123123
return \is_object($value)===false;

Ajax/common/traits/JqueryActionsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
trait JqueryActionsTrait {
13-
public abstract function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false,$immediatly=true);
13+
abstract public function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false,$immediatly=true);
1414

1515
/**
1616
* Get or set the value of an attribute for the first element in the set of matched elements or set one or more attributes for every matched element.

Ajax/common/traits/JqueryAjaxTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ trait JqueryAjaxTrait {
1515

1616
protected $ajaxLoader='<span></span><span></span><span></span><span></span><span></span>';
1717

18-
public abstract function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false,$immediatly=true);
18+
abstract public function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false,$immediatly=true);
1919
protected function addLoading(&$retour, $responseElement) {
2020
$loading_notifier='<div class="ajax-loader">';
2121
if ($this->ajaxLoader=='') {

Ajax/common/traits/JqueryEventsTrait.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*/
1111

1212
trait JqueryEventsTrait {
13-
public abstract function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false,$immediatly=true);
13+
abstract public function _add_event($element, $js, $event, $preventDefault=false, $stopPropagation=false,$immediatly=true);
1414

1515
/**
1616
* Blur

Ajax/semantic/components/search/AbstractSearchResult.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,5 @@ public function fromDatabaseObjects($objects, $function) {
1313
return $this;
1414
}
1515

16-
protected abstract function fromDatabaseObject($object, $function);
16+
abstract protected function fromDatabaseObject($object, $function);
1717
}

0 commit comments

Comments
 (0)