Completed
Push — master ( 4bb50d...d21b1b )
by Daniele
02:36
created
src/Betfair/BettingApi/MarketBook/MarketBook.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -96,6 +96,9 @@
 block discarded – undo
96 96
         );
97 97
     }
98 98
 
99
+    /**
100
+     * @param double[] $marketIds
101
+     */
99 102
     public function withMarketIds($marketIds)
100 103
     {
101 104
         $this->marketIds = $marketIds;
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the Betfair library.
4
- *
5
- * (c) Daniele D'Angeli <[email protected]>
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * This file is part of the Betfair library.
4
+     *
5
+     * (c) Daniele D'Angeli <[email protected]>
6
+     *
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 namespace Betfair;
11 11
 
12 12
 use Betfair\Adapter\AdapterInterface;
Please login to merge, or discard this patch.
src/Betfair/Adapter/ArrayRpcAdapter.php 2 patches
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the Betfair library.
4
- *
5
- * (c) Daniele D'Angeli <[email protected]>
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * This file is part of the Betfair library.
4
+     *
5
+     * (c) Daniele D'Angeli <[email protected]>
6
+     *
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 namespace Betfair\Adapter;
11 11
 
12 12
 class ArrayRpcAdapter implements AdapterInterface
@@ -16,11 +16,11 @@  discard block
 block discarded – undo
16 16
         $data = json_decode($response, true);
17 17
         
18 18
         if (isset($data['result'])){
19
-        	return $data['result'];
19
+            return $data['result'];
20 20
         }
21 21
         
22 22
         if (isset($data['error'])){
23
-        	return $data['error'];
23
+            return $data['error'];
24 24
         }
25 25
     }
26 26
 }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,11 +15,11 @@
 block discarded – undo
