@@ -48,7 +48,7 @@ |
||
48 | 48 | } |
49 | 49 | |
50 | 50 | /** |
51 | - * @return string |
|
51 | + * @return integer |
|
52 | 52 | */ |
53 | 53 | public function getSize() |
54 | 54 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | /** |
47 | 47 | * Move model in the $destination. |
48 | 48 | * |
49 | - * @param $destination -1 (move down) or 1 (move up) |
|
49 | + * @param integer $destination -1 (move down) or 1 (move up) |
|
50 | 50 | */ |
51 | 51 | protected function move($destination) |
52 | 52 | { |
@@ -73,8 +73,8 @@ |
||
73 | 73 | protected function updateOrderFieldOnDelete() |
74 | 74 | { |
75 | 75 | static::orderModel() |
76 | - ->where($this->getOrderField(), '>', $this->getOrderValue()) |
|
77 | - ->decrement($this->getOrderField()); |
|
76 | + ->where($this->getOrderField(), '>', $this->getOrderValue()) |
|
77 | + ->decrement($this->getOrderField()); |
|
78 | 78 | } |
79 | 79 | |
80 | 80 | /** |
@@ -17,16 +17,16 @@ |
||
17 | 17 | */ |
18 | 18 | protected static function bootOrderableModel() |
19 | 19 | { |
20 | - static::creating(function (Model $row) { |
|
20 | + static::creating(function(Model $row) { |
|
21 | 21 | $row->updateOrderFieldOnCreate(); |
22 | 22 | }); |
23 | 23 | |
24 | - static::deleted(function (Model $row) { |
|
24 | + static::deleted(function(Model $row) { |
|
25 | 25 | $row->updateOrderFieldOnDelete(); |
26 | 26 | }); |
27 | 27 | |
28 | 28 | if (in_array("Illuminate\Database\Eloquent\SoftDeletes", trait_uses_recursive(new static()))) { |
29 | - static::restoring(function (Model $row) { |
|
29 | + static::restoring(function(Model $row) { |
|
30 | 30 | $row->updateOrderFieldOnRestore(); |
31 | 31 | }); |
32 | 32 | } |
@@ -80,7 +80,7 @@ |
||
80 | 80 | /** |
81 | 81 | * @param string $editorId |
82 | 82 | * |
83 | - * @return bool |
|
83 | + * @return boolean|null |
|
84 | 84 | */ |
85 | 85 | public function loadEditor($editorId) |
86 | 86 | { |
@@ -67,7 +67,7 @@ discard block |
||
67 | 67 | */ |
68 | 68 | public function getEditor($editorId) |
69 | 69 | { |
70 | - return $this->getFilters()->filter(function (WysiwygEditorInterface $editor) use ($editorId) { |
|
70 | + return $this->getFilters()->filter(function(WysiwygEditorInterface $editor) use ($editorId) { |
|
71 | 71 | return $editor->getId() == $editorId; |
72 | 72 | })->first(); |
73 | 73 | } |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function loadEditor($editorId) |
86 | 86 | { |
87 | - if (! is_null($editor = $this->getEditor($editorId))) { |
|
87 | + if (!is_null($editor = $this->getEditor($editorId))) { |
|
88 | 88 | if ($editor->isUsed()) { |
89 | 89 | return true; |
90 | 90 | } |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function applyFilter($editorId, $text) |
106 | 106 | { |
107 | - if (! is_null($editor = $this->getEditor($editorId))) { |
|
107 | + if (!is_null($editor = $this->getEditor($editorId))) { |
|
108 | 108 | return $editor->applyFilter($text); |
109 | 109 | } |
110 | 110 |
@@ -54,7 +54,7 @@ |
||
54 | 54 | */ |
55 | 55 | public function setModel($model) |
56 | 56 | { |
57 | - if (! class_exists($model)) { |
|
57 | + if (!class_exists($model)) { |
|
58 | 58 | throw new Exception("Class model [$model] not found"); |
59 | 59 | } |
60 | 60 |
@@ -46,7 +46,7 @@ |
||
46 | 46 | public function toArray() |
47 | 47 | { |
48 | 48 | $value = $this->getModelValue(); |
49 | - if (! empty($value) && (strpos($value, '://') === false)) { |
|
49 | + if (!empty($value) && (strpos($value, '://') === false)) { |
|
50 | 50 | $value = asset($value); |
51 | 51 | } |
52 | 52 |
@@ -49,7 +49,7 @@ discard block |
||
49 | 49 | */ |
50 | 50 | public function set($actions) |
51 | 51 | { |
52 | - if (! is_array($actions)) { |
|
52 | + if (!is_array($actions)) { |
|
53 | 53 | $actions = func_get_args(); |
54 | 54 | } |
55 | 55 | |
@@ -145,13 +145,13 @@ discard block |
||
145 | 145 | return; |
146 | 146 | } |
147 | 147 | |
148 | - $this->all()->each(function (ActionInterface $action) { |
|
148 | + $this->all()->each(function(ActionInterface $action) { |
|
149 | 149 | $action->initialize(); |
150 | 150 | }); |
151 | 151 | |
152 | 152 | $this->setHtmlAttribute('data-type', 'display-actions'); |
153 | 153 | |
154 | - if (! $this->hasHtmlAttribute('class')) { |
|
154 | + if (!$this->hasHtmlAttribute('class')) { |
|
155 | 155 | $this->setHtmlAttribute('class', 'panel-footer'); |
156 | 156 | } |
157 | 157 | } |
@@ -152,7 +152,7 @@ |
||
152 | 152 | |
153 | 153 | public function initialize() |
154 | 154 | { |
155 | - $this->allWithControl()->each(function (ColumnInterface $column) { |
|
155 | + $this->allWithControl()->each(function(ColumnInterface $column) { |
|
156 | 156 | $column->initialize(); |
157 | 157 | }); |
158 | 158 |
@@ -40,7 +40,7 @@ discard block |
||
40 | 40 | */ |
41 | 41 | public function setItems($items) |
42 | 42 | { |
43 | - if (! is_array($items)) { |
|
43 | + if (!is_array($items)) { |
|
44 | 44 | $items = func_get_args(); |
45 | 45 | } |
46 | 46 | |
@@ -68,7 +68,7 @@ discard block |
||
68 | 68 | */ |
69 | 69 | public function addHeader($items) |
70 | 70 | { |
71 | - if (! is_array($items)) { |
|
71 | + if (!is_array($items)) { |
|
72 | 72 | $items = func_get_args(); |
73 | 73 | } |
74 | 74 | |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | */ |
85 | 85 | public function addBody($items) |
86 | 86 | { |
87 | - if (! is_array($items)) { |
|
87 | + if (!is_array($items)) { |
|
88 | 88 | $items = func_get_args(); |
89 | 89 | } |
90 | 90 | |
@@ -104,7 +104,7 @@ discard block |
||
104 | 104 | */ |
105 | 105 | public function addFooter($items) |
106 | 106 | { |
107 | - if (! is_array($items)) { |
|
107 | + if (!is_array($items)) { |
|
108 | 108 | $items = func_get_args(); |
109 | 109 | } |
110 | 110 |
@@ -24,7 +24,7 @@ |
||
24 | 24 | */ |
25 | 25 | public function __construct(Closure $callback = null) |
26 | 26 | { |
27 | - if (! is_null($callback)) { |
|
27 | + if (!is_null($callback)) { |
|
28 | 28 | $this->setCallback($callback); |
29 | 29 | } |
30 | 30 |
@@ -86,7 +86,7 @@ |
||
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
89 | - * @return $this|Custom|mixed |
|
89 | + * @return string |
|
90 | 90 | */ |
91 | 91 | public function render() |
92 | 92 | { |