@@ -4,7 +4,6 @@ discard block |
||
| 4 | 4 | |
| 5 | 5 | use Symfony\Component\Form\FormFactoryInterface; |
| 6 | 6 | use Symfony\Component\HttpFoundation\Request; |
| 7 | -use Symfony\Component\HttpFoundation\Session\Session; |
|
| 8 | 7 | use Symfony\Component\OptionsResolver\Exception\InvalidOptionsException; |
| 9 | 8 | use Todo\Application\Task\Command; |
| 10 | 9 | use Todo\Application\Task\Exception\TaskCannotBeRemovedException; |
@@ -14,8 +13,6 @@ discard block |
||
| 14 | 13 | use Symfony\Bundle\FrameworkBundle\Controller\Controller; |
| 15 | 14 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route; |
| 16 | 15 | use Sensio\Bundle\FrameworkExtraBundle\Configuration\Method; |
| 17 | -use Todo\Domain\Exception\TaskNameIsAlreadyExistedException; |
|
| 18 | -use Todo\Domain\Exception\TaskNameIsEmptyException; |
|
| 19 | 16 | use Todo\Domain\Exception\TaskNotFoundException; |
| 20 | 17 | use Todo\Domain\Task; |
| 21 | 18 | use Web\FrontendBundle\Form\CreateTaskForm; |
@@ -223,7 +223,7 @@ discard block |
||
| 223 | 223 | * Adds a mandatory requirement in form of a php.ini configuration. |
| 224 | 224 | * |
| 225 | 225 | * @param string $cfgName The configuration name used for ini_get() |
| 226 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 226 | + * @param boolean|string $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 227 | 227 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 228 | 228 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 229 | 229 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | * Adds an optional recommendation in form of a php.ini configuration. |
| 242 | 242 | * |
| 243 | 243 | * @param string $cfgName The configuration name used for ini_get() |
| 244 | - * @param bool|callback $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 244 | + * @param string|false $evaluation Either a boolean indicating whether the configuration should evaluate to true or false, |
|
| 245 | 245 | * or a callback function receiving the configuration value as parameter to determine the fulfillment of the requirement |
| 246 | 246 | * @param bool $approveCfgAbsence If true the Requirement will be fulfilled even if the configuration option does not exist, i.e. ini_get() returns false. |
| 247 | 247 | * This is helpful for abandoned configs in later PHP versions or configs of an optional extension, like Suhosin. |
@@ -48,7 +48,7 @@ discard block |
||
| 48 | 48 | $return = []; |
| 49 | 49 | $results = DB::select('SELECT * FROM tasks'); |
| 50 | 50 | |
| 51 | - foreach($results as $taskObject) { |
|
| 51 | + foreach ($results as $taskObject) { |
|
| 52 | 52 | $return[] = $this->hydrateTask($taskObject); |
| 53 | 53 | } |
| 54 | 54 | |
@@ -77,7 +77,7 @@ discard block |
||
| 77 | 77 | $return = []; |
| 78 | 78 | $results = DB::table('tasks')->where('status', $status)->get(); |
| 79 | 79 | |
| 80 | - foreach($results as $taskObject) { |
|
| 80 | + foreach ($results as $taskObject) { |
|
| 81 | 81 | $return[] = $this->hydrateTask($taskObject); |
| 82 | 82 | } |
| 83 | 83 | |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Artisan::command('inspire', function () { |
|
| 16 | +Artisan::command('inspire', function() { |
|
| 17 | 17 | $this->comment(Inspiring::quote()); |
| 18 | 18 | })->describe('Display an inspiring quote'); |
@@ -13,6 +13,6 @@ |
||
| 13 | 13 | | |
| 14 | 14 | */ |
| 15 | 15 | |
| 16 | -Route::middleware('auth:api')->get('/user', function (Request $request) { |
|
| 16 | +Route::middleware('auth:api')->get('/user', function(Request $request) { |
|
| 17 | 17 | return $request->user(); |
| 18 | 18 | }); |
@@ -11,7 +11,7 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Route::get('/', function () { |
|
| 14 | +Route::get('/', function() { |
|
| 15 | 15 | return view('welcome'); |
| 16 | 16 | }); |
| 17 | 17 | |
@@ -11,6 +11,6 @@ |
||
| 11 | 11 | | |
| 12 | 12 | */ |
| 13 | 13 | |
| 14 | -Broadcast::channel('App.User.{id}', function ($user, $id) { |
|
| 14 | +Broadcast::channel('App.User.{id}', function($user, $id) { |
|
| 15 | 15 | return (int) $user->id === (int) $id; |
| 16 | 16 | }); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('users', function (Blueprint $table) { |
|
| 16 | + Schema::create('users', function(Blueprint $table) { |
|
| 17 | 17 | $table->increments('id'); |
| 18 | 18 | $table->string('name'); |
| 19 | 19 | $table->string('email')->unique(); |
@@ -13,7 +13,7 @@ |
||
| 13 | 13 | */ |
| 14 | 14 | public function up() |
| 15 | 15 | { |
| 16 | - Schema::create('password_resets', function (Blueprint $table) { |
|
| 16 | + Schema::create('password_resets', function(Blueprint $table) { |
|
| 17 | 17 | $table->string('email')->index(); |
| 18 | 18 | $table->string('token')->index(); |
| 19 | 19 | $table->timestamp('created_at')->nullable(); |