15 15
     {
16 16
         $data = json_decode($response, true);
17 17
         
18
-        if (isset($data['result'])){
18
+        if (isset($data['result'])) {
19 19
         	return $data['result'];
20 20
         }
21 21
         
22
-        if (isset($data['error'])){
22
+        if (isset($data['error'])) {
23 23
         	return $data['error'];
24 24
         }
25 25
     }
Please login to merge, or discard this patch.
src/Betfair/Model/MatchProjection.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,10 +1,10 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Created by PhpStorm.
4
- * User: danieledangeli
5
- * Date: 15/02/15
6
- * Time: 20:46
7
- */
3
+     * Created by PhpStorm.
4
+     * User: danieledangeli
5
+     * Date: 15/02/15
6
+     * Time: 20:46
7
+     */
8 8
 
9 9
 namespace Betfair\Model;
10 10
 
Please login to merge, or discard this patch.
src/Betfair/Model/ArrayableInterface.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -5,5 +5,5 @@
 block discarded – undo
5 5
 
6 6
 interface ArrayableInterface
7 7
 {
8
-    public static function toArray() ;
8
+    public static function toArray();
9 9
 } 
10 10
\ No newline at end of file
Please login to merge, or discard this patch.
src/Betfair/Model/MarketProjection.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,8 +16,8 @@
 block discarded – undo
16 16
     const EVENT_TYPE = "EVENT_TYPE"; //If not selected then the eventType will not be returned with marketCatalogue
17 17
     const MARKET_START_TIME = "MARKET_START_TIME"; //If not selected then the start time will not be returned with marketCatalogue
18 18
     const MARKET_DESCRIPTION = "MARKET_DESCRIPTION"; //If not selected then the description will not be returned with marketCatalogue
19
-    const RUNNER_DESCRIPTION = "RUNNER_DESCRIPTION";// not selected then the runners will not be returned with marketCatalogue
20
-    const RUNNER_METADATA = "RUNNER_METADATA";//If not selected then the runner metadata will not be returned with marketCatalogue. If selected then RUNNER_DESCRIPTION will also be returned regardless of whether it is included as a market projection.
19
+    const RUNNER_DESCRIPTION = "RUNNER_DESCRIPTION"; // not selected then the runners will not be returned with marketCatalogue
20
+    const RUNNER_METADATA = "RUNNER_METADATA"; //If not selected then the runner metadata will not be returned with marketCatalogue. If selected then RUNNER_DESCRIPTION will also be returned regardless of whether it is included as a market projection.
21 21
 
22 22
     public static function getAll()
23 23
     {
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the Betfair library.
4
- *
5
- * (c) Daniele D'Angeli <[email protected]>
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * This file is part of the Betfair library.
4
+     *
5
+     * (c) Daniele D'Angeli <[email protected]>
6
+     *
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 namespace Betfair;
11 11
 
12 12
 use Betfair\Adapter\AdapterInterface;
Please login to merge, or discard this patch.
src/Betfair/Model/PlaceOrders/PlaceInstruction.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
     private function validateOrderTypeOrThrowException($orderType)
52 52
     {
53
-        if(!in_array($orderType, OrderType::toArray())) {
53
+        if (!in_array($orderType, OrderType::toArray())) {
54 54
             throw new ModelException(
55 55
                 sprintf(
56 56
                     "Invalid Order Type %s. Valid ones are %s",
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
     }
63 63
     private function validateSideOrThrowException($side)
64 64
     {
65
-        if(!in_array($side, Side::toArray())) {
65
+        if (!in_array($side, Side::toArray())) {
66 66
             throw new ModelException(
67 67
                 sprintf(
68 68
                     "Invalid Side %s. Valid ones are %s",
Please login to merge, or discard this patch.
src/Betfair/Model/PlaceOrders/LimitOrder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     private function setValidPersistenceType($persistenceType)
34 34
     {
35
-        if(!in_array($persistenceType, PersistenceType::toArray())) {
35
+        if (!in_array($persistenceType, PersistenceType::toArray())) {
36 36
             throw new ModelException(
37 37
                 sprintf("Not valid persistence type %s. Valid ones are %s",
38 38
                     $persistenceType,
Please login to merge, or discard this patch.
src/Betfair/Model/MarketBettingType.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -12,11 +12,11 @@
 block discarded – undo
12 12
 abstract class MarketBettingType
13 13
 {
14 14
 
15
-    const ODDS                       = "ODDS";  //Odds Market
16
-    const LINE                       = "LINE";  //Line Market
15
+    const ODDS                       = "ODDS"; //Odds Market
16
+    const LINE                       = "LINE"; //Line Market
17 17
     const RANGE                      = "RANGE"; //Range Market
18
-    const ASIAN_HANDICAP_DOUBLE_LINE = "ASIAN_HANDICAP_DOUBLE_LINE";    //Asian Handicap Market
19
-    const ASIAN_HANDICAP_SINGLE_LINE = "ASIAN_HANDICAP_SINGLE_LINE";    //Asian Single Line Market
18
+    const ASIAN_HANDICAP_DOUBLE_LINE = "ASIAN_HANDICAP_DOUBLE_LINE"; //Asian Handicap Market
19
+    const ASIAN_HANDICAP_SINGLE_LINE = "ASIAN_HANDICAP_SINGLE_LINE"; //Asian Single Line Market
20 20
     const FIXED_ODDS                 = "FIXED_ODDS";
21 21
     /**
22 22
      * Sportsbook Odds Market.
Please login to merge, or discard this patch.
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -1,12 +1,12 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * This file is part of the Betfair library.
4
- *
5
- * (c) Daniele D'Angeli <[email protected]>
6
- *
7
- * For the full copyright and license information, please view the LICENSE
8
- * file that was distributed with this source code.
9
- */
3
+     * This file is part of the Betfair library.
4
+     *
5
+     * (c) Daniele D'Angeli <[email protected]>
6
+     *
7
+     * For the full copyright and license information, please view the LICENSE
8
+     * file that was distributed with this source code.
9
+     */
10 10
 namespace Betfair;
11 11
 
12 12
 use Betfair\Adapter\AdapterInterface;
Please login to merge, or discard this patch.
src/Betfair/Client/BetfairGuzzleClientFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
     {
18 18
         $this->specificationDir = $specificationDir !== null
19 19
             ? $specificationDir
20
-            :__DIR__."/../Resources/specification";
20
+            :__DIR__ . "/../Resources/specification";
21 21
     }
22 22
 
23 23
     public function createBetfairGuzzleClient($options = array())
Please login to merge, or discard this patch.