| @@ -33,7 +33,6 @@ | ||
| 33 | 33 | use Callingallpapers\Entity\CfpList; | 
| 34 | 34 | use GuzzleHttp\Client; | 
| 35 | 35 | use GuzzleHttp\Exception\BadResponseException; | 
| 36 | -use GuzzleHttp\Exception\ClientException; | |
| 37 | 36 | |
| 38 | 37 | class ApiCfpWriter | 
| 39 | 38 |  { | 
| @@ -90,7 +90,7 @@ discard block | ||
| 90 | 90 |              $select = $client->request('GET', sprintf( | 
| 91 | 91 | $this->baseUri . '/%1$s', | 
| 92 | 92 | sha1($cfp->conferenceUri) | 
| 93 | - ),[]); | |
| 93 | + ), []); | |
| 94 | 94 | $exists = true; | 
| 95 | 95 |          } catch (BadResponseException $e) { | 
| 96 | 96 | $exists = false; | 
| @@ -121,9 +121,9 @@ discard block | ||
| 121 | 121 | ]); | 
| 122 | 122 | |
| 123 | 123 | } | 
| 124 | -        } catch(BadResponseException $e) { | |
| 124 | +        } catch (BadResponseException $e) { | |
| 125 | 125 | return $e->getMessage(); | 
| 126 | -        } catch(\Exception $e) { | |
| 126 | +        } catch (\Exception $e) { | |
| 127 | 127 | return $e->getMessage(); | 
| 128 | 128 | } | 
| 129 | 129 | |
| @@ -47,8 +47,8 @@ | ||
| 47 | 47 | |
| 48 | 48 | $contents = new CfpList(); | 
| 49 | 49 | |
| 50 | -        foreach($content['events'] as $event) { | |
| 51 | -            if (! $event['cfp_url']) { | |
| 50 | +        foreach ($content['events'] as $event) { | |
| 51 | +            if (!$event['cfp_url']) { | |
| 52 | 52 | continue; | 
| 53 | 53 | } | 
| 54 | 54 | $info = new Cfp(); | 
| @@ -67,7 +67,7 @@ | ||
| 67 | 67 | |
| 68 | 68 |          $start = new \DateTime($input->getOption('start')); | 
| 69 | 69 | |
| 70 | -        if (! $start instanceof \DateTime) { | |
| 70 | +        if (!$start instanceof \DateTime) { | |
| 71 | 71 |              throw new \InvalidArgumentException('The given date could not be parsed'); | 
| 72 | 72 | } | 
| 73 | 73 | |