Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Insight] Missing use statement should be avoided - in src/…/implementations/view-factory.php, line 82 #47

Closed
rraub opened this issue Nov 24, 2015 · 1 comment

Comments

@rraub
Copy link
Contributor

rraub commented Nov 24, 2015

in src/factories/implementations/view-factory.php, line 82

The Viewable_Model class resolves to the Nectary\Factories\Viewable_Model class which PHP does not seem to be able to autoload.

   */
  public function add_data( $data ) {
    if ( is_array( $data ) ) {
      foreach ( $data as $key => $value ) {
        $data_to_add = null;
        if ( $value instanceof Viewable_Model ) {
          $data_to_add = $value->present();
        } else if ( is_object( $value ) ) {
          $data_to_add = json_decode( json_encode( $value ), true );
        } else {
          $data_to_add = $value;

Posted from SensioLabsInsight

@idmontie
Copy link
Contributor

That has already been fixed in the develop branch.

@rraub rraub closed this as completed Dec 1, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants