@@ -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 |
@@ -1,32 +1,32 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2015-2016 Andreas Heigl<[email protected]> |
|
4 | - * |
|
5 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
6 | - * of this software and associated documentation files (the "Software"), to deal |
|
7 | - * in the Software without restriction, including without limitation the rights |
|
8 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 | - * copies of the Software, and to permit persons to whom the Software is |
|
10 | - * furnished to do so, subject to the following conditions: |
|
11 | - * |
|
12 | - * The above copyright notice and this permission notice shall be included in |
|
13 | - * all copies or substantial portions of the Software. |
|
14 | - * |
|
15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
18 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
20 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
21 | - * THE SOFTWARE. |
|
22 | - * |
|
23 | - * @author Andreas Heigl<[email protected]> |
|
24 | - * @copyright 2015-2016 Andreas Heigl/callingallpapers.com |
|
25 | - * @license http://www.opensource.org/licenses/mit-license.php MIT-License |
|
26 | - * @version 0.0 |
|
27 | - * @since 01.12.2015 |
|
28 | - * @link http://github.com/heiglandreas/callingallpapers-cli |
|
29 | - */ |
|
3 | + * Copyright (c) 2015-2016 Andreas Heigl<[email protected]> |
|
4 | + * |
|
5 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
6 | + * of this software and associated documentation files (the "Software"), to deal |
|
7 | + * in the Software without restriction, including without limitation the rights |
|
8 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 | + * copies of the Software, and to permit persons to whom the Software is |
|
10 | + * furnished to do so, subject to the following conditions: |
|
11 | + * |
|
12 | + * The above copyright notice and this permission notice shall be included in |
|
13 | + * all copies or substantial portions of the Software. |
|
14 | + * |
|
15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
18 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
20 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
21 | + * THE SOFTWARE. |
|
22 | + * |
|
23 | + * @author Andreas Heigl<[email protected]> |
|
24 | + * @copyright 2015-2016 Andreas Heigl/callingallpapers.com |
|
25 | + * @license http://www.opensource.org/licenses/mit-license.php MIT-License |
|
26 | + * @version 0.0 |
|
27 | + * @since 01.12.2015 |
|
28 | + * @link http://github.com/heiglandreas/callingallpapers-cli |
|
29 | + */ |
|
30 | 30 | namespace Callingallpapers\Parser; |
31 | 31 | |
32 | 32 | interface ParserInterface |
@@ -1,32 +1,32 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2015-2016 Andreas Heigl<[email protected]> |
|
4 | - * |
|
5 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
6 | - * of this software and associated documentation files (the "Software"), to deal |
|
7 | - * in the Software without restriction, including without limitation the rights |
|
8 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 | - * copies of the Software, and to permit persons to whom the Software is |
|
10 | - * furnished to do so, subject to the following conditions: |
|
11 | - * |
|
12 | - * The above copyright notice and this permission notice shall be included in |
|
13 | - * all copies or substantial portions of the Software. |
|
14 | - * |
|
15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
18 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
20 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
21 | - * THE SOFTWARE. |
|
22 | - * |
|
23 | - * @author Andreas Heigl<[email protected]> |
|
24 | - * @copyright 2015-2016 Andreas Heigl/callingallpapers.com |
|
25 | - * @license http://www.opensource.org/licenses/mit-license.php MIT-License |
|
26 | - * @version 0.0 |
|
27 | - * @since 01.12.2015 |
|
28 | - * @link http://github.com/heiglandreas/callingallpapers-cli |
|
29 | - */ |
|
3 | + * Copyright (c) 2015-2016 Andreas Heigl<[email protected]> |
|
4 | + * |
|
5 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
6 | + * of this software and associated documentation files (the "Software"), to deal |
|
7 | + * in the Software without restriction, including without limitation the rights |
|
8 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 | + * copies of the Software, and to permit persons to whom the Software is |
|
10 | + * furnished to do so, subject to the following conditions: |
|
11 | + * |
|
12 | + * The above copyright notice and this permission notice shall be included in |
|
13 | + * all copies or substantial portions of the Software. |
|
14 | + * |
|
15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
18 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
20 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
21 | + * THE SOFTWARE. |
|
22 | + * |
|
23 | + * @author Andreas Heigl<[email protected]> |
|
24 | + * @copyright 2015-2016 Andreas Heigl/callingallpapers.com |
|
25 | + * @license http://www.opensource.org/licenses/mit-license.php MIT-License |
|
26 | + * @version 0.0 |
|
27 | + * @since 01.12.2015 |
|
28 | + * @link http://github.com/heiglandreas/callingallpapers-cli |
|
29 | + */ |
|
30 | 30 | namespace Callingallpapers\Parser; |
31 | 31 | |
32 | 32 | interface ParserInterface |
@@ -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(); |
@@ -1,32 +1,32 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2015-2016 Andreas Heigl<[email protected]> |
|
4 | - * |
|
5 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
6 | - * of this software and associated documentation files (the "Software"), to deal |
|
7 | - * in the Software without restriction, including without limitation the rights |
|
8 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 | - * copies of the Software, and to permit persons to whom the Software is |
|
10 | - * furnished to do so, subject to the following conditions: |
|
11 | - * |
|
12 | - * The above copyright notice and this permission notice shall be included in |
|
13 | - * all copies or substantial portions of the Software. |
|
14 | - * |
|
15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
18 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
20 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
21 | - * THE SOFTWARE. |
|
22 | - * |
|
23 | - * @author Andreas Heigl<[email protected]> |
|
24 | - * @copyright 2015-2016 Andreas Heigl/callingallpapers.com |
|
25 | - * @license http://www.opensource.org/licenses/mit-license.php MIT-License |
|
26 | - * @version 0.0 |
|
27 | - * @since 01.12.2015 |
|
28 | - * @link http://github.com/heiglandreas/callingallpapers-cli |
|
29 | - */ |
|
3 | + * Copyright (c) 2015-2016 Andreas Heigl<[email protected]> |
|
4 | + * |
|
5 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
6 | + * of this software and associated documentation files (the "Software"), to deal |
|
7 | + * in the Software without restriction, including without limitation the rights |
|
8 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 | + * copies of the Software, and to permit persons to whom the Software is |
|
10 | + * furnished to do so, subject to the following conditions: |
|
11 | + * |
|
12 | + * The above copyright notice and this permission notice shall be included in |
|
13 | + * all copies or substantial portions of the Software. |
|
14 | + * |
|
15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
18 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
20 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
21 | + * THE SOFTWARE. |
|
22 | + * |
|
23 | + * @author Andreas Heigl<[email protected]> |
|
24 | + * @copyright 2015-2016 Andreas Heigl/callingallpapers.com |
|
25 | + * @license http://www.opensource.org/licenses/mit-license.php MIT-License |
|
26 | + * @version 0.0 |
|
27 | + * @since 01.12.2015 |
|
28 | + * @link http://github.com/heiglandreas/callingallpapers-cli |
|
29 | + */ |
|
30 | 30 | namespace Callingallpapers\Command; |
31 | 31 | |
32 | 32 | use Callingallpapers\Parser\JoindinCfpParser; |
@@ -42,11 +42,11 @@ discard block |
||
42 | 42 | protected function configure() |
43 | 43 | { |
44 | 44 | $this->setName("cfp:joindin") |
45 | - ->setDescription("Retrieve CfPs from joind.in") |
|
46 | - ->setDefinition(array( |
|
47 | - new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
48 | - )) |
|
49 | - ->setHelp(<<<EOT |
|
45 | + ->setDescription("Retrieve CfPs from joind.in") |
|
46 | + ->setDefinition(array( |
|
47 | + new InputOption('start', 's', InputOption::VALUE_OPTIONAL, 'What should be the first date to be taken into account?', ''), |
|
48 | + )) |
|
49 | + ->setHelp(<<<EOT |
|
50 | 50 | Get details about CfPs from joind.in |
51 | 51 | |
52 | 52 | Usage: |
@@ -56,7 +56,7 @@ discard block |
||
56 | 56 | If you ommit the date the current date will be used instead |
57 | 57 | <info>callingallpapers cfp:joindin<env></info> |
58 | 58 | EOT |
59 | - ); |
|
59 | + ); |
|
60 | 60 | } |
61 | 61 | |
62 | 62 | protected function execute(InputInterface $input, OutputInterface $output) |
@@ -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 |
@@ -1,32 +1,32 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Copyright (c) 2015-2016 Andreas Heigl<[email protected]> |
|
4 | - * |
|
5 | - * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
6 | - * of this software and associated documentation files (the "Software"), to deal |
|
7 | - * in the Software without restriction, including without limitation the rights |
|
8 | - * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 | - * copies of the Software, and to permit persons to whom the Software is |
|
10 | - * furnished to do so, subject to the following conditions: |
|
11 | - * |
|
12 | - * The above copyright notice and this permission notice shall be included in |
|
13 | - * all copies or substantial portions of the Software. |
|
14 | - * |
|
15 | - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
18 | - * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
20 | - * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
21 | - * THE SOFTWARE. |
|
22 | - * |
|
23 | - * @author Andreas Heigl<[email protected]> |
|
24 | - * @copyright 2015-2016 Andreas Heigl/callingallpapers.com |
|
25 | - * @license http://www.opensource.org/licenses/mit-license.php MIT-License |
|
26 | - * @version 0.0 |
|
27 | - * @since 01.12.2015 |
|
28 | - * @link http://github.com/heiglandreas/callingallpapers-cli |
|
29 | - */ |
|
3 | + * Copyright (c) 2015-2016 Andreas Heigl<[email protected]> |
|
4 | + * |
|
5 | + * Permission is hereby granted, free of charge, to any person obtaining a copy |
|
6 | + * of this software and associated documentation files (the "Software"), to deal |
|
7 | + * in the Software without restriction, including without limitation the rights |
|
8 | + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
|
9 | + * copies of the Software, and to permit persons to whom the Software is |
|
10 | + * furnished to do so, subject to the following conditions: |
|
11 | + * |
|
12 | + * The above copyright notice and this permission notice shall be included in |
|
13 | + * all copies or substantial portions of the Software. |
|
14 | + * |
|
15 | + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
|
16 | + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
|
17 | + * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
|
18 | + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
|
19 | + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
|
20 | + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN |
|
21 | + * THE SOFTWARE. |
|
22 | + * |
|
23 | + * @author Andreas Heigl<[email protected]> |
|
24 | + * @copyright 2015-2016 Andreas Heigl/callingallpapers.com |
|
25 | + * @license http://www.opensource.org/licenses/mit-license.php MIT-License |
|
26 | + * @version 0.0 |
|
27 | + * @since 01.12.2015 |
|
28 | + * @link http://github.com/heiglandreas/callingallpapers-cli |
|
29 | + */ |
|
30 | 30 | namespace Callingallpapers\Parser; |
31 | 31 | |
32 | 32 | interface ParserInterface |