Completed
Branch master (069a06)
by Marc
15:41
created
src/Strategy/StrategyInterface.php 2 patches
Doc Comments   +12 added lines patch added patch discarded remove patch
@@ -15,11 +15,23 @@
 block discarded – undo
15 15
 {
16 16
     const STABILITY_STABLE = 1;
17 17
 
18
+    /**
19
+     * @return string
20
+     */
18 21
     public function getLatestVersion();
19 22
 
23
+    /**
24
+     * @return string
25
+     */
20 26
     public function downloadLatestVersion();
21 27
 
28
+    /**
29
+     * @return void
30
+     */
22 31
     public function setStability($stability);
23 32
 
33
+    /**
34
+     * @return void
35
+     */
24 36
     public function setPharFile($pharFileName);
25 37
 }
26 38
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package: marx/php-self-updater
4
- *
5
- * @author:  msiebeneicher
6
- * @since:   2015-12-27
7
- *
8
- */
3
+     * @package: marx/php-self-updater
4
+     *
5
+     * @author:  msiebeneicher
6
+     * @since:   2015-12-27
7
+     *
8
+     */
9 9
 
10 10
 
11 11
 namespace PSU\Strategy;
Please login to merge, or discard this patch.
src/HttpClient/Adapter/GuzzlApapter.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package: marx/php-self-updater
4
- *
5
- * @author:  msiebeneicher
6
- * @since:   2015-12-27
7
- *
8
- */
3
+     * @package: marx/php-self-updater
4
+     *
5
+     * @author:  msiebeneicher
6
+     * @since:   2015-12-27
7
+     *
8
+     */
9 9
 
10 10
 namespace PSU\HttpClient\Adapter;
11 11
 
Please login to merge, or discard this patch.
src/HttpClient/HttpClientInterface.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package: marx/php-self-updater
4
- *
5
- * @author:  msiebeneicher
6
- * @since:   2015-12-27
7
- *
8
- */
3
+     * @package: marx/php-self-updater
4
+     *
5
+     * @author:  msiebeneicher
6
+     * @since:   2015-12-27
7
+     *
8
+     */
9 9
 
10 10
 
11 11
 namespace PSU\HttpClient;
Please login to merge, or discard this patch.
src/HttpClient/HttpClientFactory.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package: marx/php-self-updater
4
- *
5
- * @author:  msiebeneicher
6
- * @since:   2015-12-27
7
- *
8
- */
3
+     * @package: marx/php-self-updater
4
+     *
5
+     * @author:  msiebeneicher
6
+     * @since:   2015-12-27
7
+     *
8
+     */
9 9
 
10 10
 
11 11
 namespace PSU\HttpClient;
Please login to merge, or discard this patch.
src/Strategy/GithubStrategy.php 2 patches
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package: marx/php-self-updater
4
- *
5
- * @author:  msiebeneicher
6
- * @since:   2015-12-27
7
- *
8
- */
3
+     * @package: marx/php-self-updater
4
+     *
5
+     * @author:  msiebeneicher
6
+     * @since:   2015-12-27
7
+     *
8
+     */
9 9
 
10 10
 namespace PSU\Strategy;
11 11
 
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -175,10 +175,12 @@
 block discarded – undo
175 175
 
176 176
         foreach ($jsonResponse['assets'] as $asset)
177 177
         {
178
-            if ($asset['name'] == $this->pharFile) //todo: add correct filter
178
+            if ($asset['name'] == $this->pharFile) {
179
+                //todo: add correct filter
179 180
             {
180 181
                 return $asset['browser_download_url'];
181 182
             }
183
+            }
182 184
         }
183 185
 
184 186
         return '';
Please login to merge, or discard this patch.
src/Updater.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -1,11 +1,11 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @package: marx/php-self-updater
4
- *
5
- * @author:  msiebeneicher
6
- * @since:   2015-12-27
7
- *
8
- */
3
+     * @package: marx/php-self-updater
4
+     *
5
+     * @author:  msiebeneicher
6
+     * @since:   2015-12-27
7
+     *
8
+     */
9 9
 
10 10
 namespace PSU;
11 11
 
Please login to merge, or discard this patch.