Giter Site home page Giter Site logo

php52to53's People

Contributors

ephigenia avatar reneoelke avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

kwn

php52to53's Issues

Call-Time-Pass by Reference

Call time pass by reference meckert auch bei Zuweisungen mit Referenz. Tatsächlich ist aber nur das übergeben von Variablen an Funktionen per Referenz nicht mehr erlaubt.

$fixture =& new CakeTestFixture($this->db);

Code freigegeben?

Kann das Projekt 'öffentlich' gemacht werden?

Inklusive composer.json (siehe #6) könnte es gleich auf packagist.org registriert werden.

keyword "use"

Der Sniff für die Keywords die nicht mehr erlaubt sind prüft noch nicht ob bei dem gefundenen Stück Code eine Variable benutzt wird. In dem folgenden Fall ist use erlaubt:

function Services_JSON($use = 0)
    {
        $this->use = $use;
    }

keyword "namespace"

In dem folgenden Code ist namespace erlaubt.

class XmlNode extends Object {
/**
 * Name of node
 *
 * @var string
 * @access public
 */
    var $name = null;
/**
 * Node namespace
 *
 * @var string
 * @access public
 */
    var $namespace = null;

Dokumentation

Es fehlt jegliche Dokumentation, was abgedeckt wurde und was noch fehlt.

Wäre gut (idealerweise auch in Englisch) eine Liste zu haben.

Dient folgenden Zwecken:

  • UnitTests erstellen
  • Abdeckung gegen das Changelog testen
  • Leitfaden für Entwickler
  • Werbung für das Projekt (viel guter Text)

Konstanten E_DEPRECATED

Der Test für die Konstanten-Prüfung für z. Bsp. E_DEPRECATED prüft nicht auf eine definierung einer Konstanten sondern auf die Verwendung. E_DEPRECATED ist ja eine neue Konstante.

Cross-repo compatibility and sniff naming conventions

Sniffs are named inconsistently within foobugs-standards repositories and across them.
Especially Deprecated, Generic and PHP namespaces, which are not used for php52to53.

I would opt for them to be applied as unit tests are added to make the user experience consistent across the standards.
Furthermore it might help grouping sniffs of future standards.

I would recommend to replace some sniffs with proper extension of existing CodeSniffer sniffs like Generic.PHP.DeprecatedFunction (there are not that many, but there are not none).

Unit tests erstellen?

Lohnt es sich für das Projekt UnitTests zu erstellen?

Wenn Ihr eine Liste aller Sniffs (Blacklist) hättet, wäre es ziemlich übersichtlich. Ohne ist es etwas müßig, aber wohl lehrreich genug :-)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.