We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -15,7 +15,7 @@ |
||
15 | 15 | * |
16 | 16 | * @param int $id The id of the item to be deleted. |
17 | 17 | * |
18 | - * @return bool True if the item was deleted. |
|
18 | + * @return string True if the item was deleted. |
|
19 | 19 | * |
20 | 20 | * @throws \Illuminate\Database\Eloquent\ModelNotFoundException if the model was not found. |
21 | 21 | * |
@@ -66,20 +66,20 @@ |
||
66 | 66 | |
67 | 67 | // if a closure was passed as "filter_logic" |
68 | 68 | if ($this->doingListOperation()) { |
69 | - if ( $this->request->has( $options['name'] ) ) { |
|
70 | - if ( is_callable( $filter_logic ) ) { |
|
71 | - // apply it |
|
72 | - $filter_logic( $this->request->input( $options['name'] ) ); |
|
73 | - } else { |
|
74 | - $this->addDefaultFilterLogic( $filter->name, $filter_logic ); |
|
75 | - } |
|
76 | - } else { |
|
77 | - //if the filter is not active, but fallback logic was supplied |
|
78 | - if ( is_callable( $fallback_logic ) ) { |
|
79 | - // apply the fallback logic |
|
80 | - $fallback_logic(); |
|
81 | - } |
|
82 | - } |
|
69 | + if ( $this->request->has( $options['name'] ) ) { |
|
70 | + if ( is_callable( $filter_logic ) ) { |
|
71 | + // apply it |
|
72 | + $filter_logic( $this->request->input( $options['name'] ) ); |
|
73 | + } else { |
|
74 | + $this->addDefaultFilterLogic( $filter->name, $filter_logic ); |
|
75 | + } |
|
76 | + } else { |
|
77 | + //if the filter is not active, but fallback logic was supplied |
|
78 | + if ( is_callable( $fallback_logic ) ) { |
|
79 | + // apply the fallback logic |
|
80 | + $fallback_logic(); |
|
81 | + } |
|
82 | + } |
|
83 | 83 | } |
84 | 84 | } |
85 | 85 |