Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 4899ff7e9b955109cef39130340d787d9894c0d1 1 parent 43549e7
@realityking realityking authored
Showing with 11 additions and 15 deletions.
  1. +11 −0 build.xml
  2. +0 −15 libraries/legacy/web/web.php
View
11 build.xml
@@ -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>
View
15 libraries/legacy/web/web.php
@@ -22,21 +22,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.
- *
* @param mixed $input An optional argument to provide dependency injection for the application's
* input object. If the argument is a JInput object that object will become
* the application's input object, otherwise a default input object is created.
Please sign in to comment.
Something went wrong with that request. Please try again.