This repository has been archived by the owner. It is now read-only.
Permalink
Browse files

Add a lint target to build.xml and fix an error found by it.

  • Loading branch information...
realityking committed Sep 2, 2012
1 parent 43549e7 commit 4899ff7e9b955109cef39130340d787d9894c0d1
Showing with 11 additions and 15 deletions.
  1. +11 −0 build.xml
  2. +0 −15 libraries/legacy/web/web.php
View
@@ -111,5 +111,16 @@
</exec>
</target>
+ <target name="lint" description="Perform syntax check of sourcecode files">
+ <apply executable="php" failonerror="true">
+ <arg value="-l" />
+
+ <fileset dir="${source}">
+ <include name="**/*.php" />
+ <modified />
+ </fileset>
+ </apply>
+ </target>
+
<target name="build" depends="clean,phpunit,phpunit-legacy,parallelTasks,phpcb" />
</project>
@@ -19,21 +19,6 @@
*/
class JWeb extends JApplicationWeb
{
- /**
- * Class constructor.
- *
- * @param mixed $userAgent The optional user-agent string to parse.
- * @param mixed $acceptEncoding The optional client accept encoding string to parse.
- * @param mixed $acceptLanguage The optional client accept language string to parse.
- *
- * @since 11.3
- */
- public function __construct($userAgent = null, $acceptEncoding = null, $acceptLanguage = null)
- {
- JLog::add('JWebClient is deprecated. Use JApplicationWebClient instead.', JLog::WARNING, 'deprecated');
- parent::__construct($userAgent, $acceptEncoding, $acceptLanguage);
- }
-
/**
* Class constructor.
*

0 comments on commit 4899ff7

Please sign in to comment.