Skip to content

Commit

Permalink
Merge pull request #22528 from eileenmcnaughton/phpcs3
Browse files Browse the repository at this point in the history
Run 'full drupal strictness' standard over api/v3/examples
  • Loading branch information
seamuslee001 authored Jan 16, 2022
2 parents 5519b41 + 85651a6 commit 19a9392
Show file tree
Hide file tree
Showing 305 changed files with 7,854 additions and 6,330 deletions.
47 changes: 26 additions & 21 deletions api/v3/examples/Activity/ContactRefCustomField.ex.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php

/**
* @file
*/

/**
* Test Generated example demonstrating the Activity.create API.
*
Expand All @@ -21,7 +26,7 @@ function activity_create_example() {
'custom_2' => '1',
];

try{
try {
$result = civicrm_api3('Activity', 'create', $params);
}
catch (CiviCRM_API3_Exception $e) {
Expand Down Expand Up @@ -88,23 +93,23 @@ function activity_create_expectedresult() {
}

/*
* This example has been generated from the API test suite.
* The test that created it is called "testActivityCreateCustomContactRefField"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
* This example has been generated from the API test suite.
* The test that created it is called "testActivityCreateCustomContactRefField"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
49 changes: 27 additions & 22 deletions api/v3/examples/Activity/ContactRefCustomFieldGet.ex.php
Original file line number Diff line number Diff line change
@@ -1,8 +1,13 @@
<?php

/**
* @file
*/

/**
* Test Generated example demonstrating the Activity.get API.
*
* Get with Contact Ref Custom Field
* Get with Contact Ref Custom Field.
*
* @return array
* API result array
Expand All @@ -13,7 +18,7 @@ function activity_get_example() {
'id' => 1,
];

try{
try {
$result = civicrm_api3('Activity', 'get', $params);
}
catch (CiviCRM_API3_Exception $e) {
Expand Down Expand Up @@ -76,23 +81,23 @@ function activity_get_expectedresult() {
}

/*
* This example has been generated from the API test suite.
* The test that created it is called "testActivityCreateCustomContactRefField"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
* This example has been generated from the API test suite.
* The test that created it is called "testActivityCreateCustomContactRefField"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
47 changes: 26 additions & 21 deletions api/v3/examples/Activity/Create.ex.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php

/**
* @file
*/

/**
* Test Generated example demonstrating the Activity.create API.
*
Expand All @@ -19,7 +24,7 @@ function activity_create_example() {
'custom_1' => 'custom string',
];

try{
try {
$result = civicrm_api3('Activity', 'create', $params);
}
catch (CiviCRM_API3_Exception $e) {
Expand Down Expand Up @@ -86,23 +91,23 @@ function activity_create_expectedresult() {
}

/*
* This example has been generated from the API test suite.
* The test that created it is called "testActivityCreateCustomSubType"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
* This example has been generated from the API test suite.
* The test that created it is called "testActivityCreateCustomSubType"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
47 changes: 26 additions & 21 deletions api/v3/examples/Activity/DateTimeHigh.ex.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php

/**
* @file
*/

/**
* Test Generated example demonstrating the Activity.get API.
*
Expand All @@ -14,7 +19,7 @@ function activity_get_example() {
'sequential' => 1,
];

try{
try {
$result = civicrm_api3('Activity', 'get', $params);
}
catch (CiviCRM_API3_Exception $e) {
Expand Down Expand Up @@ -71,23 +76,23 @@ function activity_get_expectedresult() {
}

/*
* This example has been generated from the API test suite.
* The test that created it is called "testGetFilterMaxDate"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
* This example has been generated from the API test suite.
* The test that created it is called "testGetFilterMaxDate"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
47 changes: 26 additions & 21 deletions api/v3/examples/Activity/DateTimeLow.ex.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php

/**
* @file
*/

/**
* Test Generated example demonstrating the Activity.get API.
*
Expand All @@ -13,7 +18,7 @@ function activity_get_example() {
'sequential' => 1,
];

try{
try {
$result = civicrm_api3('Activity', 'get', $params);
}
catch (CiviCRM_API3_Exception $e) {
Expand Down Expand Up @@ -70,23 +75,23 @@ function activity_get_expectedresult() {
}

/*
* This example has been generated from the API test suite.
* The test that created it is called "testGetFilterMaxDate"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
* This example has been generated from the API test suite.
* The test that created it is called "testGetFilterMaxDate"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
47 changes: 26 additions & 21 deletions api/v3/examples/Activity/Delete.ex.php
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
<?php

/**
* @file
*/

/**
* Test Generated example demonstrating the Activity.delete API.
*
Expand All @@ -10,7 +15,7 @@ function activity_delete_example() {
'id' => 1,
];

try{
try {
$result = civicrm_api3('Activity', 'delete', $params);
}
catch (CiviCRM_API3_Exception $e) {
Expand Down Expand Up @@ -48,23 +53,23 @@ function activity_delete_expectedresult() {
}

/*
* This example has been generated from the API test suite.
* The test that created it is called "testDeleteActivity"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
* This example has been generated from the API test suite.
* The test that created it is called "testDeleteActivity"
* and can be found at:
* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ActivityTest.php
*
* You can see the outcome of the API tests at
* https://test.civicrm.org/job/CiviCRM-master-git/
*
* To Learn about the API read
* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
*
* Browse the api on your own site with the api explorer
* http://MYSITE.ORG/path/to/civicrm/api
*
* Read more about testing here
* http://wiki.civicrm.org/confluence/display/CRM/Testing
*
* API Standards documentation:
* http://wiki.civicrm.org/confluence/display/CRM/API+Architecture+Standards
*/
Loading

0 comments on commit 19a9392

Please sign in to comment.