We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -35,6 +35,9 @@ |
||
| 35 | 35 | return ! $this->tabsEnabled(); |
| 36 | 36 | } |
| 37 | 37 | |
| 38 | + /** |
|
| 39 | + * @param string $type |
|
| 40 | + */ |
|
| 38 | 41 | public function setTabsType($type) |
| 39 | 42 | { |
| 40 | 43 | $this->enableTabs(); |
@@ -69,7 +69,7 @@ |
||
| 69 | 69 | * |
| 70 | 70 | * @param array $columns - the database columns that contain the JSONs |
| 71 | 71 | * |
| 72 | - * @return Model |
|
| 72 | + * @return CrudTrait |
|
| 73 | 73 | */ |
| 74 | 74 | public function withFakes($columns = []) |
| 75 | 75 | { |
@@ -5,7 +5,7 @@ discard block |
||
| 5 | 5 | * Appends the configured backpack prefix and returns |
| 6 | 6 | * the URL using the standard Laravel helpers. |
| 7 | 7 | * |
| 8 | - * @param $path |
|
| 8 | + * @param string $path |
|
| 9 | 9 | * |
| 10 | 10 | * @return string |
| 11 | 11 | */ |
@@ -156,6 +156,7 @@ discard block |
||
| 156 | 156 | * If that view doesn't exist, it will load the one from the original theme. |
| 157 | 157 | * |
| 158 | 158 | * @param string (see config/backpack/base.php) |
| 159 | + * @param string $view |
|
| 159 | 160 | * |
| 160 | 161 | * @return string |
| 161 | 162 | */ |
@@ -33,7 +33,7 @@ discard block |
||
| 33 | 33 | /** |
| 34 | 34 | * Execute the console command. |
| 35 | 35 | * |
| 36 | - * @return bool|null |
|
| 36 | + * @return false|null |
|
| 37 | 37 | */ |
| 38 | 38 | public function handle() |
| 39 | 39 | { |
@@ -71,9 +71,8 @@ discard block |
||
| 71 | 71 | * Replace the User model, if it was moved to App\Models\User. |
| 72 | 72 | * |
| 73 | 73 | * @param string $stub |
| 74 | - * @param string $name |
|
| 75 | 74 | * |
| 76 | - * @return $this |
|
| 75 | + * @return string |
|
| 77 | 76 | */ |
| 78 | 77 | protected function makeReplacements(&$stub) |
| 79 | 78 | { |
@@ -175,6 +175,7 @@ |
||
| 175 | 175 | |
| 176 | 176 | /** |
| 177 | 177 | * Set the number of rows that should be show on the list view. |
| 178 | + * @param integer $value |
|
| 178 | 179 | */ |
| 179 | 180 | public function setDefaultPageLength($value) |
| 180 | 181 | { |
@@ -301,6 +301,9 @@ discard block |
||
| 301 | 301 | return $this->getShowView(); |
| 302 | 302 | } |
| 303 | 303 | |
| 304 | + /** |
|
| 305 | + * @param string $view |
|
| 306 | + */ |
|
| 304 | 307 | public function setPreviewView($view) |
| 305 | 308 | { |
| 306 | 309 | return $this->setShowView($view); |
@@ -311,6 +314,9 @@ discard block |
||
| 311 | 314 | return $this->getEditView(); |
| 312 | 315 | } |
| 313 | 316 | |
| 317 | + /** |
|
| 318 | + * @param string $view |
|
| 319 | + */ |
|
| 314 | 320 | public function setUpdateView($view) |
| 315 | 321 | { |
| 316 | 322 | return $this->setEditView($view); |
@@ -9,7 +9,6 @@ |
||
| 9 | 9 | /** |
| 10 | 10 | * Define which routes are needed for this operation. |
| 11 | 11 | * |
| 12 | - * @param string $name Name of the current entity (singular). Used as first URL segment. |
|
| 13 | 12 | * @param string $routeName Prefix of the route name. |
| 14 | 13 | * @param string $controller Name of the current CrudController. |
| 15 | 14 | */ |
@@ -62,6 +62,9 @@ discard block |
||
| 62 | 62 | $this->addButton($stack, $name, 'model_function', $model_function_name, $position); |
| 63 | 63 | } |
| 64 | 64 | |
| 65 | + /** |
|
| 66 | + * @param string $view |
|
| 67 | + */ |
|
| 65 | 68 | public function addButtonFromView($stack, $name, $view, $position = false) |
| 66 | 69 | { |
| 67 | 70 | $view = 'crud::buttons.'.$view; |
@@ -119,7 +122,7 @@ discard block |
||
| 119 | 122 | } |
| 120 | 123 | |
| 121 | 124 | /** |
| 122 | - * @param array $names Button names |
|
| 125 | + * @param string[] $names Button names |
|
| 123 | 126 | * @param string|null $stack Optional stack name. |
| 124 | 127 | */ |
| 125 | 128 | public function removeButtons($names, $stack = null) |
@@ -136,6 +139,9 @@ discard block |
||
| 136 | 139 | $this->setOperationSetting('buttons', collect()); |
| 137 | 140 | } |
| 138 | 141 | |
| 142 | + /** |
|
| 143 | + * @param string $stack |
|
| 144 | + */ |
|
| 139 | 145 | public function removeAllButtonsFromStack($stack) |
| 140 | 146 | { |
| 141 | 147 | $this->setOperationSetting('buttons', $this->buttons()->reject(function ($button) use ($stack) { |
@@ -158,6 +164,12 @@ discard block |
||
| 158 | 164 | public $type = 'view'; |
| 159 | 165 | public $content; |
| 160 | 166 | |
| 167 | + /** |
|
| 168 | + * @param string $stack |
|
| 169 | + * @param string $name |
|
| 170 | + * @param string $type |
|
| 171 | + * @param string $content |
|
| 172 | + */ |
|
| 161 | 173 | public function __construct($stack, $name, $type, $content) |
| 162 | 174 | { |
| 163 | 175 | $this->stack = $stack; |
@@ -19,7 +19,7 @@ |
||
| 19 | 19 | * |
| 20 | 20 | * TODO: should this delete items with relations to it too? |
| 21 | 21 | * |
| 22 | - * @return bool True if the item was deleted. |
|
| 22 | + * @return string True if the item was deleted. |
|
| 23 | 23 | */ |
| 24 | 24 | public function delete($id) |
| 25 | 25 | { |