@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
5 | -require $root . '/vendor/autoload.php'; |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | +require $root.'/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | use Route4Me\Route4Me; |
8 | 8 | use Route4Me\Route; |
@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | |
27 | 27 | $activities = new ActivityParameters(); |
28 | 28 | $actresults = $activities->getActivities($activityParameters); |
29 | -$results = $activities->getValue($actresults,"results"); |
|
29 | +$results = $activities->getValue($actresults, "results"); |
|
30 | 30 | |
31 | 31 | foreach ($results as $result) { |
32 | 32 | Route4Me::simplePrint($result); |
@@ -1,8 +1,8 @@ |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
5 | -require $root . '/vendor/autoload.php'; |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | +require $root.'/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | use Route4Me\Route4Me; |
8 | 8 | use Route4Me\Member; |
@@ -1,8 +1,8 @@ discard block |
||
1 | 1 | <?php |
2 | 2 | namespace Route4Me; |
3 | 3 | |
4 | -$root = realpath(dirname(__FILE__) . '/../../'); |
|
5 | -require $root . '/vendor/autoload.php'; |
|
4 | +$root = realpath(dirname(__FILE__).'/../../'); |
|
5 | +require $root.'/vendor/autoload.php'; |
|
6 | 6 | |
7 | 7 | use Route4Me\Route4Me; |
8 | 8 | use Route4Me\Route; |
@@ -20,11 +20,11 @@ discard block |
||
20 | 20 | |
21 | 21 | $abcResults = $abContacts->getAddressBookLocations($adressBookLocationParameters); |
22 | 22 | |
23 | -$results = $abContacts->getValue($abcResults,"results"); |
|
23 | +$results = $abContacts->getValue($abcResults, "results"); |
|
24 | 24 | |
25 | 25 | $contactsNumber = sizeof($results); |
26 | -$id1 = $results[rand(1, $contactsNumber)-1]['address_id']; |
|
27 | -$id2 = $results[rand(1, $contactsNumber)-1]['address_id']; |
|
26 | +$id1 = $results[rand(1, $contactsNumber) - 1]['address_id']; |
|
27 | +$id2 = $results[rand(1, $contactsNumber) - 1]['address_id']; |
|
28 | 28 | |
29 | 29 | $ids = array(); |
30 | 30 | $ids['address_id'] = $id1.",".$id2; |
@@ -34,7 +34,7 @@ discard block |
||
34 | 34 | |
35 | 35 | $abcResult = $ablocation->getAddressBookLocations($ids); |
36 | 36 | |
37 | -$results = $ablocation->getValue($abcResult,"results"); |
|
37 | +$results = $ablocation->getValue($abcResult, "results"); |
|
38 | 38 | |
39 | 39 | foreach ($results as $result) { |
40 | 40 | Route4Me::simplePrint($result); |