for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace GitScrum\Http\Controllers;
use Illuminate\Http\Request;
use GitScrum\Models\ConfigStatus;
class ConfigStatusController extends Controller
{
/**
* Update the specified resource in storage.
*
* @param \Illuminate\Http\Request $request
* @return \Illuminate\Http\Response
\Illuminate\Http\JsonResponse
This check compares the return type specified in the @return annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.
@return
*/
public function updatePosition(Request $request)
try {
$position = 1;
foreach ($request->columns as $id) {
$configStatus = ConfigStatus::find($id);
$configStatus->position = $position;
$configStatus->save();
++$position;
}
return response()->json([
'success' => true,
]);
} catch (\Exception $e) {
'success' => false,
This check compares the return type specified in the
@return
annotation of a function or method doc comment with the types returned by the function and raises an issue if they mismatch.