We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
| Conditions | 1 |
| Paths | 1 |
| Total Lines | 14 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 9 | public function withCheckUniqueString() |
||
| 10 | { |
||
| 11 | Route::get($this->name.'/ajax/checkUniqueString', [ |
||
|
|
|||
| 12 | 'as' => 'crud.'.$this->name.'.checkUniqueString', |
||
| 13 | 'uses' => $this->controller.'@checkUniqueString', |
||
| 14 | ]); |
||
| 15 | |||
| 16 | Route::post($this->name.'/ajax/checkUniqueString', [ |
||
| 17 | 'as' => 'crud.'.$this->name.'.checkUniqueString', |
||
| 18 | 'uses' => $this->controller.'@checkUniqueString', |
||
| 19 | ]); |
||
| 20 | |||
| 21 | return $this; |
||
| 22 | } |
||
| 23 | } |
||
| 24 |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: