original_string: public function getInstallationStateAction()
      {
          $status = $this->get('tenside.status');
  
          return new JsonResponse(
              [
                  'state'  => [
                      'tenside_configured' => $status->isTensideConfigured(),
                      'project_created'    => $status->isProjectPresent(),
                      'project_installed'  => $status->isProjectInstalled(),
                  ],
                  'status' => 'OK'
              ]
          );
      }
code: public function getInstallationStateAction()
      {
          $status = $this->get('tenside.status');
  
          return new JsonResponse(
              [
                  'state'  => [
                      'tenside_configured' => $status->isTensideConfigured(),
                      'project_created'    => $status->isProjectPresent(),
                      'project_installed'  => $status->isProjectInstalled(),
                  ],
                  'status' => 'OK'
              ]
          );
      }
code_tokens: public function getInstallationStateAction ( ) { $ status = $ this -> get ( 'tenside.status' ) ; return new JsonResponse ( [ 'state' => [ 'tenside_configured' => $ status -> isTensideConfigured ( ) , 'project_created' => $ status -> isProjectPresent ( ) , 'project_installed' => $ status -> isProjectInstalled ( ) , ] , 'status' => 'OK' ] ) ; }
docstring: Check if installation is new, partial or complete.
  
  @return JsonResponse
  
  @ApiDoc(
  section="install",
  description="This method provides information about the installation.",
  statusCodes = {
  201 = "When everything worked out ok",
  406 = "When the installation is already complete"
  },
  )
  @ApiDescription(
  response={
  "state" = {
  "children" = {
  "tenside_configured" = {
  "dataType" = "bool",
  "description" = "Flag if tenside has been completely configured."
  },
  "project_created" = {
  "dataType" = "bool",
  "description" = "Flag determining if a composer.json is present."
  },
  "project_installed" = {
  "dataType" = "bool",
  "description" = "Flag determining if the composer project has been installed (vendor present)."
  }
  }
  },
  "status" = {
  "dataType" = "string",
  "description" = "Either OK or ERROR"
  },
  "message" = {
  "dataType" = "string",
  "description" = "The API error message if any (only present when status is ERROR)"
  }
  }
  )
docstring_tokens: Check if installation is new partial or complete .