Skip to content
This repository was archived by the owner on Sep 10, 2021. It is now read-only.

Commit 2f5301b

Browse files
author
Jamie Snape
committed
Add missing license headers
1 parent 785e63d commit 2f5301b

File tree

4 files changed

+57
-72
lines changed

4 files changed

+57
-72
lines changed

tests/library/CMakeLists.txt

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,27 @@
1+
#=============================================================================
2+
# MIDAS Server
3+
# Copyright (c) Kitware SAS. 26 rue Louis Guérin. 69100 Villeurbanne, FRANCE
4+
# All rights reserved.
5+
# More information http://www.kitware.com
6+
#
7+
# Licensed under the Apache License, Version 2.0 (the "License");
8+
# you may not use this file except in compliance with the License.
9+
# You may obtain a copy of the License at
10+
#
11+
# http://www.apache.org/licenses/LICENSE-2.0.txt
12+
#
13+
# Unless required by applicable law or agreed to in writing, software
14+
# distributed under the License is distributed on an "AS IS" BASIS,
15+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16+
# See the License for the specific language governing permissions and
17+
# limitations under the License.
18+
#=============================================================================
19+
120
if(NOT WIN32)
221
# This test is not designed to work on windows for some reason
322
add_midas_test( KWUtils KWUtilsTest.php )
423
endif()
524

625
# Style
726
add_midas_style_test( StyleKWUtils ${CMAKE_SOURCE_DIR}/library/KWUtils.php )
8-
add_midas_style_test( StyleKWUtilsTest ${CMAKE_SOURCE_DIR}/tests/library/KWUtilsTest.php )
27+
add_midas_style_test( StyleKWUtilsTest ${CMAKE_SOURCE_DIR}/tests/library/KWUtilsTest.php )

tests/library/KWUtilsTest.php

Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
11
<?php
22
/*=========================================================================
3-
MIDAS Server
4-
Copyright (c) Kitware SAS. 20 rue de la Villette. All rights reserved.
5-
69328 Lyon, FRANCE.
6-
7-
See Copyright.txt for details.
8-
This software is distributed WITHOUT ANY WARRANTY; without even
9-
the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10-
PURPOSE. See the above copyright notices for more information.
3+
MIDAS Server
4+
Copyright (c) Kitware SAS. 26 rue Louis Guérin. 69100 Villeurbanne, FRANCE
5+
All rights reserved.
6+
More information http://www.kitware.com
7+
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0.txt
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
1119
=========================================================================*/
1220

1321
require_once BASE_PATH.'/library/KWUtils.php';
1422
require_once BASE_PATH.'/core/controllers/components/UtilityComponent.php';
15-
/**
16-
* KWUtils tests
17-
*/
18-
1923

24+
/** KWUtils tests */
2025
class KWUtilsTest extends ControllerTestCase
2126
{
22-
2327
/** tests mkDir function */
2428
public function testMkDir()
2529
{
@@ -226,5 +230,4 @@ public function testRecursiveRemoveDirectory()
226230
KWUtils::recursiveRemoveDirectory($testParentDir);
227231
$this->assertFalse(file_exists($testParentDir));
228232
}
229-
230233
}

tests/library/MIDASStyleChecker.php

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,23 @@
11
<?php
2+
/*=========================================================================
3+
MIDAS Server
4+
Copyright (c) Kitware SAS. 26 rue Louis Guérin. 69100 Villeurbanne, FRANCE
5+
All rights reserved.
6+
More information http://www.kitware.com
7+
8+
Licensed under the Apache License, Version 2.0 (the "License");
9+
you may not use this file except in compliance with the License.
10+
You may obtain a copy of the License at
11+
12+
http://www.apache.org/licenses/LICENSE-2.0.txt
13+
14+
Unless required by applicable law or agreed to in writing, software
15+
distributed under the License is distributed on an "AS IS" BASIS,
16+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
17+
See the License for the specific language governing permissions and
18+
limitations under the License.
19+
=========================================================================*/
20+
221
$src = false;
322

423
for($i = 1; $i < $_SERVER['argc']; $i++)
@@ -40,7 +59,7 @@
4059
}
4160

4261
function _getMatchingFilesRecursive($src, $dir = '')
43-
{
62+
{
4463
$files = array();
4564
if(!is_dir($src))
4665
{

tests/library/PHP/Token/Exception.php

Lines changed: 0 additions & 56 deletions
This file was deleted.

0 commit comments

Comments
 (0)